Bonjour,
Je test actuellement SOAP et j'ai crée ma WSDL. J'essai de la faire valider sur http://www.validwsdl.com/ pour voir si elle est correcte :
Cependant, il ne me reconnaît aucune opération ni rien. Aurais je oublié quelque chose ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54 <?xml version="1.0" encoding="UTF-8"?> <definitions name="TestSoap" targetNamespace="http://www.mon-site.com/api/read" xmlns:tns="http://www.mon-site.com/api/read" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"> <types /> <message name="LoginRequestMsg"> <part name="login" type="xsd:string" /> <part name="password" type="xsd:string" /> </message> <message name="LoginResponseMsg"> <part name="xmlResponse" type="xsd:string" /> </message> <message name="AccountRequestMsg"> <part name="key" type="xsd:string" /> </message> <message name="AccountResponseMsg"> <part name="xmlResponse" type="xsd:string" /> </message> <portType name="TestSoapPortType"> <operation name="Login"> <input message="LoginRequestMsg" /> <output message="LoginResponseMsg" /> </operation> <operation name="Account"> <input message="AccountRequestMsg" /> <output message="AccountResponseMsg" /> </operation> </portType> <binding name="TestSoapBinding" type="tns:TestSoapPortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc" /> <operation name="Login"> <soap:operation soapAction="http://www.mon-site.com/api/login/xml" /> <input> <soap:body use="literal" /> </input> <output> <soap:body use="literal" /> </output> </operation> <operation name="Account"> <soap:operation soapAction="http://www.mon-site.com/api/restrictions" /> <input> <soap:body use="literal" /> </input> <output> <soap:body use="literal" /> </output> </operation> </binding> <service name="TestSoapService"> <port name="TestSoapServicePort" binding="TestSoapBinding"> <soap:address location="http://www.mon-site.com/api/read" /> </port> </service> </definitions>
Merci d'avance à ceux qui pourront m'aider![]()
Partager