Bonjour,
je realise des appels a des web services en java.
j'ai ce message d'erreur:
Message receiver not found for axis methode : ma_methode
j'aimerai savoir ce que cela veux dire a fin de debuger mon appel on ma methode.
merci
Bonjour,
je realise des appels a des web services en java.
j'ai ce message d'erreur:
Message receiver not found for axis methode : ma_methode
j'aimerai savoir ce que cela veux dire a fin de debuger mon appel on ma methode.
merci
Faudrait que tu sois plus précis là...
Ton code du client SOAP, le code du WSDL du WebService Java... Ce genre de trucs quoi ^^
Sinon à première vue tu appelles mal la méthode. Mais ca peut venir aussi du serveur...
ben mon code php pour l'appel :
et pour le WSLD
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7 require_once('NuSoap/nusoap.php'); $modeLivraison = array('express'); $client = new nusoap_client("http://localhost:8080/axis2/services/GererTournee"); $result = $client->call('demanderIntegration'); print_r($result);
en ce qui concerne le code java je ne 'lai pas j'ai juste le .aar mais je sais qu'il fonctionne car je l'ai vu tourné.
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215<?xml version="1.0" encoding="UTF-8" ?> - <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns0="http://ws.apache.org/axis2" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" targetNamespace="http://ws.apache.org/axis2"> - <wsdl:types> - <xs:schema xmlns:ns="http://ws.apache.org/axis2" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://ws.apache.org/axis2"> - <xs:element name="demanderCalculResponse"> - <xs:complexType> - <xs:sequence> <xs:element minOccurs="0" name="return" type="xs:boolean" /> </xs:sequence> </xs:complexType> </xs:element> - <xs:element name="demanderIntegrationResponse"> - <xs:complexType> - <xs:sequence> <xs:element minOccurs="0" name="return" type="xs:boolean" /> </xs:sequence> </xs:complexType> </xs:element> - <xs:element name="demanderRecalcul"> - <xs:complexType> - <xs:sequence> <xs:element minOccurs="0" name="idfeuillederoute" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> - <xs:element name="demanderRecalculResponse"> - <xs:complexType> - <xs:sequence> <xs:element minOccurs="0" name="return" type="xs:boolean" /> </xs:sequence> </xs:complexType> </xs:element> - <xs:element name="demanderRepartition"> - <xs:complexType> - <xs:sequence> <xs:element minOccurs="0" name="modeLivraison" nillable="true" type="xs:string" /> </xs:sequence> </xs:complexType> </xs:element> - <xs:element name="demanderRepartitionResponse"> - <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="demanderRecalculRequest"> <wsdl:part name="parameters" element="ns0:demanderRecalcul" /> </wsdl:message> - <wsdl:message name="demanderRecalculResponse"> <wsdl:part name="parameters" element="ns0:demanderRecalculResponse" /> </wsdl:message> - <wsdl:message name="demanderRepartitionRequest"> <wsdl:part name="parameters" element="ns0:demanderRepartition" /> </wsdl:message> - <wsdl:message name="demanderRepartitionResponse"> <wsdl:part name="parameters" element="ns0:demanderRepartitionResponse" /> </wsdl:message> <wsdl:message name="demanderCalculRequest" /> - <wsdl:message name="demanderCalculResponse"> <wsdl:part name="parameters" element="ns0:demanderCalculResponse" /> </wsdl:message> <wsdl:message name="demanderIntegrationRequest" /> - <wsdl:message name="demanderIntegrationResponse"> <wsdl:part name="parameters" element="ns0:demanderIntegrationResponse" /> </wsdl:message> - <wsdl:portType name="GererTourneePortType"> - <wsdl:operation name="demanderRecalcul"> <wsdl:input message="ns0:demanderRecalculRequest" wsaw:Action="urn:demanderRecalcul" /> <wsdl:output message="ns0:demanderRecalculResponse" wsaw:Action="urn:demanderRecalculResponse" /> </wsdl:operation> - <wsdl:operation name="demanderRepartition"> <wsdl:input message="ns0:demanderRepartitionRequest" wsaw:Action="urn:demanderRepartition" /> <wsdl:output message="ns0:demanderRepartitionResponse" wsaw:Action="urn:demanderRepartitionResponse" /> </wsdl:operation> - <wsdl:operation name="demanderCalcul"> <wsdl:input message="ns0:demanderCalculRequest" wsaw:Action="urn:demanderCalcul" /> <wsdl:output message="ns0:demanderCalculResponse" wsaw:Action="urn:demanderCalculResponse" /> </wsdl:operation> - <wsdl:operation name="demanderIntegration"> <wsdl:input message="ns0:demanderIntegrationRequest" wsaw:Action="urn:demanderIntegration" /> <wsdl:output message="ns0:demanderIntegrationResponse" wsaw:Action="urn:demanderIntegrationResponse" /> </wsdl:operation> </wsdl:portType> - <wsdl:binding name="GererTourneeSOAP11Binding" type="ns0:GererTourneePortType"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> - <wsdl:operation name="demanderRecalcul"> <soap:operation soapAction="urn:demanderRecalcul" style="document" /> - <wsdl:input> <soap:body use="literal" /> </wsdl:input> - <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="demanderRepartition"> <soap:operation soapAction="urn:demanderRepartition" style="document" /> - <wsdl:input> <soap:body use="literal" /> </wsdl:input> - <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="demanderCalcul"> <soap:operation soapAction="urn:demanderCalcul" style="document" /> - <wsdl:input> <soap:body use="literal" /> </wsdl:input> - <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="demanderIntegration"> <soap:operation soapAction="urn:demanderIntegration" 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="GererTourneeSOAP12Binding" type="ns0:GererTourneePortType"> <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> - <wsdl:operation name="demanderRecalcul"> <soap12:operation soapAction="urn:demanderRecalcul" style="document" /> - <wsdl:input> <soap12:body use="literal" /> </wsdl:input> - <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="demanderRepartition"> <soap12:operation soapAction="urn:demanderRepartition" style="document" /> - <wsdl:input> <soap12:body use="literal" /> </wsdl:input> - <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="demanderCalcul"> <soap12:operation soapAction="urn:demanderCalcul" style="document" /> - <wsdl:input> <soap12:body use="literal" /> </wsdl:input> - <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="demanderIntegration"> <soap12:operation soapAction="urn:demanderIntegration" 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="GererTourneeHttpBinding" type="ns0:GererTourneePortType"> <http:binding verb="POST" /> - <wsdl:operation name="demanderRecalcul"> <http:operation location="GererTournee/demanderRecalcul" /> - <wsdl:input> <mime:content type="text/xml" part="demanderRecalcul" /> </wsdl:input> - <wsdl:output> <mime:content type="text/xml" part="demanderRecalcul" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="demanderRepartition"> <http:operation location="GererTournee/demanderRepartition" /> - <wsdl:input> <mime:content type="text/xml" part="demanderRepartition" /> </wsdl:input> - <wsdl:output> <mime:content type="text/xml" part="demanderRepartition" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="demanderCalcul"> <http:operation location="GererTournee/demanderCalcul" /> - <wsdl:input> <mime:content type="text/xml" part="demanderCalcul" /> </wsdl:input> - <wsdl:output> <mime:content type="text/xml" part="demanderCalcul" /> </wsdl:output> </wsdl:operation> - <wsdl:operation name="demanderIntegration"> <http:operation location="GererTournee/demanderIntegration" /> - <wsdl:input> <mime:content type="text/xml" part="demanderIntegration" /> </wsdl:input> - <wsdl:output> <mime:content type="text/xml" part="demanderIntegration" /> </wsdl:output> </wsdl:operation> </wsdl:binding> - <wsdl:service name="GererTournee"> - <wsdl:port name="GererTourneeSOAP11port_http" binding="ns0:GererTourneeSOAP11Binding"> <soap:address location="http://localhost:8080/axis2/services/GererTournee" /> </wsdl:port> - <wsdl:port name="GererTourneeSOAP12port_http" binding="ns0:GererTourneeSOAP12Binding"> <soap12:address location="http://localhost:8080/axis2/services/GererTournee" /> </wsdl:port> - <wsdl:port name="GererTourneeHttpport" binding="ns0:GererTourneeHttpBinding"> <http:address location="http://localhost:8080/axis2/services/GererTournee" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
Je n'ai jamais utilisé NuSOAP, et je me suis jamais interfacé avec un WebService en Java.
J'ai des idées mais je ne suis pas vraiment sûr. Déjà pour moi dans un WSDL il faut définir les paramètres d'une méthode, même s'il y a aucun paramètres. Dans ton fichier tu as que :
Donc peut être qu'en Java on peut se passer d'une définition préalable, et peut-être qu'en PHP c'est obligatoire...
Code : Sélectionner tout - Visualiser dans une fenêtre à part <wsdl:message name="demanderIntegrationRequest" />
Sinon ca vient de NuSOAP. Je sais qu'avec les fonction natives de PHP5, il faut préciser qu'on envoie aucun paramètre, et ne pas simplement rien mettre.
Enfin voila, désolé pas plus t'aider, c'est juste des idées
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager