You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2012/05/06 13:49:50 UTC
[jira] [Assigned] (AXIS2-5287) Client stub creating empty node with
values in request
[ https://issues.apache.org/jira/browse/AXIS2-5287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andreas Veithen reassigned AXIS2-5287:
--------------------------------------
Assignee: Andreas Veithen
> Client stub creating empty node with values in request
> ------------------------------------------------------
>
> Key: AXIS2-5287
> URL: https://issues.apache.org/jira/browse/AXIS2-5287
> Project: Axis2
> Issue Type: Bug
> Components: adb, client-api
> Affects Versions: 1.6.0
> Environment: Windows 2003
> Reporter: Ashish Mantri
> Assignee: Andreas Veithen
> Labels: newbie
>
> 1) Generated client stub from WSDL using wsdl2java axis2.
> 2) Created request object and assigned values to it.
> 3) Called client stub for particular operation with request object as input parameter.
> 4) Getting below error.
> *** 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)
> at implementation.ServicesBean_wrenz2_EOImpl_1034_WLStub.retreiveProfile(Unknown Source)
> at testclient.Search.main(SearchNM1.java:152)
> Caused by: java.io.NotSerializableException: org.apache.axiom.soap.impl.llom.soap11.SOAP11FaultCodeImpl
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
> at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
> at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
> at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
> at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
> at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
> at weblogic.rjvm.MsgAbbrevOutputStream.writeObject(MsgAbbrevOutputStream.java:618)
> at weblogic.rjvm.MsgAbbrevOutputStream.sendThrowable(MsgAbbrevOutputStream.java:471)
> at weblogic.rmi.internal.BasicServerRef.handleThrowable(BasicServerRef.java:789)
> at weblogic.rmi.internal.BasicServerRef.postInvoke(BasicServerRef.java:728)
> at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:537)
> at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
> at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
> at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
> After putting debug traces in client stub, I found that XML request is not getting formed correctly.
> <?xml version='1.0' encoding='utf-8'?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> <soapenv:Body>
> <ns1:ProfileRequest xmlns:ns1="http://www.i.com/Services/">
> <Request xmlns="">
> <>1234</>
> <>asda</>
> </Request>
> <IdentifierInfo xmlns="">
> <>1232131</>
> </IdentifierInfo>
> </ns1:ProfileRequest>
> </soapenv:Body>
> </soapenv:Envelope>
> Seems like Client stub is not generating proper request format, how can we resolved this as Client stub is auto generated file.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org