Problème 'cannot be unwrapped' wsdl
Bonjour,
Je me permet de poster sur ce forum car cela fait plusieurs heures que je bloques sur un problème.
J'ai un fichier wsdl qui a le contenu suivant :
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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
targetNamespace="http://unilog.com"
xmlns:apachesoap="http://xml.apache.org/xml-soap"
xmlns:impl="http://unilog.com"
xmlns:intf="http://unilog.com"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:message name="exporterCommandeFlashRequest">
<wsdl:part name="in0" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="exporterCommandeFlashResponse">
<wsdl:part name="exporterCommandeFlashReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="IEngaService">
<wsdl:operation name="exporterCommandeFlash" parameterOrder="in0">
<wsdl:input message="impl:exporterCommandeFlashRequest" name="exporterCommandeFlashRequest"/>
<wsdl:output message="impl:exporterCommandeFlashResponse" name="exporterCommandeFlashResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="GdAEngagementServiceSoapBinding" type="impl:IEngaService">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="exporterCommandeFlash">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="exporterCommandeFlashRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://unilog.com" use="literal"/>
</wsdl:input>
<wsdl:output name="exporterCommandeFlashResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://unilog.com" use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="GdAEngagementServiceService">
<wsdl:port binding="impl:GdAEngagementServiceSoapBinding" name="GdAEngagementService">
<wsdlsoap:address location="url"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions> |
Pour générer les classes, il n'y a aucun problème.
J'ai donc ensuite créer un bout de code pour exécuter cette fonction mais lors de son exécution j'ai l'erreur suivante qui s'affiche :
Operation {http://unilog.com}exporterCommandeFlash cannot be unwrapped, input message must reference global element declaration with same localname as operation
J'ai fait des recherches mais je ne vois pas ce qui cloche.
Pourriez-vous s'il vous plaît m'aider ?
Merci d'avance
Edit:
Je me suis également aperçu que si je teste exporterCommande dans SOAP, cela me renvoie une réponse qui semble correcte. Seulement le type est définie comme sopaenc:string pourtant dans le wsdl il est bien définie comme étant de type xsd:string.