jQuery in Action, 2nd edition*
The moose likes BEA/Weblogic and the fly likes What am I supposed to do with ClientGen? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "What am I supposed to do with ClientGen?" Watch "What am I supposed to do with ClientGen?" New topic
Author

What am I supposed to do with ClientGen?

Erin Smith
Greenhorn

Joined: Jul 08, 2009
Posts: 1
I created a test web service, which I can access from my local server, and I wanted to create a client for it. I followed the wizard for ClientGen, pointed to the WSDL, and got 2 files, MyProject.jar and clientgen_build.xml. Now what do I do with them? I am totally lost.

I have a book that has this sample, but it looks like my version of Workshop (10.3) is not compatible for it. Here is the sample I cannot use:

My generated jar does not have the "Soap" class. I also don't see the weblogic.jws.proxies package, because this sample is looking for webservicesclient.jar, and that is not generated in my version of Workshop anymore.
So, what do I do with the jar? How can I create the Java client I can use in Workshop?
ranjeet amancha
Greenhorn

Joined: Dec 17, 2008
Posts: 5
hi erin,
I think the following code helps you out. For time being assume that your web service name is "MyWebservice". As you have used clientGen wizard you may get the following classes in your jar file.

MyWebservice.java
MyWebserviceService.java
MyWebserviceService_Impl.java
MyWebservice_Stub.java




-Ranjeet
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: What am I supposed to do with ClientGen?
 
Similar Threads
Errors when using clientgen
NoClassDefFoundError - XmlException + weblogic 10
Use a class customization to resolve this conflict Error and JAXWS
Please help...I can't solve this web services error (ConfigException)
Clientgen ant task throwing errors in Weblogic 8.1 SP4