• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SOAP request as HTTP GET

 
akhil achuthan
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • 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??
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
ooh...

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

Thanks for correcting me........
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • 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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • 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
 
Kumar Raja
Ranch Hand
Posts: 547
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • 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.
 
Oladeji Oluwasayo
Ranch Hand
Posts: 101
Java Netbeans IDE Oracle
  • Mark post as helpful
  • send pies
  • 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
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic