Service Unavailable
jerryp64 Dec 20, 2004 1:02 PMI have deployed a service using the Getting Started Guide, the Wiki, and some suggestions from these forums. After I deploy the service I am able to use the following URL to see the service:
http://localhost:8080/ws4ee/services/BookSessionService?wsdl
I have reviewed the service on the server and I saved the WSDL file to another directory. I am trying to create a standalone client that can access the service. I have used the Axis WSDL2Java program to generate the Java classes needed to access the server.
When I run the standalone application I get SOAP fault. In the message it returns a
404-mod07sol/BookSessionService, the requested resource is not available.
Here is the WSDL file:
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://service.hott.com" xmlns:impl="http://service.hott.com" xmlns:intf="http://service.hott.com" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <wsdl:message name="findByTitleResponse"> <wsdl:part name="findByTitleReturn" type="xsd:string"/> </wsdl:message> <wsdl:message name="findByISBNResponse"> <wsdl:part name="findByISBNReturn" type="xsd:string"/> </wsdl:message> <wsdl:message name="findByTitleRequest"> <wsdl:part name="in0" type="xsd:string"/> </wsdl:message> <wsdl:message name="findByPriceRangeRequest"> <wsdl:part name="in0" type="xsd:double"/> <wsdl:part name="in1" type="xsd:double"/> </wsdl:message> <wsdl:message name="findByPriceRangeResponse"> <wsdl:part name="findByPriceRangeReturn" type="xsd:string"/> </wsdl:message> <wsdl:message name="findByISBNRequest"> <wsdl:part name="in0" type="xsd:int"/> </wsdl:message> <wsdl:portType name="BookSessionEndpoint"> <wsdl:operation name="findByISBN" parameterOrder="in0"> <wsdl:input name="findByISBNRequest" message="impl:findByISBNRequest"/> <wsdl:output name="findByISBNResponse" message="impl:findByISBNResponse"/> </wsdl:operation> <wsdl:operation name="findByPriceRange" parameterOrder="in0 in1"> <wsdl:input name="findByPriceRangeRequest" message="impl:findByPriceRangeRequest"/> <wsdl:output name="findByPriceRangeResponse" message="impl:findByPriceRangeResponse"/> </wsdl:operation> <wsdl:operation name="findByTitle" parameterOrder="in0"> <wsdl:input name="findByTitleRequest" message="impl:findByTitleRequest"/> <wsdl:output name="findByTitleResponse" message="impl:findByTitleResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="BookSessionEndpointSoapBinding" type="impl:BookSessionEndpoint"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="findByISBN"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="findByISBNRequest"> <wsdlsoap:body use="literal" namespace="http://service.hott.com"/> </wsdl:input> <wsdl:output name="findByISBNResponse"> <wsdlsoap:body use="literal" namespace="http://service.hott.com"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="findByPriceRange"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="findByPriceRangeRequest"> <wsdlsoap:body use="literal" namespace="http://service.hott.com"/> </wsdl:input> <wsdl:output name="findByPriceRangeResponse"> <wsdlsoap:body use="literal" namespace="http://service.hott.com"/> </wsdl:output> </wsdl:operation> <wsdl:operation name="findByTitle"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="findByTitleRequest"> <wsdlsoap:body use="literal" namespace="http://service.hott.com"/> </wsdl:input> <wsdl:output name="findByTitleResponse"> <wsdlsoap:body use="literal" namespace="http://service.hott.com"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="BookSessionService"> <wsdl:port name="BookSessionEndpoint" binding="impl:BookSessionEndpointSoapBinding"> <wsdlsoap:address location="http://localhost:8080/mod07sol/BookSessionService"/> </wsdl:port> </wsdl:service> </wsdl:definitions>
Thanks in advance.
Jerry