Utilisation des XSD dans un WSDL
Bonjour,
J'essaye d'utiliser SAOP avec un wsdl dont voici un extrait :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| <?xml version='1.0' encoding='UTF-8'?>
<!-- WSDL file generated by Zend Studio. -->
<definitions name="Toto" targetNamespace="urn:Toto" xmlns:typens="urn:Toto" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<message name="getUserInfo">
<part name="subscriber_id" type="xsd:integer"/>
</message>
<message name="getUserInfoResponse">
<part name="getUserInfoReturn" type="xsd:anyType"/>
</message>
<portType name="BigPlayerManagerPortType">
<operation name="getUserInfo">
<documentation>
Informations personnelles de l'utilisateur + favoris (podcast et playlist)
</documentation>
<input message="typens:getUserInfo"/>
<output message="typens:getUserInfoResponse"/>
</operation>
</portType>
<binding name="TotoBinding" type="typens:TotoPortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="getUserInfo">
<soap:operation soapAction="urn:TotoAction"/>
<input>
<soap:body namespace="urn:Toto" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body namespace="urn:Toto" use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="TotoService">
<port name="TotoPort" binding="typens:TotoBinding">
<soap:address location=""/>
</port>
</service>
</definitions> |
Pour chaque réponse du web service, il y a un XSD associé (par exemple getUserInfo.xsd).
Comment utilise t on les XSD avec le WSDL et où devrai je le mettre dans mon exemple ?
Merci de votre aide.