Balises WSDL dans un service web et leurs équivalents Java

1/8
100%

Ecole Nationale des Sciences de l’Informatique II2-RSR A. U. : 2014/2015

TD

Systèmes et Applications Répartis

Web services

(Avril 2015)

Exercice 1: (Exam MCAR 2/2015)

1. Dans un fichier wsdl, dire à quoi correspondent les balises suivantes :

| | |

| --- | --- |

| Balises wsdl | Terme en java |

| operation | ………………. |

| portType | ………………. |

| message | ………………. |

| service | class of package |

| type | ………………. |

1. Dans l’extrait de l’instance de l’enveloppe SOAP suivante, dire à quelle méthode java correspond-il ?

<!ENTITY SOAPENC "http://www.w3.org/2001/06/soap-encoding">

<s:Envelope xmlns:s="...">

<s:Body>

<order xmlns="..." s:encodingStyle=&SOAPENC;>

<partName xsi:type="string">valve</partName>

<quantity xsi:type="string">12</quantity>

</order>

</s:Body>

</s:Envelope>

  • 1. void partName(String s); void quantity(integer n)

2. void order(String quantity, String partName)

3. void order(String quantity, integer partName)

4. String order(String partName, String quantity)

5. Aucune

1. Dans l’extrait du fichier WSDL (Cf. annexe), dire

1. quel est le nom du « web service »,

2. quels sont les types de données décrits dans le langage XML, et

3. quelles sont les opérations, et les paramètres d’appel et de retour utilisés, ainsi que le mode de transport de la liaison.

Justifiez vos réponses.

1. Que signifie la ligne suivante ?

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

1. Suite à la question 3), dans le fonctionnement de SOAP en mode RPC, voici un extrait d’un exemple de message requête (extrait du document W3C Annotated WSDL examples).

1. <SOAP-ENV:Envelope

2. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

3. SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

4. <SOAP-ENV:Body>

5. <[m:GetEndorsBoarder](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_def_GetEndorsingBoarder)>

6. xmlns:m="[http://namespaces.snowboard-info.com](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_ns_namespaces_snowboard-info_com)">

7. <manufacturer>K2</manufacture>

8. <mode>Fatbob</mode>

9. </m:GetEndorsBoarder>

10. <SOAP-ENV:Body>

11. </SOAP-ENV:Envelope>

Publicité

Indiquer les SEPT erreurs de syntaxe contenues dans cet extrait de fichier. Justifiez

ANNEXE

<?xml version="1.0"?>

<wsdl:definitions name="EndorsementSearch"

targetNamespace="[http://namespaces.snowboard-info.com](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_ns_namespaces_snowboard-info_com)"

xmlns:es="http://www.snowboard-info.com/EndorsementSearch.wsdl"

xmlns:esxsd="http://schemas.snowboard-info.com/EndorsementSearch.xsd"

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

<wsdl:types>

<xsd:schema targetNamespace="http://namespaces.snowboard-info.com"

xmlns:xsd="http://www.w3.org/1999/XMLSchema">

<xsd:element name="GetEndorsingBoarder">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="manufacturer" type="string"/>

<xsd:element name="model" type="string"/>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

<xsd:element name="GetEndorsingBoarderResponse">

<xsd:complexType>

<xsd:all>

<xsd:element name="endorsingBoarder" type="string"/>

</xsd:all>

</xsd:complexType>

</xsd:element>

<xsd:element name="GetEndorsingBoarderFault">

<xsd:complexType>

<xsd:all>

<xsd:element name="errorMessage" type="string"/>

</xsd:all>

</xsd:complexType>

</xsd:element>

</xsd:schema>

</wsdl:types>

<wsdl:message name="GetEndorsingBoarderRequest">

<wsdl:part name="body" element="esxsd:[GetEndorsingBoarder](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_def_GetEndorsingBoarder)"/>

</wsdl:message>

<wsdl:message name="GetEndorsingBoarderResponse">

<wsdl:part name="body" element="esxsd:[GetEndorsingBoarderResponse](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_def_GetEndorsingBoarderResponse)"/>

