The first WSDL is document-literal style, but it is not WS-I compliant as it 
has more than more child elements (two parts) for the soap:Body. You will 
end-up with the following message (please note the operation is not in the 
message at all).
<soap:envelope>
    <soap:body>
        <symbol>IBM</symbol>
        <time>5.0</time>
    </soap:body>
</soap:envelope>
The second WSDL is document-literal-wrapper style. You will have a request 
message like:

<soap:envelope>
    <soap:body>
        <getQuote>
                <symbol>IBM</symbol>
                <time>5.0</time>
        </getQuote>
    </soap:body>
</soap:envelope>
Do you have the 1st WSDL for the service side and 2nd WSDL for the reference 
side? Do you use generated Java interfaces from WSDL? Are both sides using 
Tuscany?

I'm not sure if we support the 1st style in Tuscany binding.ws. If the 
invocation is over SOAP/HTTP (not local remotable invocation), we hand the data 
transformation at both ends. Basically, the conversion is between the 
componentType interfaces and binding interface contracts.

Thanks,
Raymond
________________________________________________________________ 
Raymond Feng
[email protected]
Apache Tuscany PMC member and committer: tuscany.apache.org
Co-author of Tuscany SCA In Action book: www.tuscanyinaction.com
Personal Web Site: www.enjoyjava.com
________________________________________________________________

On Jan 5, 2011, at 11:04 PM, Jean-Sebastien Delfino wrote:

> Say I have the following WSDL operation, with one WSDL message part per 
> parameter, on an SCA reference:
> 
> <message name="getQuoteRequest">
> <part name="symbol" ...>
> <part name="time" ...>
> </message>
> 
> <portType ...>
> <operation name="getQuote" ...>
>  <input message="getQuoteRequest" ...>
>  ...
> </operation>
> 
> Can I use the following doc-wrapped style WSDL operation, with one XSD 
> element per parameter, on the binding configured on that reference?
> 
> <types>
> <schema ...>
> <element name="getQuote" ...>
>  <element name="symbol" .../>
>  <element name="time" .../>
> </element>
> </schema>
> </types>
> 
> <message name="getQuoteRequest">
> <part name="getQuote" element="getQuote" ...>
> </message>
> 
> <portType ...>
> <operation name="getQuote" ...>
>  <input message="getQuoteRequest" ...>
>  ...
> </operation>
> 
> Is that combination allowed, or will I get a data binding validation error?
> 
> Is the Tuscany databinding framework (which I believe is able to 
> automagically mediate between non-wrapped and doc-wrapped-style operations in 
> some cases) capable of handling that combination and transforming invocations 
> from the reference to the binding format?
> 
> -- 
> Jean-Sebastien

Reply via email to