J'ai crée un web service sous axis.
Je veux l'utiliser pour un client J2ME.
Quand j'execute la méthode j'ai l'erreur suivante :
ava.rmi.MarshalException: Invalid Element Name From Server: idProjetReturn, expected: getTachesReturn
at tachews.TacheWs_Stub.getTaches(TacheWs_Stub.java:80)
at jprojet.mobile.JprojetMobile$2.execute(JprojetMobile.java:274)
at org.netbeans.microedition.util.SimpleCancellableTask.run(SimpleCancellableTask.java:102)
at org.netbeans.microedition.lcdui.WaitScreen$BackgroundExecutor.run(WaitScreen.java:166)
je ne la comprend pas
Voici mon wsdl :
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://webservices.web.jprojet" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://webservices.web.jprojet" xmlns:intf="http://webservices.web.jprojet" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlnssd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2.1
Built on Aug 08, 2005 (11:49:10 PDT)-->
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://webservices.web.jprojet" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="idProjet" type="xsd:string"/>
<element name="getTachesReturn" type="xsd:string"/>
</schema>
</wsdl:types>
<wsdl:message name="getTachesResponse">
<wsdl:part element="impl:getTachesReturn" name="getTachesReturn"/>
</wsdl:message>
<wsdl:message name="getTachesRequest">
<wsdl:part element="impl:idProjet" name="idProjet"/>
</wsdl:message>
<wsdl:portType name="TacheWs">
<wsdl:operation name="getTaches" parameterOrder="idProjet">
<wsdl:input message="impl:getTachesRequest" name="getTachesRequest"/>
<wsdl:output message="impl:getTachesResponse" name="getTachesResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="TacheWsSoapBinding" type="impl:TacheWs">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getTaches">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getTachesRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getTachesResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="TacheWsService">
<wsdl:port binding="impl:TacheWsSoapBinding" name="TacheWs">
<wsdlsoap:address location="http://localhost:8083/webservices/services/TacheWs"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Si quelqu'un à une piste ...
Merci
Partager