web service not found
robert_trudel Oct 21, 2007 6:47 AMhi
somebody sent me a wsdl, i use the jboss tool to generate the classe
it's the wsdl:
<?xml version="1.0" encoding="utf8" ?> <wsdl:definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s=" http://www.w3.org/2001/XMLSchema" xmlns:soapenc=" http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns=" http://tempuri.org/Facturateur/Service1" xmlns:tm=" http://microsoft.com/wsdl/mime/textMatching/" xmlns:mime=" http://schemas.xmlsoap.org/wsdl/mime/" targetNamespace=" http://tempuri.org/Facturateur/Service1" xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace=" http://tempuri.org/Facturateur/Service1"> <s:element name="GetVersion"> <s:complexType /> </s:element> <s:element name="GetVersionResponse"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name=" GetVersionResult" type="s:string" /> </s:sequence> </s:complexType> </s:element> <s:element name="GetPrix"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="F" type=" s:string" /> </s:sequence> </s:complexType> </s:element> <s:element name="GetPrixResponse"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name=" GetPrixResult" type="s:string" /> </s:sequence> </s:complexType> </s:element> <s:element name="Authentification" type="tns:Authentification" /> <s:complexType name="Authentification"> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="CodeApporteur" type="s:string" /> </s:sequence> </s:complexType> <s:element name="GetDevis"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="F" type=" s:string" /> </s:sequence> </s:complexType> </s:element> <s:element name="GetDevisResponse"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name=" GetDevisResult" type="s:string" /> </s:sequence> </s:complexType> </s:element> <s:element name="GetSouscription"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="F" type=" s:string" /> </s:sequence> </s:complexType> </s:element> <s:element name="GetSouscriptionResponse"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name=" GetSouscriptionResult" type="s:string" /> </s:sequence> </s:complexType> </s:element> </s:schema> </wsdl:types> <wsdl:message name="GetVersionSoapIn"> <wsdl:part name="parameters" element="tns:GetVersion" /> </wsdl:message> <wsdl:message name="GetVersionSoapOut"> <wsdl:part name="parameters" element="tns:GetVersionResponse" /> </wsdl:message> <wsdl:message name="GetPrixSoapIn"> <wsdl:part name="parameters" element="tns:GetPrix" /> </wsdl:message> <wsdl:message name="GetPrixSoapOut"> <wsdl:part name="parameters" element="tns:GetPrixResponse" /> </wsdl:message> <wsdl:message name="GetPrixAuthentification"> <wsdl:part name="Authentification" element="tns:Authentification" /> </wsdl:message> <wsdl:message name="GetDevisSoapIn"> <wsdl:part name="parameters" element="tns:GetDevis" /> </wsdl:message> <wsdl:message name="GetDevisSoapOut"> <wsdl:part name="parameters" element="tns:GetDevisResponse" /> </wsdl:message> <wsdl:message name="GetDevisAuthentification"> <wsdl:part name="Authentification" element="tns:Authentification" /> </wsdl:message> <wsdl:message name="GetSouscriptionSoapIn"> <wsdl:part name="parameters" element="tns:GetSouscription" /> </wsdl:message> <wsdl:message name="GetSouscriptionSoapOut"> <wsdl:part name="parameters" element="tns:GetSouscriptionResponse " /> </wsdl:message> <wsdl:message name="GetSouscriptionAuthentification"> <wsdl:part name="Authentification" element="tns:Authentification" /> </wsdl:message> <wsdl:portType name="PrixSoap"> <wsdl:operation name="GetVersion"> <wsdl:input message="tns:GetVersionSoapIn" /> <wsdl:output message="tns:GetVersionSoapOut" /> </wsdl:operation> <wsdl:operation name="GetPrix"> <wsdl:input message="tns:GetPrixSoapIn" /> <wsdl:output message="tns:GetPrixSoapOut" /> </wsdl:operation> <wsdl:operation name="GetDevis"> <wsdl:input message="tns:GetDevisSoapIn" /> <wsdl:output message="tns:GetDevisSoapOut" /> </wsdl:operation> <wsdl:operation name="GetSouscription"> <wsdl:input message="tns:GetSouscriptionSoapIn" /> <wsdl:output message="tns:GetSouscriptionSoapOut" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="PrixSoap" type="tns:PrixSoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <wsdl:operation name="GetVersion"> <soap:operation soapAction=" http://tempuri.org/Facturateur/Service1/GetVersion" style=" document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="GetPrix"> <soap:operation soapAction=" http://tempuri.org/Facturateur/Service1/GetPrix" style=" document" /> <wsdl:input> <soap:body use="literal" /> <soap:header message="tns:GetPrixAuthentification" part=" Authentification" use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="GetDevis"> <soap:operation soapAction=" http://tempuri.org/Facturateur/Service1/GetDevis" style=" document" /> <wsdl:input> <soap:body use="literal" /> <soap:header message="tns:GetDevisAuthentification" part=" Authentification" use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="GetSouscription"> <soap:operation soapAction=" http://tempuri.org/Facturateur/Service1/GetSouscription" style=" document" /> <wsdl:input> <soap:body use="literal" /> <soap:header message="tns:GetSouscriptionAuthentification" part="Authentification" use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="Prix"> <wsdl:port name="PrixSoap" binding="tns:PrixSoap"> <soap:address location=" http://www.test.com/ws/tarificateur/tarif.asmx" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
jboss generated some classe
GetPrix.java
GetPrixResponse.java
Prix.java
PrixSoap.java
....
so i implemented the server class (TarifImpl who implement the interface generated by jobss)
in the web.xml i wrote
<servlet> <servlet-name>Facturateur</servlet-name> <servlet-class>com.test.ws.TarifImpl</servlet-class> </servlet> <servlet-mapping> <servlet-name>Facturateur</servlet-name> <url-pattern>/Facturateur</url-pattern> </servlet-mapping>
when i go to http://localhost:8080/jbossws/services
there is no service
any idea?
thanks