incubator-agila-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Ling <lin...@libero.it>
Subject problems with document literal
Date Thu, 10 Nov 2005 18:27:36 GMT
Hi,
I don't know if axis libraries and sun libraries have different
view on document literal concept.

With this service wsdl

<?xml version="1.0" encoding="UTF-8"?><wsdl:definitions 
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" 
xmlns:tns="http://davideling.altervista.org/assessorService/" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="assessorService" 
targetNamespace="http://davideling.altervista.org/assessorService/">
    <wsdl:types>
        <xsd:schema 
targetNamespace="http://davideling.altervista.org/assessorService/">
            <xsd:complexType name="addressType">
                <xsd:sequence>
                    <xsd:element name="street" type="xsd:string"/>
                    <xsd:element name="number" type="xsd:string"/>
                    <xsd:element name="city" type="xsd:string"/>
                    <xsd:element name="zip" type="xsd:string"/>
                    <xsd:element name="country" type="xsd:string"/>
                </xsd:sequence>
            </xsd:complexType>

            <xsd:element name="assessmentRequestMessage">
                <xsd:complexType>
                    <xsd:sequence>
                        <xsd:element name="name" type="xsd:string"/>
                        <xsd:element name="surname" type="xsd:string"/>
                        <xsd:element name="address" type="tns:addressType"/>
                        <xsd:element name="taxNumber" type="xsd:string"/>
                        <xsd:element name="cardNumber" type="xsd:string"/>
                        <xsd:element name="totalPrice" type="xsd:double"/>
                    </xsd:sequence>
                </xsd:complexType>
            </xsd:element>

        </xsd:schema>

    </wsdl:types>
    <wsdl:message name="assessmentRequestMessage">
        <wsdl:part name="assessmentRequestMessage" 
element="tns:assessmentRequestMessage">
        </wsdl:part>
    </wsdl:message>
    <wsdl:portType name="assessorServicePT">
        <wsdl:operation name="assessmentRequest">
            <wsdl:input message="tns:assessmentRequestMessage"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="assessorServiceBinding" 
type="tns:assessorServicePT">
        <soap:binding style="document" 
transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="assessmentRequest">
            <soap:operation 
soapAction="http://davideling.altervista.org/assessorService/NewOperation"/>
            <wsdl:input>
                <soap:body use="literal"/>
            </wsdl:input>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="assessorService">
        <wsdl:port binding="tns:assessorServiceBinding" 
name="assessorServicePT">
            <soap:address 
location="http://GIG:8081/AssessorService/assessmentRequest"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

------------------ end wsdl ------------

Sun jax-rpc static stub client send this message:

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
   xmlns:ns0="http://davideling.altervista.org/assessorService/">
<env:Body>
<ns0:assessmentRequestMessage>
<name>Davide</name>
<surname>Ling</surname>
<address>
<street>via pippo</street>
<number>13</number>
<city>Pippolandia</city>
<zip>51039</zip>
<country>Italia</country>
</address>
<taxNumber>dvdlng456ytr78</taxNumber>
<cardNumber>26521735451237</cardNumber>
<totalPrice>1345.78</totalPrice>
</ns0:assessmentRequestMessage>
</env:Body>
</env:Envelope>

Instead Agila want to send a  message
with an <assessmetRequest> wrapper element.

Bye

-- 
Davide Ling
Sito personale - http://davideling.altervista.org


Mime
View raw message