</wsdl:message>

<wsdl:portType name="GetEndorsingBoarderPortType">

<wsdl:operation name="GetEndorsingBoarder">

<wsdl:input message="es:[GetEndorsingBoarderRequest](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#message_GetEndorsingBoarderRequest)"/>

<wsdl:output message="es:[GetEndorsingBoarderResponse](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#message_GetEndorsingBoarderResponse)"/>

<wsdl:fault message="es:[GetEndorsingBoarderFault](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#message_GetEndorsingBoarderFault)"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="EndorsementSearchSoapBinding"

type="es:[GetEndorsingBoarderPortType](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#GetEndorsingBoarderPortType)">

Publicité

<soap:binding style="document"

transport="http://schemas.xmlsoap.org/soap/http"/>

<!-- semi-opaque container of network transport details classed by soap:binding above @@@ -->

<wsdl:operation name="[GetEndorsingBoarder](file:///C%3A%5C%5CDocuments%20and%20Settings%5C%5Cinstall%5C%5CDesktop%5C%5CCoursWeb%5C%5CMCAR%5C%5CwebServices%5C%5CAnnotated%20WSDL%20Examples.htm%22%20%5Cl%20%22portType_operation_GetEndorsingBoarder)">

<!-- again bind to SOAP? @@@ -->

<soap:operation soapAction="http://www.snowboard-

info.com/EndorsementSearch"/>

<wsdl:input>

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

</wsdl:output>

<wsdl:fault>

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

</wsdl:fault>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="EndorsementSearchService">

<wsdl:documentation>snowboarding-info.com Endorsement

Service</wsdl:documentation>

<wsdl:port name="GetEndorsingBoarderPort"

binding="es:[EndorsementSearchSoapBinding](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#EndorsementSearchSoapBinding)">

<soap:address location="http://www.snowboard-

info.com/EndorsementSearch"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Correction

<?xml version="1.0"?>

<!-- root element wsdl:definitions defines set of related services -->

<wsdl:definitions name="EndorsementSearch"

targetNamespace="[http://namespaces.snowboard-info.com](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_ns_namespaces_snowboard-info_com)"

xmlns:es="http://www.snowboard-info.com/EndorsementSearch.wsdl"

xmlns:esxsd="http://schemas.snowboard-info.com/EndorsementSearch.xsd"

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

<!-- wsdl:types encapsulates schema definitions of communication types; here using xsd -->

<wsdl:types>

<!-- all type declarations are in a chunk of xsd -->

<xsd:schema targetNamespace="http://namespaces.snowboard-info.com"

xmlns:xsd="http://www.w3.org/1999/XMLSchema">

<!-- xsd definition: GetEndorsingBoarder [manufacturer string, model string] -->

<xsd:element name="GetEndorsingBoarder">

<xsd:complexType>

Publicité

<xsd:sequence>

<xsd:element name="manufacturer" type="string"/>

<xsd:element name="model" type="string"/>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

<!-- xsd definition: GetEndorsingBoarderResponse [...

endorsingBoarder string ...] -->

<xsd:element name="GetEndorsingBoarderResponse">

<xsd:complexType>

<xsd:all>

<xsd:element name="endorsingBoarder" type="string"/>

</xsd:all>

</xsd:complexType>

</xsd:element>

<!-- xsd definition: GetEndorsingBoarderFault [... errorMessage string ...] -->

<xsd:element name="GetEndorsingBoarderFault">

<xsd:complexType>

<xsd:all>

<xsd:element name="errorMessage" type="string"/>

</xsd:all>

</xsd:complexType>

</xsd:element>

</xsd:schema>

</wsdl:types>

<!-- wsdl:message elements describe potential transactions -->

<!-- request GetEndorsingBoarderRequest is of type GetEndorsingBoarder -->

<wsdl:message name="GetEndorsingBoarderRequest">

<wsdl:part name="body" element="esxsd:[GetEndorsingBoarder](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_def_GetEndorsingBoarder)"/>

</wsdl:message>

<!-- response GetEndorsingBoarderResponse is of type GetEndorsingBoarderResponse -->

