• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Request XML not getting created properly using client stub

 
Ashish Mantri
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

I generated client stub using wsdl2java axis2, when i call a operation using stub and pass request object i get below error,

java.rmi.UnmarshalException: Failed to marshal error response: 'org.apache.axis2.AxisFault: org.apache.xmlbeans.XmlException: error: The content of elements must consist of well-formed character data or markup.' because exception ; nested exception is:
java.io.NotSerializableException: org.apache.axiom.soap.impl.llom.soap11.SOAP11FaultCodeImpl
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
Caused by: java.io.NotSerializableException: org.apache.axiom.soap.impl.llom.soap11.SOAP11FaultCodeImpl

Request is not generated in proper format, it comes like

<RequestInfo xmlns="">
<>1234</>
<>asda</>
< xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="1"></>
</RequestInfo>

empty tags are getting created in request.

Can you please help me resolve it.

Thanks in advance.

Regards.

 
Vijitha Kumara
Bartender
Posts: 3914
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you show us the relevant part(s) of the source files used to generate the client stubs, and the code use these stubs (along with the generated code for the stubs)?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic