You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by bu...@us.ibm.com on 2002/06/14 19:34:06 UTC

TCK question: .NET wrapped style?

Here's a WSDL snippet from the TCK:

    <element name="TradePriceRequest">
        <complexType>
            <sequence>
                <element name="tickerSymbol" type="string"/>
            </sequence>
        </complexType>
    </element>
    <element name="TradePrice">
        <complexType>
            <sequence>
                <element name="price" type="float"/>
            </sequence>
        </complexType>
    </element>

    <message name="GetLastTradePriceInput">
        <part name="body" element="xsd1:TradePriceRequest"/>
    </message>

    <message name="GetLastTradePriceOutput">
        <part name="body" element="xsd1:TradePrice"/>
    </message>

    <portType name="StockQuotePortType">
        <operation name="GetLastTradePrice">
           <input message="tns:GetLastTradePriceInput"/>
           <output message="tns:GetLastTradePriceOutput"/>
        </operation>
    </portType>

(the binding for this WSDL is doc/lit).  This is ALMOST like .NET's doc/lit
style.  But it's not quite.  So we generate:

    public TradePrice getLastTradePrice(TradePriceRequest body) throws
RemoteException;

Unfortunately the TCK expects the following signature:

    public float getLastTradePrice(String body) throws RemoteException;

I don't read anything in JAX-RPC that allows or requires this signature, so
I do not believe the TCK should expect this signature.  Can anyone tell me
I'm wrong?

Russell Butek
butek@us.ibm.com