This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Web Services and the fly likes Using Weblogic's servicegen ant task Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Using Weblogic Watch "Using Weblogic New topic

Using Weblogic's servicegen ant task

Tom George
Ranch Hand

Joined: Jan 28, 2004
Posts: 41
I'm using the servicegen task to generate a web service server side component out of an existing class. Script as below.

<target name="ear">
<pathelement path="${build}"/>
<pathelement path="${java.class.path}"/>

The class "ExistingAppService" has got a number of methods, and I just want to expose one method as a web service. But the servicegen task seems to expose all the methods in the web service. How can I specify the individual methods? Yes I did go through BEA's documentation but it seems a bit vague about this.

Yes the web service works fine with the method in question.
Tom George
Ranch Hand

Joined: Jan 28, 2004
Posts: 41
Well, it seems the Weblogic ant task looks for public methods; any method declared as public is exposed as a web service.

Well folks, no one helped me !

But anyway,
I agree. Here's the link:
subject: Using Weblogic's servicegen ant task
Similar Threads
Packaging the java class components
JAX-WS create server and client jar in one build pass (ant)
Problem in ServiceGen task
problem in web services
Expose EJB as webservice