Cannot find dispatch method for {}
Bonjour,
Cela fait quelques jours que je suis bloquée et que je ne comprends pas mon problème. Globalement, j'ai une application JAVA qui génère un fichier WSDL. Lorsque je teste le service via SOAPUI tout fonctionne, seulement mon but est d'utiliser WSO2, lorsque je créer un ProxyService basé sur le WSDL je me retrouve avec cette erreur lorsque je le teste : Cannot find dispatch method for {} J'ai beau essayé d'ajouter des namespace rien a faire.
Je suis pas très sure de ce que dois contenir mon WSDL, je vous le met en dessous:
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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| <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://esbConnexion/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://esbConnexion/" name="IncidentService">
<types>
<xsd:schema>
<xsd:import namespace="http://esbConnexion/" schemaLocation="http://192.168.43.23:8899/ws?xsd=1"/>
</xsd:schema>
</types>
<message name="GetListe"/>
<message name="GetListeResponse">
<part name="return" type="tns:incidentArray"/>
</message>
<message name="FindIncident">
<part name="arg0" type="xsd:int"/>
</message>
<message name="FindIncidentResponse">
<part name="return" type="tns:incident"/>
</message>
<portType name="FonctionUsed">
<operation name="GetListe">
<input wsam:Action="GetListe" message="tns:GetListe"/>
<output wsam:Action="http://esbConnexion/FonctionUsed/GetListeResponse" message="tns:GetListeResponse"/>
</operation>
<operation name="FindIncident">
<input wsam:Action="FindIncident" message="tns:FindIncident"/>
<output wsam:Action="http://esbConnexion/FonctionUsed/FindIncidentResponse" message="tns:FindIncidentResponse"/>
</operation>
</portType>
<binding name="IncidentServicePortBinding" type="tns:FonctionUsed">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<operation name="GetListe">
<soap:operation soapAction="GetListe"/>
<input>
<soap:body use="literal" namespace="http://esbConnexion/"/>
</input>
<output>
<soap:body use="literal" namespace="http://esbConnexion/"/>
</output>
</operation>
<operation name="FindIncident">
<soap:operation soapAction="FindIncident"/>
<input>
<soap:body use="literal" namespace="http://esbConnexion/"/>
</input>
<output>
<soap:body use="literal" namespace="http://esbConnexion/"/>
</output>
</operation>
</binding>
<service name="IncidentService">
<port name="IncidentServicePort" binding="tns:IncidentServicePortBinding">
<soap:address location="http://192.168.43.23:8899/ws"/>
</port>
</service>
</definitions> |
Au niveau de mon application Java j'ai une interface et une classe qui l'implémente, puis une autre classe qui publie mon webService et génère mon WSDL
edit: Sous WSO2 seule ma fonction FindIncident fonctionne, je n'ai l'erreur que pour la deuxieme :/
Citation:
@WebMethod(action="GetListe", operationName="GetListe")
public Incident[] GetListe();
Avez-vous une idée ?
Merci beaucoup ! :)