Ask the Expert

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.

    Requires Free Membership to View

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

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

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: