Axis2 vs. multirefs

Discussion in 'Java' started by wish, Feb 8, 2007.

  1. wish

    wish Guest

    Hi,


    I'm trying to parse following SOAP response from a service:

    <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">

    <ns1:authorizeResponse xmlns:ns1="http://..."
    soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

    <authorizeReturn href="#id0" />

    </ns1:authorizeResponse>

    <multiRef xmlns:ns2="http://..."
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="id0"
    soapenc:root="0"
    soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
    xsi:type="ns2:Result">

    <amount xsi:type="xsd:int">0</amount>

    <approvalcode xsi:type="xsd:string" xsi:nil="true" />

    .......

    </multiRef>

    </soapenv:Body>


    I get and Exception:

    Exception in thread "main" java.lang.RuntimeException:
    java.lang.RuntimeException: Unexpected subelement authorizeReturn


    Seems like Axis2 can't parse multirefs properly, while Axis 1.x had no
    problem with it. Is this normal? Are there any configuration issues such as
    what should be set in WSDL to make this work?
    From what i've read there's a class of RPCMessageReceiver which should
    handle multirefs but it is used on the server side and set in service
    description. How to tell the client to properly receive this message?


    Thanks,
    Peter
     
    wish, Feb 8, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. axis2 why?

    , Dec 30, 2005, in forum: Java
    Replies:
    0
    Views:
    557
  2. fxwolf via JavaKB.com

    How serializable object with apache axis2

    fxwolf via JavaKB.com, Apr 29, 2006, in forum: Java
    Replies:
    0
    Views:
    440
    fxwolf via JavaKB.com
    Apr 29, 2006
  3. James.li
    Replies:
    0
    Views:
    402
    James.li
    Apr 29, 2006
  4. kazak

    Solutions for Axis2

    kazak, May 17, 2006, in forum: Java
    Replies:
    1
    Views:
    436
    Tomek
    May 18, 2006
  5. Michael Post
    Replies:
    5
    Views:
    1,163
    Arne Vajhøj
    Aug 22, 2009
Loading...

Share This Page