axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schmitz <christian.schm...@opitz-consulting.de>
Subject Re: wsdl2java does not generate class-files for complexTypes
Date Mon, 21 Nov 2005 13:58:21 GMT
Anne, thank you for this information. I read a lot about message styles 
and the reasons which one to use. But I didn't have any information 
about the support of other SOAP stacks yet.

Anne Thomas Manes schrieb:

> Christian, I recommend that you switch to doc/literal rather than 
> rpc/literal. Doc/literal certainly supports multiple methods. Then use 
> the noWrapped option. Either that, or define an extra layer of 
> wrapping for your response element, e.g.,:
>
> <element name="response">
>   <complexType>
>     <sequence>
>       <element name="return">
>          <complexType>
>            <sequence>
>              <element name="ergebnisse" nillable="false" minOccurs="0"
>                 maxOccurs="unbounded" type="transporttypes:ResultLine"/>
>            </sequence>
>          </complexType>
>        </element>
>      </sequence>
>    </complexType>
> </element>
>
>             ...
>
> In general, it's a bad idea to use rpc/literal because a lot of SOAP 
> stacks don't support that option (e.g., .NET, SAP, BEA,...).
>
> Anne
>
> On 11/21/05, *Christian Schmitz* 
> <christian.schmitz@opitz-consulting.de 
> <mailto:christian.schmitz@opitz-consulting.de>> wrote:
>
>     Hi Mark,
>
>     i generate the sources using the ant-tasks and I set the parameter
>     "noWrapped=true" when I read about your problem. No result.
>     I am using rpc/literal because my Service has more than one method. Is
>     it possible that the message style causes the problem?
>
>     Regards,
>     Christian
>
>     Griffin, Mark schrieb:
>
>     >Christian,
>     >Don't know if this will work for you, but I had a similar
>     problem. Using
>     >the -W option which turned off wrapped support worked for me. I
>     was able
>     >to then generate the classes.  Not completely sure why other than
>     >something to do with the way axis is interpreting the wsdl.  I
>     thought
>     >my wsdl was docliteral wrapped but apparently axis thought otherwise.
>     >At any rate it worked after the -W option.
>     >
>     >markg
>     >
>     >-----Original Message-----
>     >From: Christian Schmitz [mailto:
>     christian.schmitz@opitz-consulting.de
>     <mailto:christian.schmitz@opitz-consulting.de>]
>     >Sent: Monday, November 21, 2005 4:13 AM
>     >To: axis-user@ws.apache.org <mailto:axis-user@ws.apache.org>
>     >Subject: wsdl2java does not generate class-files for complexTypes
>     >
>     >
>     >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"/
>     <http://schemas.xmlsoap.org/soap/http%22/>>
>     >    <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
>     >
>     >
>     >
>
>


-- 

************************************************************
Besuchen Sie unsere kostenlose Veranstaltung
"Effizientes Prozess- und IT-Management -
Die Verbindung von ARIS mit IT-Infrastrukturen"
am 24.11.2005 in Köln. Anmeldungen unter
http://www.opitz-consulting.de
************************************************************
OPITZ CONSULTING Gummersbach GmbH
Christian Schmitz -  Dipl.-Wirtschaftsinformatiker (FH)
Kirchstr. 6 - D-51647 Gummersbach
Telefon (Fax): +49 2261 6001-0 (-1139) - Mobil: +49 170 5545138
http://www.opitz-consulting.de
************************************************************



Mime
View raw message