• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using Weblogic's servicegen ant task

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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">
<servicegen
destEar="${build}/${ear_file}"
warName="${war_file}">
<service
javaClassComponents="mypackage.ExistingAppService,mypackage.ExistingAppHelperClass"
targetNamespace="${namespace}"
serviceName="MyWebService"
serviceURI="/MyWebService"
generateTypes="True"
expandMethods="True">
</service>
<classpath>
<pathelement path="${build}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</servicegen>
</target>

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
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,
 
My previous laptop never exploded like that. Read this tiny ad while I sweep up the shards.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic