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

Spheon JSOAP test and WSDL

Expand Messages
  • Bob Cunnings
    Hello, I ran into a few WSDL problems using the WM client to test the Spheon endpoint. In both the base and Group B docs, the portType and binding names
    Message 1 of 1 , Dec 5, 2001
    • 0 Attachment
      Hello,

      I ran into a few WSDL problems using the WM client to test the Spheon endpoint. In both the "base" and "Group B" docs, the portType and binding names are not given as qualified names (e.g. binding="interopBinding should be binding="tns:interopBinding", etc.). Also, in the schema provided, the default namespace needs to be set to XML Schema namespace in the <schema> tag.
      <xsd:schema targetNamespace="http://soapinterop.org/xsd"> needs to become:
      <xsd:schema targetNamespace="http://soapinterop.org/xsd" xmlns="http://www.w3.org/2001/XMLSchema"> since the child elements of <schema> have no namespace prefix.

      Anyway, using a local WSDL doc to drive the client, the "base" methods all passed. Group B tests had two failures:

      -- "echoStructAsSimpleTypes" returned output parameters with the wrong names... "varString" should be "outputString", etc.

      -- "echo2DStringArray" returned a single dimensional array of array of string (string[][2]), rather than the expected 2 dimensional array of strings (string[2,3]). The wire dump follows:

      [REQUEST]
      <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><m:echo2DStringArray SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:m="http://soapinterop.org/"><input2DStringArray SOAP-ENC:arrayType="nsa:string[2,3]" SOAP-ENC:offset="[0,0]" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:nsa="http://www.w3.org/2001/XMLSchema"><item>Row 0, Col 0</item><item>Row 0, Col 1</item><item>Row 0, Col 2</item><item>Row 1, Col 0</item><item>Row 1, Col 1</item><item>Row 1, Col 2</item></input2DStringArray></m:echo2DStringArray></SOAP-ENV:Body></SOAP-ENV:Envelope>

      [RESPONSE]
      <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><SOAP-ENV:Body><m:echo2DStringArrayResponse SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:m="http://soapinterop.org/"><return xmlns:ns1="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns1:Array" ns1:arrayType="xsd:string[][2]"><item xsi:type="ns2:Array" ns2:arrayType="xsd:string[3]" xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/"><item xsi:type="xsd:string">Row 0, Col 0</item><item xsi:type="xsd:string">Row 0, Col 1</item><item xsi:type="xsd:string">Row 0, Col 2</item></item><item xsi:type="ns2:Array" ns2:arrayType="xsd:string[3]" xmlns:ns2="http://schemas.xmlsoap.org/soap/encoding/"><item xsi:type="xsd:string">Row 1, Col 0</item><item xsi:type="xsd:string">Row 1, Col 1</item><item xsi:type="xsd:string">Row 1, Col 2</item></item></return></m:echo2DStringArrayResponse></SOAP-ENV:Body></SOAP-ENV:Envelope>

      RC
    Your message has been successfully submitted and would be delivered to recipients shortly.