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* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> 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:
    [EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>]
    >Sent: Monday, November 21, 2005 4:13 AM
    >To: [email protected] <mailto:[email protected]>
    >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
************************************************************


Reply via email to