users@jersey.java.net

[Jersey] RESTful POST request cannot call SOAP web service, but RESTful GET can

From: Dean Schulze <dean.w.schulze_at_gmail.com>
Date: Sat, 11 Jan 2014 10:55:36 -0700

I've got a simple RESTful web service (3 GET methods and 1 POST method).
 The POST method creates a SOAP web service client and makes one web
service call. The RESTful POST is just a facade that is easy to call from
jQuery. (I don't know if Javascript can call a SOAP web service.)

The SOAP client works standalone so I know it is correct.

When I make the RESTful POST request the SOAP client call always times out.
 I added a GET method that makes the same SOAP client call and it works,
however.

I've gotten the same results when deployed on Tomcat 6.1 and Jetty 9.1 so I
don't think this is a limitation of one web server implementation.

What have I run into? I've heard that SOAP calls are actually POSTs so
maybe you can't make a POST from a POST, but I don't know why.

I would think that a RESTful facade to a SOAP call would be fairly common
but I couldn't find any mention of this problem and I would like to
understand why a GET can call a SOAP client while a POST cannot.

Thanks.