Loading ...
Sorry, an error occurred while loading the content.

Problem receving complex types from Axis? - Unresolved href

Expand Messages
  • msanesh <anesh@hotmail.com>
    Hi, I have an apache axis server and a soaplite client and I want to pass complex types back and forth. My client can send the complex types fine, but can not
    Message 1 of 2 , Jan 2, 2003
    • 0 Attachment
      Hi,

      I have an apache axis server and a soaplite client and I want to
      pass complex types back and forth. My client can send the complex
      types fine, but can not receive them. I get an error as shown below.
      There seems to be a problem with non inline multirefs. Is this a
      known problem? Also, the packets on the wire are included in the
      message. Please let me know you need my perl code.

      This works fine with an apache axis based client.

      Thanks,
      Anesh.

      -------------------------------------

      Unresolved (wrong?) href (id0) in element 'TestAPIReturn'
      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <ns1:TestAPIResponse
      soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:ns1="http://web1.corp.kontiki.com:8300/bizserv/Connector.jws">
      <TestAPIReturn href="#id0"/>
      </ns1:TestAPIResponse>
      <multiRef id="id0" soapenc:root="0"
      soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xsi:type="ns2:Format"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:ns2="http://soap.kontiki.com">
      <allowedPlays xsi:type="xsd:int">0</allowedPlays>
      <allowsaveStream xsi:type="xsd:boolean">false</allowsaveStream>
      <bitRate xsi:type="xsd:int">0</bitRate>
      <codec xsi:type="xsd:string" xsi:nil="true"/>
      <createDate xsi:type="xsd:dateTime" xsi:nil="true"/>
      <deliveryPolicy xsi:type="xsd:string" xsi:nil="true"/>
      <encodingInfo xsi:type="xsd:string" xsi:nil="true"/>
      <extra xsi:type="soapenc:Array" xsi:nil="true"/>
      <filename xsi:type="xsd:string">foor.mov</filename>
      <height xsi:type="xsd:int">0</height>
      <kid xsi:type="xsd:string">urn:kontiki:eng:webapps</kid>
      <lastModDate xsi:type="xsd:dateTime" xsi:nil="true"/>
      <obscureFile xsi:type="xsd:boolean">false</obscureFile>
      <originSetName xsi:type="soapenc:Array" xsi:nil="true"/>
      <type xsi:type="xsd:string">Format</type>
      <width xsi:type="xsd:int">0</width>
      </multiRef>
      </soapenv:Body>
      </soapenv:Envelope> at /usr/lib/perl5/site_perl/5.6.1/SOAP/MIME.pm
      line 158
      ------------------------------------


      Here is the data on the wire.
      ------------------
      POST /bizserv/Connector.jws HTTP/1.0

      Accept: text/xml

      Accept: multipart/*

      Host: web1.corp.kontiki.com:8300

      User-Agent: SOAP::Lite/Perl/0.55

      Content-Length: 747

      Content-Type: text/xml; charset=utf-8

      SOAPAction: ""



      <?xml version="1.0" encoding="UTF-8"?>
      <SOAP-ENV:Envelope xmlns:namesp2="http://soap.kontiki.com" SOAP-
      ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-
      ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-
      ENV="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/1999/XMLSchema"
      >
      <SOAP-ENV:Body
      >
      <namesp1:TestAPI
      xmlns:namesp1="http://web1.corp.kontiki.com:8300/bizserv/Connector.jws
      "
      >
      <f xsi:type="namesp2:Format"
      >
      <kid xsi:type="xsd:string"
      >urn:kontiki:eng:webapps</kid>
      <filename xsi:type="xsd:string"
      >foor.mov</filename></f></namesp1:TestAPI></SOAP-
      ENV:Body></SOAP-ENV:Envelope>HTTP/1.1 200 OK

      Content-Type: text/xml; charset=utf-8

      Connection: close

      Date: Mon, 23 Dec 2002 01:17:48 GMT

      Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector)

      Set-Cookie: JSESSIONID=773C1D7BE341D14B9E2277112592A897;Path=/bizserv



      <?xml version="1.0" encoding="UTF-8"?>
      <soapenv:Envelope
      xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsd="http://www.w3.org/2001/XMLSchema"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <ns1:TestAPIResponse
      soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:ns1="http://web1.corp.kontiki.com:8300/bizserv/Connector.jws">
      <TestAPIReturn href="#id0"/>
      </ns1:TestAPIResponse>
      <multiRef id="id0" soapenc:root="0"
      soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
      xsi:type="ns2:Format"
      xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
      xmlns:ns2="http://soap.kontiki.com">
      <allowedPlays xsi:type="xsd:int">0</allowedPlays>
      <allowsaveStream xsi:type="xsd:boolean">false</allowsaveStream>
      <bitRate xsi:type="xsd:int">0</bitRate>
      <codec xsi:type="xsd:string" xsi:nil="true"/>
      <createDate xsi:type="xsd:dateTime" xsi:nil="true"/>
      <deliveryPolicy xsi:type="xsd:string" xsi:nil="true"/>
      <encodingInfo xsi:type="xsd:string" xsi:nil="true"/>
      <extra xsi:type="soapenc:Array" xsi:nil="true"/>
      <filename xsi:type="xsd:string">foor.mov</filename>
      <height xsi:type="xsd:int">0</height>
      <kid xsi:type="xsd:string">urn:kontiki:eng:webapps</kid>
      <lastModDate xsi:type="xsd:dateTime" xsi:nil="true"/>
      <obscureFile xsi:type="xsd:boolean">false</obscureFile>
      <originSetName xsi:type="soapenc:Array" xsi:nil="true"/>
      <type xsi:type="xsd:string">Format</type>
      <width xsi:type="xsd:int">0</width>
      </multiRef>
      </soapenv:Body>
      </soapenv:Envelope>
    • Dave Hodson
      This is a known issue with Axis (see this bug -- http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12685) You can workaround this by setting the
      Message 2 of 2 , Jan 2, 2003
      • 0 Attachment
        This is a known issue with Axis (see this bug --
        http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12685)

        You can workaround this by setting the
        PROP_DOMULTIREFS property to FALSE like this:

        Call call = (Call) service.createCall();
        call.setTargetEndpointAddress( new
        java.net.URL(endpointURL) );

        //set PROP_DOMULTIREFS to FALSE. Otherwise we
        will send MultiRef array references
        call.setOption(AxisEngine.PROP_DOMULTIREFS, new
        Boolean(false));

        Dave


        --- "msanesh <anesh@...>" <anesh@...>
        wrote:
        > Hi,
        >
        > I have an apache axis server and a soaplite client
        > and I want to
        > pass complex types back and forth. My client can
        > send the complex
        > types fine, but can not receive them. I get an error
        > as shown below.
        > There seems to be a problem with non inline
        > multirefs. Is this a
        > known problem? Also, the packets on the wire are
        > included in the
        > message. Please let me know you need my perl code.
        >
        > This works fine with an apache axis based client.
        >
        > Thanks,
        > Anesh.
        >
        > -------------------------------------
        >
        > Unresolved (wrong?) href (id0) in element
        > 'TestAPIReturn'
        > <?xml version="1.0" encoding="UTF-8"?>
        > <soapenv:Envelope
        >
        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
        >
        > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        >
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        > <soapenv:Body>
        > <ns1:TestAPIResponse
        >
        soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
        >
        >
        xmlns:ns1="http://web1.corp.kontiki.com:8300/bizserv/Connector.jws">
        > <TestAPIReturn href="#id0"/>
        > </ns1:TestAPIResponse>
        > <multiRef id="id0" soapenc:root="0"
        >
        soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
        >
        > xsi:type="ns2:Format"
        >
        xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
        >
        > xmlns:ns2="http://soap.kontiki.com">
        > <allowedPlays xsi:type="xsd:int">0</allowedPlays>
        > <allowsaveStream
        > xsi:type="xsd:boolean">false</allowsaveStream>
        > <bitRate xsi:type="xsd:int">0</bitRate>
        > <codec xsi:type="xsd:string" xsi:nil="true"/>
        > <createDate xsi:type="xsd:dateTime" xsi:nil="true"/>
        > <deliveryPolicy xsi:type="xsd:string"
        > xsi:nil="true"/>
        > <encodingInfo xsi:type="xsd:string" xsi:nil="true"/>
        > <extra xsi:type="soapenc:Array" xsi:nil="true"/>
        > <filename xsi:type="xsd:string">foor.mov</filename>
        > <height xsi:type="xsd:int">0</height>
        > <kid
        > xsi:type="xsd:string">urn:kontiki:eng:webapps</kid>
        > <lastModDate xsi:type="xsd:dateTime"
        > xsi:nil="true"/>
        > <obscureFile
        > xsi:type="xsd:boolean">false</obscureFile>
        > <originSetName xsi:type="soapenc:Array"
        > xsi:nil="true"/>
        > <type xsi:type="xsd:string">Format</type>
        > <width xsi:type="xsd:int">0</width>
        > </multiRef>
        > </soapenv:Body>
        > </soapenv:Envelope> at
        > /usr/lib/perl5/site_perl/5.6.1/SOAP/MIME.pm
        > line 158
        > ------------------------------------
        >
        >
        > Here is the data on the wire.
        > ------------------
        > POST /bizserv/Connector.jws HTTP/1.0
        >
        > Accept: text/xml
        >
        > Accept: multipart/*
        >
        > Host: web1.corp.kontiki.com:8300
        >
        > User-Agent: SOAP::Lite/Perl/0.55
        >
        > Content-Length: 747
        >
        > Content-Type: text/xml; charset=utf-8
        >
        > SOAPAction: ""
        >
        >
        >
        > <?xml version="1.0" encoding="UTF-8"?>
        > <SOAP-ENV:Envelope
        > xmlns:namesp2="http://soap.kontiki.com" SOAP-
        >
        ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
        >
        >
        xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
        > xmlns:SOAP-
        > ENC="http://schemas.xmlsoap.org/soap/encoding/"
        > xmlns:SOAP-
        > ENV="http://schemas.xmlsoap.org/soap/envelope/"
        > xmlns:xsd="http://www.w3.org/1999/XMLSchema"
        > >
        > <SOAP-ENV:Body
        > >
        > <namesp1:TestAPI
        >
        xmlns:namesp1="http://web1.corp.kontiki.com:8300/bizserv/Connector.jws
        > "
        > >
        > <f xsi:type="namesp2:Format"
        > >
        > <kid xsi:type="xsd:string"
        > >urn:kontiki:eng:webapps</kid>
        > <filename xsi:type="xsd:string"
        > >foor.mov</filename></f></namesp1:TestAPI></SOAP-
        > ENV:Body></SOAP-ENV:Envelope>HTTP/1.1 200 OK
        >
        > Content-Type: text/xml; charset=utf-8
        >
        > Connection: close
        >
        > Date: Mon, 23 Dec 2002 01:17:48 GMT
        >
        > Server: Apache Tomcat/4.0.4 (HTTP/1.1 Connector)
        >
        > Set-Cookie:
        >
        JSESSIONID=773C1D7BE341D14B9E2277112592A897;Path=/bizserv
        >
        >
        >
        > <?xml version="1.0" encoding="UTF-8"?>
        > <soapenv:Envelope
        >
        xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
        >
        > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        >
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        > <soapenv:Body>
        > <ns1:TestAPIResponse
        >
        soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
        >
        >
        xmlns:ns1="http://web1.corp.kontiki.com:8300/bizserv/Connector.jws">
        > <TestAPIReturn href="#id0"/>
        > </ns1:TestAPIResponse>
        > <multiRef id="id0" soapenc:root="0"
        >
        soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
        >
        > xsi:type="ns2:Format"
        >
        xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
        >
        > xmlns:ns2="http://soap.kontiki.com">
        > <allowedPlays xsi:type="xsd:int">0</allowedPlays>
        > <allowsaveStream
        > xsi:type="xsd:boolean">false</allowsaveStream>
        > <bitRate xsi:type="xsd:int">0</bitRate>
        > <codec xsi:type="xsd:string" xsi:nil="true"/>
        > <createDate xsi:type="xsd:dateTime" xsi:nil="true"/>
        > <deliveryPolicy xsi:type="xsd:string"
        > xsi:nil="true"/>
        > <encodingInfo xsi:type="xsd:string" xsi:nil="true"/>
        > <extra xsi:type="soapenc:Array" xsi:nil="true"/>
        > <filename xsi:type="xsd:string">foor.mov</filename>
        > <height xsi:type="xsd:int">0</height>
        > <kid
        > xsi:type="xsd:string">urn:kontiki:eng:webapps</kid>
        > <lastModDate xsi:type="xsd:dateTime"
        > xsi:nil="true"/>
        > <obscureFile
        > xsi:type="xsd:boolean">false</obscureFile>
        > <originSetName xsi:type="soapenc:Array"
        > xsi:nil="true"/>
        > <type xsi:type="xsd:string">Format</type>
        > <width xsi:type="xsd:int">0</width>
        > </multiRef>
        > </soapenv:Body>
        > </soapenv:Envelope>
        >
        >


        __________________________________________________
        Do you Yahoo!?
        Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
        http://mailplus.yahoo.com
      Your message has been successfully submitted and would be delivered to recipients shortly.