wood burning stoves 2.0*
The moose likes Web Services and the fly likes Axis to Axis 2 : XML parsing error in java client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis to Axis 2 : XML parsing error in java client" Watch "Axis to Axis 2 : XML parsing error in java client" New topic
Author

Axis to Axis 2 : XML parsing error in java client

swapnil paranjape
Ranch Hand

Joined: May 15, 2005
Posts: 126

Hi,

I have built the web service java client based on the following jar files. The client is working fine .

axis 1.4.jar , axis-saaj-1.4.jar , axis-JAX-RPC 1.1 , axis-wsdl4j-1.5.1.jar ,mail-1.3.3.jar ,saaj 1.2.jar , mail-1.3.3.jar , commons-discovery1.1.jar , commons-logging 1.1.1.jar




Today we have axis2 jar deployments in the same lib folder and suddenly the java client started throwing the following error.

javax.xml.soap.SOAPException: XML parse failed to build a document from bytes
at org.apache.axis2.saaj.SOAPConnectionImpl.handleSOAPMessage(SOAPConnec
tionImpl.java:154)


Can you please help me on this?


Thanks
swapnil paranjape
Ranch Hand

Joined: May 15, 2005
Posts: 126
is there a way to fix the code when you migrate from AXIS to AXIS 2?
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
Axis and Axis2 are significantly different, and can almost be considered different technologies. There are certainly different implementations.

That said, the decision to mix them in a single distributed application is questionable. The best route to repair this is to
remove the Axis2 components from the "same lib folder" which contains the Axis stuff.

If you are migrating to Axis2 , you should set up a separate evironment for this new code and only use the new Axis2 material here. Do not mix JAR files or artifacts of both implementations.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis to Axis 2 : XML parsing error in java client