Comment 2 for bug 1096004

Revision history for this message
GaryS (garysh26) wrote :

Hi I am having similar problems. I cannot consume the soap interface (when arrays or complex tyoes are returned) from Visual studio, netbeans, eclipse or any other IDE I have tried. Similar errors in all cases about expecting endof element but finding start. SoapUI is suggesting the wsdl is not valid when I run WSI profile compliance.

One thing I noticed. If I look at a message returned from ladon for a reponse like:

String name;
    double a;
    double b;
    double[] c;

For a web service CREATED with netbeans I get a reponse like this:

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:func2Response xmlns:ns2="http://test/">
         <return>
            <a>1.0</a>
            <b>1.0</b>
            <c>1.0</c>
            <c>3.2</c>
            <c>4.5</c>
            <name>hello</name>
         </return>
      </ns2:func2Response>
   </S:Body>
</S:Envelope>

from ladon with a similar reponse objec tI get:

<SOAP-ENV:Envelope xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="urn:Calculator" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <SOAP-ENV:Body SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <ns:func2Response>
         <result>
            <a>1.2</a>
            <c>
               <item>1.2</item>
               <item>2.4</item>
               <item>3.6</item>
            </c>
            <b>2.4</b>
            <name>hello 2</name>
         </result>
      </ns:func2Response>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

ie rather than a list of 'c's I get one 'c' and a list of items. I'd be happy to post some examples for various types etc of the wsdl netbeans generates and any messages sent, if that helps - it seems the services it produces are pretty portable and consumed by most clients. So any fomratting it uses may be informative.