comment le client detecte le nom des parametres d'une fonction
Hello,
j'ai developpé un service web addition qui prends deux parametres appelés premier et deuxieme.
Voici le fichier WSDL
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'?><!-- Published by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.1-b419 (branches/2.3.1.x-7937; 2014-08-04T08:11:03+0000) JAXWS-RI/2.2.10-b140803.1500 JAXWS-API/2.2.11 JAXB-RI/2.2.10-b140802.1033 JAXB-API/2.2.12-b140109.1041 svn-revision#unknown. --><!-- Generated by JAX-WS RI (http://jax-ws.java.net). RI's version is Metro/2.3.1-b419 (branches/2.3.1.x-7937; 2014-08-04T08:11:03+0000) JAXWS-RI/2.2.10-b140803.1500 JAXWS-API/2.2.11 JAXB-RI/2.2.10-b140802.1033 JAXB-API/2.2.12-b140109.1041 svn-revision#unknown. --><definitions xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://calc.isi.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://calc.isi.org/" name="CalculWS">
<types>
<xsd:schema>
<xsd:import namespace="http://calc.isi.org/" schemaLocation="http://localhost:8080/ExamControl/CalculWS?xsd=1"/>
</xsd:schema>
</types>
<message name="addition">
<part name="parameters" element="tns:addition"/>
</message>
<message name="additionResponse">
<part name="parameters" element="tns:additionResponse"/>
</message>
<portType name="CalculWS">
<operation name="addition">
<input wsam:Action="http://calc.isi.org/CalculWS/additionRequest" message="tns:addition"/>
<output wsam:Action="http://calc.isi.org/CalculWS/additionResponse" message="tns:additionResponse"/>
</operation>
</portType>
<binding name="CalculWSPortBinding" type="tns:CalculWS">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="addition">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="CalculWS">
<port name="CalculWSPort" binding="tns:CalculWSPortBinding">
<soap:address location="http://localhost:8080/ExamControl/CalculWS"/>
</port>
</service>
</definitions> |
Quand j'ouvre le client SOAP (SOAPUI), il me donne le fichier soap suivant
Code:
1 2 3 4 5 6 7 8 9
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:calc="http://calc.isi.org/">
<soapenv:Header/>
<soapenv:Body>
<calc:addition>
<premier>?</premier>
<deuxieme>?</deuxieme>
</calc:addition>
</soapenv:Body>
</soapenv:Envelope> |
La question est : Quel est le processus qui a permis au clients de connaitre le nom des parametres.
Merci d'avance pour votre aide