<wsdl:message name="GetEndorsingBoarderResponse">

<wsdl:part name="body" element="esxsd:[GetEndorsingBoarderResponse](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_def_GetEndorsingBoarderResponse)"/>

</wsdl:message>

<!-- wsdl:portType describes messages in an operation -->

<wsdl:portType name="GetEndorsingBoarderPortType">

<!-- the value of wsdl:operation eludes me -->

<wsdl:operation name="GetEndorsingBoarder">

<wsdl:input message="es:[GetEndorsingBoarderRequest](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#message_GetEndorsingBoarderRequest)"/>

<wsdl:output message="es:[GetEndorsingBoarderResponse](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#message_GetEndorsingBoarderResponse)"/>

<wsdl:fault message="es:[GetEndorsingBoarderFault](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#message_GetEndorsingBoarderFault)"/>

</wsdl:operation>

</wsdl:portType>

<!-- wsdl:binding states a serialization protocol for this service -->

<wsdl:binding name="EndorsementSearchSoapBinding"

type="es:[GetEndorsingBoarderPortType](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#GetEndorsingBoarderPortType)">

<!-- leverage off soap:binding document style @@@(no wsdl:foo pointing at the soap binding) -->

<soap:binding style="document"

transport="http://schemas.xmlsoap.org/soap/http"/>

<!-- semi-opaque container of network transport details classed by soap:binding above @@@ -->

<wsdl:operation name="[GetEndorsingBoarder](file:///C%3A%5C%5CDocuments%20and%20Settings%5C%5Cinstall%5C%5CDesktop%5C%5CCoursWeb%5C%5CMCAR%5C%5CwebServices%5C%5CAnnotated%20WSDL%20Examples.htm%22%20%5Cl%20%22portType_operation_GetEndorsingBoarder)">

Publicité

<!-- again bind to SOAP? @@@ -->

<soap:operation soapAction="http://www.snowboard-info.com/EndorsementSearch"/>

<!-- furthur specify that the messages in the wsdl:operation "GetEndorsingBoarder" use SOAP? @@@ -->

<wsdl:input>

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

</wsdl:output>

<wsdl:fault>

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

</wsdl:fault>

</wsdl:operation>

</wsdl:binding>

<!-- wsdl:service names a new service "EndorsementSearchService" -->

<wsdl:service name="EndorsementSearchService">

<wsdl:documentation>snowboarding-info.com Endorsement

Service</wsdl:documentation>

<!-- connect it to the binding "EndorsementSearchSoapBinding" above -->

<wsdl:port name="GetEndorsingBoarderPort"

binding="es:[EndorsementSearchSoapBinding](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#EndorsementSearchSoapBinding)">

<!-- give the binding an network address -->

<soap:address location="http://www.snowboard-

info.com/EndorsementSearch"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

1. Suite à la question 3), dans le fonctionnement de SOAP en mode RPC, voici un extrait d’un exemple de message d’appel (extrait du document W3C Annotated WSDL examples).

Indiquer les cinq/SEPT erreurs de syntaxe contenues dans cet extrait de fichier. Justifiez

1. <SOAP-ENV:Envelope

2. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

3. SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

4. <SOAP-ENV:Body>

5. <[m:GetEndorsingBoarder](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_def_GetEndorsingBoarder)>

6. xmlns:m="[http://namespaces.snowboard-info.com](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_ns_namespaces_snowboard-info_com)">

7. <manufacturer>K2</manufacturer>

8. <model>Fatbob</model>

9. </m:GetEndorsingBoarder>

10. </SOAP-ENV:Body>

11. </SOAP-ENV:Envelope>

Balises WSDL dans un service web et leurs équivalents Java

Web Services, SOAP, WSDL · exam

Voir tous les documents en programmation

Ecole Nationale des Sciences de l’Informatique II2-RSR A. U. : 2014/2015

TD

Systèmes et Applications Répartis

Web services

(Avril 2015)

Exercice 1: (Exam MCAR 2/2015)

