|
Blake, You get the service name from the WSDL: <wsdl:service
name="TesterService"> Use “TesterService” rather than “TesterClient”. Anne From: Blake Dournaee
[mailto:[EMAIL PROTECTED] All, I’ve updated this to include a guess
at the namespace part of the QName. Still the same problem: try { String uri
= new String("http://localhost:8080/axis/Tester.jws"); String
localPart = new String("TesterClient"); QName
serviceName = new QName(uri,localPart); Service
service = new Service(wsdl,serviceName); } catch (Exception xp)
{
System.out.println("Error building Service object"); xp.printStackTrace(); } Error building Service object javax.xml.rpc.ServiceException: Error
processing WSDL document: javax.xml.rpc.ServiceException: Error
processing WSDL document: javax.xml.rpc.ServiceException: Cannot
find service: {http://localhost:8080/axis/Tester.jws}TesterClient
at org.apache.axis.client.Service.initService(Service.java:261)
at org.apache.axis.client.Service.<init>(Service.java:217)
at TesterClient.main(TesterClient.java:44) Does anyone have any ideas? Thanks, Blake From: Blake Dournaee
[mailto:[EMAIL PROTECTED] All, Given a WSDL, how does one properly find the name of the
service? That is, I have a WSDL and am making a call to the Service()
constructor that takes two arguments:
I am stuck on how to properly populate the QName. At this
point I am guessing. In my WSDL, the <service> element has an attribute
called name, e.g: <wsdl:service name="TesterService"> <wsdl:port
binding="impl:TesterSoapBinding" name="Tester"> <wsdlsoap:address
location="http://localhost:8080/axis/Tester.jws"/> </wsdl:port> </wsdl:service> So my call looks like: try { QName serviceName = new
QName("TesterClient"); Service service = new
Service(wsdl,serviceName); } catch (Exception xp) {
System.out.println("Error building Service object"); xp.printStackTrace(); } But this gives me an exception: og4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle). og4j:WARN Please initialize the log4j system properly. rror building Service object avax.xml.rpc.ServiceException: Error processing WSDL
document: avax.xml.rpc.ServiceException: Error processing WSDL
document: avax.xml.rpc.ServiceException: Cannot find service:
TesterClient at
org.apache.axis.client.Service.initService(Service.java:261) at
org.apache.axis.client.Service.<init>(Service.java:217) at
TesterClient.main(TesterClient.java:41) I am not even getting off the ground on this. Can someone
help me figure out how to properly name my Service? Thanks, Blake |
- Question about Service() Constructor Blake Dournaee
- RE: Question about Service() Constructor Blake Dournaee
- Re: Question about Service() Constructor Davanum Srinivas
- RE: Question about Service() Constructor Blake Dournaee
- RE: Question about Service() Constructor Anne Thomas Manes
- RE: Question about Service() Constructor Blake Dournaee
