Bonjour,
je pense que la réponse à ma question est simple mais je ne la trouve pas sur google.
J'aimerai accéder à l'un de mes Web Services déployé sous Axis2 via mon navigateur pour vérifier que ce WS fonctionne.
Voilà le contenu du wsdl de mon service :
J'aimerai juste tester un appel à la mèthode createUriStatus pour voir si mon Web Service fonctionne.
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145 <wsdl:definitions targetNamespace="http://resource.controler.natoine.fr"> <wsdl:documentation>UriStatusCreate</wsdl:documentation> <wsdl:types> <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://model_resource.natoine.fr/xsd"> <xs:complexType name="UriStatus"> <xs:sequence> <xs:element minOccurs="0" name="comment" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="father" nillable="true" type="ax215:UriStatus"/> <xs:element minOccurs="0" name="id" nillable="true" type="xs:long"/> <xs:element minOccurs="0" name="label" nillable="true" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:schema> <xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://resource.controler.natoine.fr"> <xs:import namespace="http://model_resource.natoine.fr/xsd"/> <xs:element name="createUriStatusChild"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="label" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="comment" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="father" nillable="true" type="ax216:UriStatus"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="createUriStatusChildResponse"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="return" type="xs:boolean"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="createUriStatus"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="label" nillable="true" type="xs:string"/> <xs:element minOccurs="0" name="comment" nillable="true" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="createUriStatusResponse"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" name="return" type="xs:boolean"/> </xs:sequence> </xs:complexType> </xs:element> </xs:schema> </wsdl:types> <wsdl:message name="createUriStatusRequest"> <wsdl:part name="parameters" element="ns:createUriStatus"/> </wsdl:message> <wsdl:message name="createUriStatusResponse"> <wsdl:part name="parameters" element="ns:createUriStatusResponse"/> </wsdl:message> <wsdl:message name="createUriStatusChildRequest"> <wsdl:part name="parameters" element="ns:createUriStatusChild"/> </wsdl:message> <wsdl:message name="createUriStatusChildResponse"> <wsdl:part name="parameters" element="ns:createUriStatusChildResponse"/> </wsdl:message> <wsdl:portType name="UriStatusCreatePortType"> <wsdl:operation name="createUriStatus"> <wsdl:input message="ns:createUriStatusRequest" wsaw:Action="urn:createUriStatus"/> <wsdl:output message="ns:createUriStatusResponse" wsaw:Action="urn:createUriStatusResponse"/> </wsdl:operation> <wsdl:operation name="createUriStatusChild"> <wsdl:input message="ns:createUriStatusChildRequest" wsaw:Action="urn:createUriStatusChild"/> <wsdl:output message="ns:createUriStatusChildResponse" wsaw:Action="urn:createUriStatusChildResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="UriStatusCreateSoap11Binding" type="ns:UriStatusCreatePortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="createUriStatus"> <soap:operation soapAction="urn:createUriStatus" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="createUriStatusChild"> <soap:operation soapAction="urn:createUriStatusChild" style="document"/> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="UriStatusCreateSoap12Binding" type="ns:UriStatusCreatePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/> <wsdl:operation name="createUriStatus"> <soap12:operation soapAction="urn:createUriStatus" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="createUriStatusChild"> <soap12:operation soapAction="urn:createUriStatusChild" style="document"/> <wsdl:input> <soap12:body use="literal"/> </wsdl:input> <wsdl:output> <soap12:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="UriStatusCreateHttpBinding" type="ns:UriStatusCreatePortType"> <http:binding verb="POST"/> <wsdl:operation name="createUriStatus"> <http:operation location="UriStatusCreate/createUriStatus"/> <wsdl:input> <mime:content type="text/xml" part="createUriStatus"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="createUriStatus"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="createUriStatusChild"> <http:operation location="UriStatusCreate/createUriStatusChild"/> <wsdl:input> <mime:content type="text/xml" part="createUriStatusChild"/> </wsdl:input> <wsdl:output> <mime:content type="text/xml" part="createUriStatusChild"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="UriStatusCreate"> <wsdl:port name="UriStatusCreateHttpSoap11Endpoint" binding="ns:UriStatusCreateSoap11Binding"> <soap:address location="http://localhost:8080/axis2/services/UriStatusCreate.UriStatusCreateHttpSoap11Endpoint/"/> </wsdl:port> <wsdl:port name="UriStatusCreateHttpSoap12Endpoint" binding="ns:UriStatusCreateSoap12Binding"> <soap12:address location="http://localhost:8080/axis2/services/UriStatusCreate.UriStatusCreateHttpSoap12Endpoint/"/> </wsdl:port> <wsdl:port name="UriStatusCreateHttpEndpoint" binding="ns:UriStatusCreateHttpBinding"> <http:address location="http://localhost:8080/axis2/services/UriStatusCreate.UriStatusCreateHttpEndpoint/"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
J'ai tenté
http://localhost:8080/axis2/services...reateUriStatus
et
http://localhost:8080/axis2/services...reateUriStatus
Dans les deux cas j'ai la réponse suivante :
Merci d'avance pour votre aide.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 <soapenv:Reason> <soapenv:Text xml:lang="en-US"> The endpoint reference (EPR) for the Operation not found is /axis2/services/UriStatusCreate?method=createUriStatus and the WSA Action = null </soapenv:Text> </soapenv:Reason>
Partager