1. Dans un fichier wsdl, dire à quoi correspondent les balises suivantes :

| | |

| --- | --- |

| Balises wsdl | Terme en java |

| operation | ………………. |

| portType | ………………. |

| message | ………………. |

| service | class of package |

| type | ………………. |

1. Dans l’extrait de l’instance de l’enveloppe SOAP suivante, dire à quelle méthode java correspond-il ?

<!ENTITY SOAPENC "http://www.w3.org/2001/06/soap-encoding">

<s:Envelope xmlns:s="...">

<s:Body>

<order xmlns="..." s:encodingStyle=&SOAPENC;>

<partName xsi:type="string">valve</partName>

<quantity xsi:type="string">12</quantity>

</order>

</s:Body>

</s:Envelope>

  • 1. void partName(String s); void quantity(integer n)

2. void order(String quantity, String partName)

3. void order(String quantity, integer partName)

4. String order(String partName, String quantity)

5. Aucune

1. Dans l’extrait du fichier WSDL (Cf. annexe), dire

1. quel est le nom du « web service »,

2. quels sont les types de données décrits dans le langage XML, et

3. quelles sont les opérations, et les paramètres d’appel et de retour utilisés, ainsi que le mode de transport de la liaison.

Justifiez vos réponses.

1. Que signifie la ligne suivante ?

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

1. Suite à la question 3), dans le fonctionnement de SOAP en mode RPC, voici un extrait d’un exemple de message requête (extrait du document W3C Annotated WSDL examples).

1. <SOAP-ENV:Envelope

2. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

3. SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

4. <SOAP-ENV:Body>

5. <[m:GetEndorsBoarder](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_def_GetEndorsingBoarder)>

6. xmlns:m="[http://namespaces.snowboard-info.com](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_ns_namespaces_snowboard-info_com)">

7. <manufacturer>K2</manufacture>

8. <mode>Fatbob</mode>

9. </m:GetEndorsBoarder>

10. <SOAP-ENV:Body>

11. </SOAP-ENV:Envelope>

Publicité

Indiquer les SEPT erreurs de syntaxe contenues dans cet extrait de fichier. Justifiez

ANNEXE

<?xml version="1.0"?>

<wsdl:definitions name="EndorsementSearch"

targetNamespace="[http://namespaces.snowboard-info.com](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_ns_namespaces_snowboard-info_com)"

xmlns:es="http://www.snowboard-info.com/EndorsementSearch.wsdl"

xmlns:esxsd="http://schemas.snowboard-info.com/EndorsementSearch.xsd"

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

<wsdl:types>

<xsd:schema targetNamespace="http://namespaces.snowboard-info.com"

xmlns:xsd="http://www.w3.org/1999/XMLSchema">

<xsd:element name="GetEndorsingBoarder">

<xsd:complexType>

<xsd:sequence>

<xsd:element name="manufacturer" type="string"/>

<xsd:element name="model" type="string"/>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

<xsd:element name="GetEndorsingBoarderResponse">

<xsd:complexType>

<xsd:all>

<xsd:element name="endorsingBoarder" type="string"/>

</xsd:all>

</xsd:complexType>

</xsd:element>

<xsd:element name="GetEndorsingBoarderFault">

<xsd:complexType>

<xsd:all>

<xsd:element name="errorMessage" type="string"/>

</xsd:all>

</xsd:complexType>

</xsd:element>

</xsd:schema>

</wsdl:types>

<wsdl:message name="GetEndorsingBoarderRequest">

<wsdl:part name="body" element="esxsd:[GetEndorsingBoarder](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_def_GetEndorsingBoarder)"/>

</wsdl:message>

<wsdl:message name="GetEndorsingBoarderResponse">

<wsdl:part name="body" element="esxsd:[GetEndorsingBoarderResponse](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_def_GetEndorsingBoarderResponse)"/>

</wsdl:message>

<wsdl:portType name="GetEndorsingBoarderPortType">

<wsdl:operation name="GetEndorsingBoarder">

<wsdl:input message="es:[GetEndorsingBoarderRequest](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#message_GetEndorsingBoarderRequest)"/>

