WSDL complexType / Dispatch map

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm looking for information about which is the best way to work with a WSDL
generated by me.
I edited my WSDL file introducing some complexTypes. I would like being
mapped by pear::soap easily. Is it posible? Any suggestion?

Thanks.

Jordi Llonch
<?xml version = '1.0' encoding = 'UTF-8'?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"; name="AtlasServices" targetNamespace="urn:AtlasServices" >
<types xmlns="http://schemas.xmlsoap.org/wsdl/";>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; targetNamespace="urn:AtlasServices" >
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; name="bookingRQ" >
<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema";>Reservation request</xs:documentation>
</xs:annotation>
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; type="tns:booking" name="Booking" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; name="bookingRS" >
<xs:annotation xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:documentation xmlns:xs="http://www.w3.org/2001/XMLSchema";>Reservation response</xs:documentation>
</xs:annotation>
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:choice xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; name="Success" >
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema"/>
</xs:element>
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; name="Rates" >
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema"; maxOccurs="unbounded" >
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; type="xs:date" name="Day" />
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; type="xs:string" name="Price" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; name="Errors" >
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema"; maxOccurs="unbounded" >
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; type="xs:int" name="Error" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema"; name="booking" >
<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; name="IdHotel" >
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:simpleContent xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:extension xmlns:xs="http://www.w3.org/2001/XMLSchema"; base="xs:string" />
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; type="xs:date" name="StartDate" />
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; type="xs:date" name="EndDate" />
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; type="xs:string" name="IdService" />
<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema"; maxOccurs="unbounded" >
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; type="tns:room" name="Rooms" />
</xs:sequence>
</xs:sequence>
</xs:complexType>
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema"; name="room" >
<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; type="xs:string" name="IdRoomType" />
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; name="PAXS" >
<xs:complexType xmlns:xs="http://www.w3.org/2001/XMLSchema";>
<xs:sequence xmlns:xs="http://www.w3.org/2001/XMLSchema"; maxOccurs="unbounded" >
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; type="xs:string" name="Name" />
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema"; type="xs:unsignedInt" name="Age" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>
</types>
<message xmlns="http://schemas.xmlsoap.org/wsdl/"; name="bookingInput" >
<part xmlns="http://schemas.xmlsoap.org/wsdl/"; name="parameter" element="tns:bookingRQ" />
</message>
<message xmlns="http://schemas.xmlsoap.org/wsdl/"; name="bookingOutput" >
<part xmlns="http://schemas.xmlsoap.org/wsdl/"; name="parameter" element="tns:bookingRS" />
</message>
<portType xmlns="http://schemas.xmlsoap.org/wsdl/"; name="AtlasServices" >
<operation xmlns="http://schemas.xmlsoap.org/wsdl/"; name="booking" >
<input xmlns="http://schemas.xmlsoap.org/wsdl/"; message="tns:bookingInput" name="bookingInput" />
<output xmlns="http://schemas.xmlsoap.org/wsdl/"; message="tns:bookingOutput" />
</operation>
</portType>
<binding xmlns="http://schemas.xmlsoap.org/wsdl/"; type="tns:AtlasServices" name="AtlasServices" >
<soap:binding xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; transport="http://schemas.xmlsoap.org/soap/http"; style="rpc" />
<operation xmlns="http://schemas.xmlsoap.org/wsdl/"; name="booking" >
<soap:operation xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; soapAction="urn:bookingAtlas" />
<input xmlns="http://schemas.xmlsoap.org/wsdl/";>
<soap:body xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; use="literal" />
</input>
<output xmlns="http://schemas.xmlsoap.org/wsdl/";>
<soap:body xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; use="literal" />
</output>
</operation>
</binding>
<service xmlns="http://schemas.xmlsoap.org/wsdl/"; name="AtlasServices" >
<port xmlns="http://schemas.xmlsoap.org/wsdl/"; binding="tns:AtlasServices" name="Port0" >
<soap:address xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; location="http://localhost/Projectes/AtlasWeb-OnLine-Viasol/services/intra_server.php"; />
</port>
</service>
</definitions>

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux