You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Andreas Veithen (JIRA)" <ji...@apache.org> on 2012/05/06 16:35:53 UTC

[jira] [Moved] (AXIOM-421) Client stub creating empty node with values in request

     [ https://issues.apache.org/jira/browse/AXIOM-421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen moved AXIS2-5287 to AXIOM-421:
----------------------------------------------

          Component/s:     (was: adb)
                           (was: client-api)
                       API
    Affects Version/s:     (was: 1.6.0)
                       1.2.11
                       1.2.12
                  Key: AXIOM-421  (was: AXIS2-5287)
              Project: Axiom  (was: Axis2)
    
> Client stub creating empty node with values in request
> ------------------------------------------------------
>
>                 Key: AXIOM-421
>                 URL: https://issues.apache.org/jira/browse/AXIOM-421
>             Project: Axiom
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 1.2.12, 1.2.11
>         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: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org