Hi All, I am trying to create a Service object prefilled with the WSDL information.
My code is: String endPointURL = http://localhost:8080/services/WebServiceBll; Service service = new Service( new URL( endPointURL + "?wsdl" ), new QName( endPointURL, "WebServiceBll" ) ) Call call = ( Call )service.createCall(); But, I get the following exceptions: javax.xml.rpc.ServiceException: Error processing WSDL document: javax.xml.rpc.ServiceException: Cannot find service: {http://localhost:8080/services/WebServiceBll}WebServiceBll at org.apache.axis.client.Service.initService(Service.java:296) at org.apache.axis.client.Service.<init>(Service.java:163) ... Any help would be appreciated. My WSDL at http://localhost:8080/services/WebServiceBll?wsdl looks as follows: <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="http://localhost:8080/services/WebServiceBll" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://localhost:8080/services/WebServiceBll" xmlns:intf="http://localhost:8080/services/WebServiceBll" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://utl.adminserver.com" 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.3 Built on Oct 05, 2005 (05:23:37 EDT)--> <wsdl:types> <schema targetNamespace="http://utl.adminserver.com" xmlns="http://www.w3.org/2001/XMLSchema"> <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <complexType name="ASExceptionUtl"> <sequence> <element name="messages" nillable="true" type="soapenc:string"/> <element name="stackTraces" nillable="true" type="soapenc:string"/> </sequence> </complexType> </schema> </wsdl:types> <wsdl:message name="ASExceptionUtl"> <wsdl:part name="fault" type="tns1:ASExceptionUtl"/> </wsdl:message> <wsdl:message name="searchRequestRequest"> <wsdl:part name="in0" type="soapenc:string"/> </wsdl:message> <wsdl:message name="searchRequestResponse"> <wsdl:part name="searchRequestReturn" type="soapenc:string"/> </wsdl:message> <wsdl:portType name="WebServiceBllRemote"> <wsdl:operation name="searchRequest" parameterOrder="in0"> <wsdl:input message="impl:searchRequestRequest" name="searchRequestRequest"/> <wsdl:output message="impl:searchRequestResponse" name="searchRequestResponse"/> <wsdl:fault message="impl:ASExceptionUtl" name="ASExceptionUtl"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="WebServiceBllSoapBinding" type="impl:WebServiceBllRemote"> <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="searchRequest"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="searchRequestRequest"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://bll.adminserver.com" use="encoded"/> </wsdl:input> <wsdl:output name="searchRequestResponse"> <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://localhost:8080/services/WebServiceBll" use="encoded"/> </wsdl:output> <wsdl:fault name="ASExceptionUtl"> <wsdlsoap:fault encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" name="ASExceptionUtl" namespace="http://localhost:8080/services/WebServiceBll" use="encoded"/> </wsdl:fault> </wsdl:operation> </wsdl:binding> <wsdl:service name="WebServiceBllRemoteService"> <wsdl:port binding="impl:WebServiceBllSoapBinding" name="WebServiceBll"> <wsdlsoap:address location="http://localhost:8080/services/WebServiceBll"/> </wsdl:port> </wsdl:service> </wsdl:definitions> --Sandeep Khanna
