|
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 |
- RE: 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
