My WSDL defines the following complexTypes in the types-defintion:

 <xsd:complexType name="SearchResults">
   <xsd:sequence>
<xsd:element name="ergebnisse" nillable="false" minOccurs="0" maxOccurs="unbounded" type="transporttypes:ResultLine"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="ResultLine">
   <xsd:sequence>
<xsd:element name="ergebnisse" nillable="false" minOccurs="0" maxOccurs="unbounded" type="xsd:decimal" /> </xsd:sequence> </xsd:complexType>
The complexType SearchResult should be returned by my service method.

 <wsdl:message name="searchResponse">
   <wsdl:part name="results" type="myNS:SearchResults"/>
 </wsdl:message>
...
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
   <wsdl:operation name="search">
     <wsdl:input >
       <soap:body use="literal"/>
     </wsdl:input>
     <wsdl:output>
       <soap:body use="literal"/>
     </wsdl:output>
   </wsdl:operation>

wsdl2java does not generate the classes SearchResults an ResultLine. I expect that the tool should generate them. Instead of the expected, it generates a 2-dimensional Array as return type of my service method.

public java.math.BigDecimal[][] search(...) throws java.rmi.RemoteException;

Is this the correct? Is it possible to configure wsdl2java to generate the classes?

regars,
Christian

Reply via email to