Comment consommer un web service
Bonjour tout le monde
j'ai crée un service web en java j'ai géneré le WSDL avec AXIS2...
maintenant j'ai le fichier WSDL.
le service marche bien lorsque je le test avec le web service explorer
Ma question est comment je peux consommer et uitliser ce service avec java Script
Voila mon fichier WSDL
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 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://pakage" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://pakage" xmlns:intf="http://pakage" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.4
Built on Apr 22, 2006 (06:55:48 PDT)-->
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://pakage" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="compteur">
<complexType>
<sequence>
<element name="URL" type="xsd:string"/>
<element name="IP" type="xsd:string"/>
<element name="DateHeure" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="compteurResponse">
<complexType>
<sequence>
<element name="compteurReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="compteurResponse">
<wsdl:part element="impl:compteurResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="compteurRequest">
<wsdl:part element="impl:compteur" name="parameters"/>
</wsdl:message>
<wsdl:portType name="WebService3">
<wsdl:operation name="compteur">
<wsdl:input message="impl:compteurRequest" name="compteurRequest"/>
<wsdl:output message="impl:compteurResponse" name="compteurResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="WebService3SoapBinding" type="impl:WebService3">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="compteur">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="compteurRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="compteurResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="WebService3Service">
<wsdl:port binding="impl:WebService3SoapBinding" name="WebService3">
<wsdlsoap:address location="http://localhost:8080/WsProject/services/WebService3"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions> |
merci d'avance les amis ;)