wood burning stoves 2.0*
The moose likes Web Services and the fly likes Request XML not getting created properly using client stub Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Request XML not getting created properly using client stub" Watch "Request XML not getting created properly using client stub" New topic
Author

Request XML not getting created properly using client stub

Ashish Mantri
Greenhorn

Joined: Apr 03, 2012
Posts: 1
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

Joined: Mar 24, 2008
Posts: 3817

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)?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Request XML not getting created properly using client stub
 
Similar Threads
NotSerializableException: oracle.jdbc.driver.OracleConnection while binding connection obj to JNDI
jdk1.5 doesn't create skeleton what's the new way of doing this in 1.5
RMI:at client side getting exceptrion like java.io.NotSerializableException
NotSerializableException: oracle.jdbc.driver.OracleConnection while binding connection obj to JNDI
getDataAccessObject failed