Topic
1 reply Latest Post - ‏2006-03-21T11:13:59Z by SystemAdmin
SystemAdmin
SystemAdmin
39 Posts
ACCEPTED ANSWER

Pinned topic Start/End

‏2006-03-21T11:04:33Z |
Hello :)

I'm trying to access a Web Service using SOAPpy, but I'm having some trouble. I use WSDL and can get all the methods, parameters and all. But when I try to call 'login' I get the error:
JAXRPCTIE01: caught exception while handling request: deserialization error: unexpected XML reader state. expected: END but found: START: v1

When trying to call with request = {'paramname1':'value',...} the Outgoing XML looks like:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
>
<SOAP-ENV:Body>
<ns1:login xmlns:ns1="http://com.test/wsdl/ExtAPI" SOAP-ENC:root="1">
<v1>
<String_2 xsi:type="xsd:string">Changed</String_2>
<String_3 xsi:type="xsd:string">Changed</String_3>
<int_1 xsi:type="xsd:int">1</int_1>
</v1>
</ns1:login>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I also tried calling login(1,'changed','changed'), but get the same error.

I havn't worked much with this before and I don't really know where to look or what do to. Any suggestions or solutions?

Best regards
Alexisjuh
Updated on 2006-03-21T11:13:59Z at 2006-03-21T11:13:59Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    39 Posts
    ACCEPTED ANSWER

    Re: Start/End

    ‏2006-03-21T11:13:59Z  in response to SystemAdmin
    And maybe I should press the Preview-button first, sorry ;)
    Hello :)

    I'm trying to access a Web Service using SOAPpy, but I'm having some trouble. I use WSDL and can get all the methods, parameters and all. But when I try to call 'login' I get the error:
    JAXRPCTIE01: caught exception while handling request: deserialization error: unexpected XML reader state. expected: END but found: START: v1

    When trying to call with request = {'paramname1':'value',...} the Outgoing XML looks like:
    code
    <?xml version="1.0" encoding="UTF-8"?>
    <SOAP-ENV:Envelope
    SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
    xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/1999/XMLSchema"
    >
    <SOAP-ENV:Body>
    <ns1:login xmlns:ns1="http://com.test/wsdl/ExtAPI" SOAP-ENC:root="1">
    <v1>
    <String_2 xsi:type="xsd:string">Changed</String_2>
    <String_3 xsi:type="xsd:string">Changed</String_3>
    <int_1 xsi:type="xsd:int">1</int_1>
    </v1>
    </ns1:login>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    [/code]
    I also tried calling login(1,'changed','changed'), but get the same error.

    I havn't worked much with this before and I don't really know where to look or what do to. Any suggestions or solutions?

    Best regards
    Alexisjuh