incubator-agila-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Davide Ling <lin...@libero.it>
Subject Re: ServiceException
Date Tue, 08 Nov 2005 17:32:49 GMT
Matthieu Riou wrote:

>Hi,
>
>My eyes might be cheating me but I can't see anything wrong with your WSDL.
>Yet it seems that Axis doesn't like it. Would you try using directly the
>type in the part definition instead of an element and see if there's any
>difference? It's a dummy test but I would like to see how it behaves.
>
>Cheers,
>
>Matthieu.
>  
>

I used type directly instead an element, but
I have the same Exception

<?xml version="1.0" encoding="UTF-8"?>
<definitions
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    targetNamespace="http://davideling.altervista.org/divisione-wsdl/"
    xmlns:tns="http://davideling.altervista.org/divisione-wsdl/"
    xmlns:om="http://davideling.altervista.org/orderMessage"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"  
    xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
    xmlns:ns2="urn:assessorWebService/types"
    >
   
    <!-- Ordering -->
    <message name="orderMessage">
        <part element="om:orderMessage" name="order"/>
    </message>
 
    <portType name="orderPT">
        <operation name="sendOrder">
            <input message="tns:orderMessage"/>
        </operation>
    </portType> 
  
    <!-- Assessment -->
    <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:complexType name="assessmentRequestType">
                <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 name="assessmentRequestMessage"
            type="tns:assessmentRequestType" /> -->
        </xsd:schema>   
    </types>
   
    <message name="assessmentRequestMessage">
        <part name="assessmentRequestMessage" 
type="tns:assessmentRequestType"></part>
    </message>
    <portType name="assessorServicePT">
        <operation name="assessmentRequest">
            <input message="tns:assessmentRequestMessage" />
        </operation>
    </portType>
    <binding name="assessorServiceBinding"
        type="tns:assessorServicePT">
        <soap:binding style="document"
        transport="http://schemas.xmlsoap.org/soap/http" />
        <operation name="assessmentRequest">
            <soap:operation
            
soapAction="http://davideling.altervista.org/assessorService/NewOperation" 
/>
            <input>
                <soap:body use="literal" />
            </input>
        </operation>
    </binding>
    <service name="assessorService">
        <port binding="tns:assessorServiceBinding"
            name="assessorServicePT">
            <soap:address location="http://GIG:8081/assessorService/" />
        </port>
    </service>
 
    <!-- PartnerLinkType definition-->
    <plnk:partnerLinkType name="orderLT">
        <plnk:role name="orderReceiver">
            <plnk:portType name="orderPT"/>
        </plnk:role>
    </plnk:partnerLinkType>
 
    <plnk:partnerLinkType name="assessmentLT">
        <plnk:role name="assessmentRequestReceiver">
            <plnk:portType name="assessorServicePT"/>
        </plnk:role>
    </plnk:partnerLinkType>
   
</definitions>

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


Mime
View raw message