Q

Do I have to run the WSDL2Java utility from AXIS?

I am still pretty new to the world of Web services but I am totally intrigued by it and its future potential. I currently have a Web service developed and running in Weblogic 7.0. I have written two clients to access it; the first is using the sample client code from Weblogic 7.0 (the dynamic client that uses WSDL ) and the second client I got from IBM's WSTK3.1, using the AXIS framework. The first client works fine but when I run the second client, I get the following error.
javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Error processing WSDL document:
javax.xml.rpc.ServiceException: Cannot find service:
http://HelloWorld:HelloWorld 
        at org.apache.axis.client.Service.initService(Unknown Source)
        at org.apache.axis.client.Service.
 
  (Unknown Source)
        at HelloClient.callHelloTo(HelloClient.java:35)
        at HelloClient.main(HelloClient.java:26)
 
I did some reading and research and now I am a bit confused. Do I have to run the WSDL2Java utility from AXIS and use all the resulting JAVA files generated? I would really appreciate it if you could shed some light on this and maybe give some proper steps to follow.
Yes. You have to run the Axis wsdl2java utility to create an Axis client proxy for your second client. There's a decent set of examples in the Axis documentation to help you get started. If you have trouble, I suggest you send your questions to the axis-user discussion list (see http://xml.apache.org/axis/mail.html to subscribe, or go to http://marc.theaimsgroup.com/?l=axis-user&r=1&w=2 to search the archives. Good luck!
This was first published in August 2002

Dig deeper on Simple Object Access Protocol (SOAP)

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchSoftwareQuality

SearchCloudApplications

SearchAWS

TheServerSide

SearchWinDevelopment

Close