The rpc/literal case isn't handled correctly by the emitter, as you discovered.  This 
is mostly because we treat literal use in the manner that will enhance working with 
.NET.  I'll try to take a look at what is going wrong with the stub signatures in this 
case.  Perhaps it will be something simple to fix.

JAX-RPC says we must handle the other three types: document/literal, document/encoded 
(which we don't explicitly deal with yet either) and rpc/encoded.  This should be a 
matter of making sure we handle both switches independently, but it never seems to 
come out that simple. :-(

--
Tom Jordahl
Macromedia


-----Original Message-----
From: Russell Butek [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 8:48 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: WSDL2Java problem with complex type ?


The soap:body in the binding says use="literal".  This means that the outer
layer - getRTQuote/getRTQuoteResponse - is stripped and the contents of the
complexType are in the parameter list instead of the complexType itself, so
nothing need be generated for the complexType.

Now that that's explained, I have a question for Tom.  This code is really
meant for document literal, but this example is rpc literal (soap:binding
style="rpc", soap:body use="literal").  Are we doing the right thing for
rpc literal?  I'm not sure what that means, myself.  JAX-RPC doesn't
address it.

Russell Butek
[EMAIL PROTECTED]


"Brette, Marc" <[EMAIL PROTECTED]> on 02/06/2002 04:13:02 AM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject:  WSDL2Java problem with complex type ?



Hi,
I try to use WSDL2Java to generate stubs.

The WSDL file defining the service is
http://services.xmltoday.com/vx_engine/wsdl.vep/realtime.wsdl

I tried to use the 02/05/2002 nighlty build, but no classes are generated
for the complex types getRTQuote and getRTQuoteResponse, whereas they are
used in the messages. However, WSDL2Java generate a
vgx-realtime.StockQuotes
which is a "member" of getRTQuoteResponse.

I saw some related post on the mailing list archive that said it should
work, so I wondered if this particular WSDL file would mess things.

------

The command I used to generate the stub is :
java org.apache.axis.wsdl.WSDL2Java
http://services.xmltoday.com/vx_engine/wsdl.vep/realtime.wsdl

I copied here an extract of the WSDL file :

<types>
- <schema targetNamespace="urn:vgx-realtime"
xmlns="http://www.w3.org/2000/10/XMLSchema";>
- <complexType name="getRTQuote">
- <sequence>
  <element name="symbol" type="xsd:string" />
  </sequence>
  </complexType>
- <complexType name="getRTQuoteResponse">
- <sequence>
- <element name="stock_quote">
- <complexType>
- <sequence>
  <element name="symbol" type="xsd:string" />
  <element name="time" type="xsd:string" />
  <element name="last" type="xsd:string" />
  <element name="change" type="xsd:string" />
  <element name="pctchange" type="xsd:string" />
  <element name="bid" type="xsd:string" />
  <element name="ask" type="xsd:string" />
  </sequence>
  </complexType>
  </element>
  </sequence>
  </complexType>
  </schema>
  </types>

Reply via email to