It seems that WSDL2Java generate the right classes then, but does not
generate the correct signature for the binding because SoapBinding.java (for
example) use a class called "vgx_realtime.GetRTQuote and
vgx_realtime.GetRTQuoteResponse.
Here is an error I got when I compile the generated classes :

com/velocigen/thor/SoapBinding.java:11: cannot resolve symbol
symbol  : class GetRTQuote
location: package vgx_realtime
    public vgx_realtime.GetRTQuoteResponse
getRTQuote(vgx_realtime.GetRTQuote st
ockticker) throws java.rmi.RemoteException;

-----Original Message-----
From: Russell Butek [mailto:[EMAIL PROTECTED]]
Sent: 06 February 2002 14:48
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