Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Axis to Axis 2 : XML parsing error in java client

 
swapnil paranjape
Ranch Hand
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 126
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there a way to fix the code when you migrate from AXIS to AXIS 2?
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic