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 "robert lazarski (JIRA)" <ji...@apache.org> on 2018/06/29 21:29:00 UTC

[jira] [Comment Edited] (AXIS2-5921) Soap with attachment service migration to Axis2 failure

    [ https://issues.apache.org/jira/browse/AXIS2-5921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16528275#comment-16528275 ] 

robert lazarski edited comment on AXIS2-5921 at 6/29/18 9:28 PM:
-----------------------------------------------------------------

You are running an unsupported release. The best I can do to help you is by refering to the relevant unit tests in 1.7.8 that produce the following input / output in the expected format. I see an extra '#' here.

OM Element before processing ==> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><operation>
        <arg1 href="#obj1"/>
    </operation><multiref id="obj1">
        <name>the real argument</name>
        <color>blue</color>
    </multiref></soapenv:Body></soapenv:Envelope>
OM Element after processing ==> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><operation>
        <arg1>
        <name>the real argument</name>
        <color>blue</color>
    </arg1>
    </operation><multiref id="obj1">
        <name>the real argument</name>
        <color>blue</color>
    </multiref></soapenv:Body></soapenv:Envelope>
OM Element before processing ==> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:operation xmlns:ns1="http:temp1.org">
        <ns1:arg1 href="#obj1"/>
    </ns1:operation><ns2:multiref xmlns:ns2="http:temp1.org" id="obj1">
        <ns2:name>the real argument</ns2:name>
        <ns2:color>blue</ns2:color>
    </ns2:multiref></soapenv:Body></soapenv:Envelope>
OM Element after processing ==> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:operation xmlns:ns1="http:temp1.org">
        <ns1:arg1>
        <ns2:name xmlns:ns2="http:temp1.org">the real argument</ns2:name>
        <ns2:color xmlns:ns2="http:temp1.org">blue</ns2:color>
    </ns1:arg1>
    </ns1:operation><ns2:multiref xmlns:ns2="http:temp1.org" id="obj1">
        <ns2:name>the real argument</ns2:name>
        <ns2:color>blue</ns2:color>
    </ns2:multiref></soapenv:Body></soapenv:Envelope>
OM Element before processing ==> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:operation xmlns:ns1="http:temp1.org">
            <ns1:arg1 href="#obj1"/>
            <ns1:operation2>
                <ns1:arg1 href="#obj1"/>
            </ns1:operation2>
        </ns1:operation><ns2:multiref xmlns:ns2="http:temp1.org" id="obj1">
            <ns2:name>the real argument</ns2:name>
            <ns2:color>blue</ns2:color>
        </ns2:multiref></soapenv:Body></soapenv:Envelope>
OM Element after processing ==> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:operation xmlns:ns1="http:temp1.org">
            <ns1:arg1>
            <ns2:name xmlns:ns2="http:temp1.org">the real argument</ns2:name>
            <ns2:color xmlns:ns2="http:temp1.org">blue</ns2:color>
        </ns1:arg1>
            <ns1:operation2>
                <ns1:arg1>
            <ns2:name xmlns:ns2="http:temp1.org">the real argument</ns2:name>
            <ns2:color xmlns:ns2="http:temp1.org">blue</ns2:color>
        </ns1:arg1>
            </ns1:operation2>
        </ns1:operation><ns2:multiref xmlns:ns2="http:temp1.org" id="obj1">
            <ns2:name>the real argument</ns2:name>
            <ns2:color>blue</ns2:color>
        </ns2:multiref></soapenv:Body></soapenv:Envelope>
OM Element before processing ==> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:operation xmlns:ns1="http:temp1.org">
        <ns1:arg1 href="#obj1"/>
        <ns1:operation2>
            <ns1:arg1 href="#obj1"/>
            <ns1:test href="#obj2"/>
        </ns1:operation2>
    </ns1:operation><ns2:multiref xmlns:ns2="http:temp1.org" id="obj1">
        <ns2:name>the real argument</ns2:name>
        <ns2:color>blue</ns2:color>
        <ns2:person href="#obj2"/>
    </ns2:multiref><multiref id="obj2">
        <age>23</age>
        <name>amila</name>
    </multiref></soapenv:Body></soapenv:Envelope>
OM Element after processing ==> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:operation xmlns:ns1="http:temp1.org">
        <ns1:arg1>
        <ns2:name xmlns:ns2="http:temp1.org">the real argument</ns2:name>
        <ns2:color xmlns:ns2="http:temp1.org">blue</ns2:color>
        <ns2:person xmlns:ns2="http:temp1.org">
        <age>23</age>
        <name>amila</name>
    </ns2:person>
    </ns1:arg1>
        <ns1:operation2>
            <ns1:arg1>
        <ns2:name xmlns:ns2="http:temp1.org">the real argument</ns2:name>
        <ns2:color xmlns:ns2="http:temp1.org">blue</ns2:color>
        <ns2:person xmlns:ns2="http:temp1.org">
        <age>23</age>
        <name>amila</name>
    </ns2:person>
    </ns1:arg1>
            <ns1:test>
        <age>23</age>
        <name>amila</name>
    </ns1:test>
        </ns1:operation2>
    </ns1:operation><ns2:multiref xmlns:ns2="http:temp1.org" id="obj1">
        <ns2:name>the real argument</ns2:name>
        <ns2:color>blue</ns2:color>
        <ns2:person href="#obj2"/>
    </ns2:multiref><multiref id="obj2">
        <age>23</age>
        <name>amila</name>
    </multiref></soapenv:Body></soapenv:Envelope>

 


was (Author: robertlazarski):
You are running an unsupported release. The best I can do to help you is by refering to the relevant unit tests in 1.7.8 that produce the following input / output in the expected format. I see an extra '#' here.

OM Element after processing ==> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:operation xmlns:ns1="http:temp1.org">
            <ns1:arg1>
            <ns2:name xmlns:ns2="http:temp1.org">the real argument</ns2:name>
            <ns2:color xmlns:ns2="http:temp1.org">blue</ns2:color>
        </ns1:arg1>
            <ns1:operation2>
                <ns1:arg1>
            <ns2:name xmlns:ns2="http:temp1.org">the real argument</ns2:name>
            <ns2:color xmlns:ns2="http:temp1.org">blue</ns2:color>
        </ns1:arg1>
            </ns1:operation2>
        </ns1:operation><ns2:multiref xmlns:ns2="http:temp1.org" id="obj1">
            <ns2:name>the real argument</ns2:name>
            <ns2:color>blue</ns2:color>
        </ns2:multiref></soapenv:Body></soapenv:Envelope>
OM Element before processing ==> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:operation xmlns:ns1="http:temp1.org">
        <ns1:arg1 href="#obj1"/>
        <ns1:operation2>
            <ns1:arg1 href="#obj1"/>
            <ns1:test href="#obj2"/>
        </ns1:operation2>
    </ns1:operation><ns2:multiref xmlns:ns2="http:temp1.org" id="obj1">
        <ns2:name>the real argument</ns2:name>
        <ns2:color>blue</ns2:color>
        <ns2:person href="#obj2"/>
    </ns2:multiref><multiref id="obj2">
        <age>23</age>
        <name>amila</name>
    </multiref></soapenv:Body></soapenv:Envelope>
OM Element after processing ==> <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header/><soapenv:Body><ns1:operation xmlns:ns1="http:temp1.org">
        <ns1:arg1>
        <ns2:name xmlns:ns2="http:temp1.org">the real argument</ns2:name>
        <ns2:color xmlns:ns2="http:temp1.org">blue</ns2:color>
        <ns2:person xmlns:ns2="http:temp1.org">
        <age>23</age>
        <name>amila</name>
    </ns2:person>
    </ns1:arg1>
        <ns1:operation2>
            <ns1:arg1>
        <ns2:name xmlns:ns2="http:temp1.org">the real argument</ns2:name>
        <ns2:color xmlns:ns2="http:temp1.org">blue</ns2:color>
        <ns2:person xmlns:ns2="http:temp1.org">
        <age>23</age>
        <name>amila</name>
    </ns2:person>
    </ns1:arg1>
            <ns1:test>
        <age>23</age>
        <name>amila</name>
    </ns1:test>
        </ns1:operation2>
    </ns1:operation><ns2:multiref xmlns:ns2="http:temp1.org" id="obj1">
        <ns2:name>the real argument</ns2:name>
        <ns2:color>blue</ns2:color>
        <ns2:person href="#obj2"/>
    </ns2:multiref><multiref id="obj2">
        <age>23</age>
        <name>amila</name>
    </multiref></soapenv:Body></soapenv:Envelope>

 

> Soap with attachment service migration to Axis2 failure
> -------------------------------------------------------
>
>                 Key: AXIS2-5921
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5921
>             Project: Axis2
>          Issue Type: Bug
>            Reporter: Anoobkumar
>            Priority: Major
>         Attachments: b4f63251-c62e-405f-b2fa-939abd706f43.xml, service.wsdl
>
>
> soapui - Soap with attachment failure with Axis2 implementation - Stack Overflow
> I am migrating an old web service implemented with Axis 1.4, which receives and respond Soap With Attachment data. When I do a testing of the service with SOAP UI, I am getting error with Invalid Reference :, can anyone help me on this?
> I am using Java 1.8, WebLogic 10.3.6 server, Axis2 - 1.6.2
> soapui - Soap with attachment failure with Axis2 implementation - Stack Overflow
> {{org.apache.axis2.AxisFault: Invalid reference :b4f63251-c62e-405f-b2fa-939abd706f43 at org.apache.axis2.databinding.utils.MultirefHelper.processRef(MultirefHelper.java:116) at org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:791) at org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:737) at org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:646) at org.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.java:153) at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:206) at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:117) at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40) at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:114) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:146) at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:184) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3732) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256) at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)}}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org