• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
Sheriffs:
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
Bartenders:
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

SOAP request as HTTP GET

 
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I read that a SOAP request could be an HTTP POST or an HTTP GET request...

But all my SOAP requests that my client sends using wsdl are going as HTTP POST. How do i send a SOAP request as HTTP GET??
 
Rancher
Posts: 43028
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can't. SOAP always uses POST. Only REST uses GET (as well as various other HTTP methods, including POST). I'd say that whatever source you read is incorrect.
 
akhil achuthan
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ooh...

I believe i read it from w3schools.........

Thanks for correcting me........
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Akhil,

You are right. w3schools does say it at The HTTP Protocol -

A SOAP request could be an HTTP POST or an HTTP GET request.



However, usually they are pretty good. Btw, they must have an errata page...

Regards,
Dan
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, AXIS2 has a method by which REST style GET requests can get automatically translated inside the server to a SOAP request and create a SOAP response.

See this tutorial example. or search for Axis 2 restful on Google for more.

Personally I think this is an outrageous kludge and contrary to the spirit of both SOAP and REST.

Bill
 
Ranch Hand
Posts: 558
2
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was poking around the internet on the same question and found this.

Is the author in this context referring to REST style webservices, but I have not noticed he mentioning anything about this... Is this something that is introduced recently in SOAP 1.2. Unfortunately the author has not presented any code example for this, and hence wondering if anybody had a chance to look at this post and having their valuable understanding on it.
 
Ranch Hand
Posts: 101
Netbeans IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please I'll like to know how SOAP requests are sent over HTTP POST.

Is the entire envelop posted raw into the request body such as can be read entirely into a String with the following method call?

 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The entire text of a SOAP request is sent as the body of a HTTP POST.

The SOAPui or TCPMON utility will let you look at and modify the contents of a SOAP request.

Bill
reply
    Bookmark Topic Watch Topic
  • New Topic