Apache Axis web service clients vs plain SOAP requests.

Posted by Andy Pryor on Stack Overflow See other posts from Stack Overflow or by Andy Pryor
Published on 2010-06-09T04:29:55Z Indexed on 2010/06/09 4:42 UTC
Read the original article Hit count: 181

Filed under:
|
|
|
|

I'm looking for the best way to consume a Java web service that returns rather large and complex objects.

I am currently using Apache Axis clients generated from the wsdl, (using eclipse "generate web service client" tool). We have concerns about performance of this. The service proxy objects are not thread safe, and they are rather heavy to instantiate, 2-3 MB on the JVM.

The other alternative is making HTTP connections and building a String SOAP requests. I would have to interpret the response, and build objects from the XML. Would this be a better alternative to the heavy axis objects?

I searched for good reading on this, if any one had any links I would greatly appreciate it.

© Stack Overflow or respective owner

Related posts about java

Related posts about web-services