Problem solve Get help with specific problems with your technologies, process and projects.

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

Dig Deeper on Topics Archive

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.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.