<wsdl:output message="es:[GetEndorsingBoarderResponse](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#message_GetEndorsingBoarderResponse)"/>

<wsdl:fault message="es:[GetEndorsingBoarderFault](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#message_GetEndorsingBoarderFault)"/>

</wsdl:operation>

</wsdl:portType>

<wsdl:binding name="EndorsementSearchSoapBinding"

type="es:[GetEndorsingBoarderPortType](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#GetEndorsingBoarderPortType)">

Publicité

<soap:binding style="document"

transport="http://schemas.xmlsoap.org/soap/http"/>

<!-- semi-opaque container of network transport details classed by soap:binding above @@@ -->

<wsdl:operation name="[GetEndorsingBoarder](file:///C%3A%5C%5CDocuments%20and%20Settings%5C%5Cinstall%5C%5CDesktop%5C%5CCoursWeb%5C%5CMCAR%5C%5CwebServices%5C%5CAnnotated%20WSDL%20Examples.htm%22%20%5Cl%20%22portType_operation_GetEndorsingBoarder)">

<!-- again bind to SOAP? @@@ -->

<soap:operation soapAction="http://www.snowboard-

info.com/EndorsementSearch"/>

<wsdl:input>

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

</wsdl:output>

<wsdl:fault>

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

</wsdl:fault>

</wsdl:operation>

</wsdl:binding>

<wsdl:service name="EndorsementSearchService">

<wsdl:documentation>snowboarding-info.com Endorsement

Service</wsdl:documentation>

<wsdl:port name="GetEndorsingBoarderPort"

binding="es:[EndorsementSearchSoapBinding](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#EndorsementSearchSoapBinding)">

<soap:address location="http://www.snowboard-

info.com/EndorsementSearch"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

Correction

<?xml version="1.0"?>

<!-- root element wsdl:definitions defines set of related services -->

<wsdl:definitions name="EndorsementSearch"

targetNamespace="[http://namespaces.snowboard-info.com](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_ns_namespaces_snowboard-info_com)"

xmlns:es="http://www.snowboard-info.com/EndorsementSearch.wsdl"

xmlns:esxsd="http://schemas.snowboard-info.com/EndorsementSearch.xsd"

xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">

<!-- wsdl:types encapsulates schema definitions of communication types; here using xsd -->

<wsdl:types>

<!-- all type declarations are in a chunk of xsd -->

<xsd:schema targetNamespace="http://namespaces.snowboard-info.com"

xmlns:xsd="http://www.w3.org/1999/XMLSchema">

<!-- xsd definition: GetEndorsingBoarder [manufacturer string, model string] -->

<xsd:element name="GetEndorsingBoarder">

<xsd:complexType>

Publicité

<xsd:sequence>

<xsd:element name="manufacturer" type="string"/>

<xsd:element name="model" type="string"/>

</xsd:sequence>

</xsd:complexType>

</xsd:element>

<!-- xsd definition: GetEndorsingBoarderResponse [...

endorsingBoarder string ...] -->

<xsd:element name="GetEndorsingBoarderResponse">

<xsd:complexType>

<xsd:all>

<xsd:element name="endorsingBoarder" type="string"/>

</xsd:all>

</xsd:complexType>

</xsd:element>

<!-- xsd definition: GetEndorsingBoarderFault [... errorMessage string ...] -->

<xsd:element name="GetEndorsingBoarderFault">

<xsd:complexType>

<xsd:all>

<xsd:element name="errorMessage" type="string"/>

</xsd:all>

</xsd:complexType>

</xsd:element>

</xsd:schema>

</wsdl:types>

<!-- wsdl:message elements describe potential transactions -->

<!-- request GetEndorsingBoarderRequest is of type GetEndorsingBoarder -->

<wsdl:message name="GetEndorsingBoarderRequest">

<wsdl:part name="body" element="esxsd:[GetEndorsingBoarder](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_def_GetEndorsingBoarder)"/>

</wsdl:message>

<!-- response GetEndorsingBoarderResponse is of type GetEndorsingBoarderResponse -->

<wsdl:message name="GetEndorsingBoarderResponse">

<wsdl:part name="body" element="esxsd:[GetEndorsingBoarderResponse](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_def_GetEndorsingBoarderResponse)"/>

</wsdl:message>

<!-- wsdl:portType describes messages in an operation -->

<wsdl:portType name="GetEndorsingBoarderPortType">

<!-- the value of wsdl:operation eludes me -->

<wsdl:operation name="GetEndorsingBoarder">

<wsdl:input message="es:[GetEndorsingBoarderRequest](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#message_GetEndorsingBoarderRequest)"/>

<wsdl:output message="es:[GetEndorsingBoarderResponse](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#message_GetEndorsingBoarderResponse)"/>

<wsdl:fault message="es:[GetEndorsingBoarderFault](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#message_GetEndorsingBoarderFault)"/>

</wsdl:operation>

</wsdl:portType>

<!-- wsdl:binding states a serialization protocol for this service -->

<wsdl:binding name="EndorsementSearchSoapBinding"

type="es:[GetEndorsingBoarderPortType](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#GetEndorsingBoarderPortType)">

<!-- leverage off soap:binding document style @@@(no wsdl:foo pointing at the soap binding) -->

<soap:binding style="document"

transport="http://schemas.xmlsoap.org/soap/http"/>

<!-- semi-opaque container of network transport details classed by soap:binding above @@@ -->

<wsdl:operation name="[GetEndorsingBoarder](file:///C%3A%5C%5CDocuments%20and%20Settings%5C%5Cinstall%5C%5CDesktop%5C%5CCoursWeb%5C%5CMCAR%5C%5CwebServices%5C%5CAnnotated%20WSDL%20Examples.htm%22%20%5Cl%20%22portType_operation_GetEndorsingBoarder)">

Publicité

<!-- again bind to SOAP? @@@ -->

<soap:operation soapAction="http://www.snowboard-info.com/EndorsementSearch"/>

<!-- furthur specify that the messages in the wsdl:operation "GetEndorsingBoarder" use SOAP? @@@ -->

<wsdl:input>

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

</wsdl:input>

<wsdl:output>

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

</wsdl:output>

<wsdl:fault>

<soap:body use="literal"

namespace="http://schemas.snowboard-

info.com/EndorsementSearch.xsd"/>

</wsdl:fault>

</wsdl:operation>

</wsdl:binding>

<!-- wsdl:service names a new service "EndorsementSearchService" -->

<wsdl:service name="EndorsementSearchService">

<wsdl:documentation>snowboarding-info.com Endorsement

Service</wsdl:documentation>

<!-- connect it to the binding "EndorsementSearchSoapBinding" above -->

<wsdl:port name="GetEndorsingBoarderPort"

binding="es:[EndorsementSearchSoapBinding](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#EndorsementSearchSoapBinding)">

<!-- give the binding an network address -->

<soap:address location="http://www.snowboard-

info.com/EndorsementSearch"/>

</wsdl:port>

</wsdl:service>

</wsdl:definitions>

1. Suite à la question 3), dans le fonctionnement de SOAP en mode RPC, voici un extrait d’un exemple de message d’appel (extrait du document W3C Annotated WSDL examples).

Indiquer les cinq/SEPT erreurs de syntaxe contenues dans cet extrait de fichier. Justifiez

1. <SOAP-ENV:Envelope

2. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"

3. SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

4. <SOAP-ENV:Body>

5. <[m:GetEndorsingBoarder](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_def_GetEndorsingBoarder)>

6. xmlns:m="[http://namespaces.snowboard-info.com](file:///C%3A%5CDocuments%20and%20Settings%5Cinstall%5CDesktop%5CCoursWeb%5CMCAR%5CwebServices%5CAnnotated%20WSDL%20Examples.htm#xsd_ns_namespaces_snowboard-info_com)">

7. <manufacturer>K2</manufacturer>

8. <model>Fatbob</model>

9. </m:GetEndorsingBoarder>

10. </SOAP-ENV:Body>

11. </SOAP-ENV:Envelope>