• 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

how do I set the port when using servicegen to create a wsdl file

 
Ranch Hand
Posts: 681
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using servicegen to create my wdsl file. In the build script I have set the port to the port that weblogic is running on. The problem is that when I run servicegen ant task, it sets the soap address to

<soap:address location="http://localhost:7001/process/myProcess">
</soap:address>

in the build script the servicegen part is

<service targetNamespace="${namespace}"
serviceName="AntiVirusProcess"
serviceURI="/AntiVirusProcess"
generateTypes="True"
expandMethods="True">
</service>
is there a servicePort variable I can add the service API does not seem to show one.

Thanks for any help

Tony
 
Tony Evans
Ranch Hand
Posts: 681
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The awnser is you cant, it has to be set at run time through the calling program.

final String wsdl = "http://localhost:9001/anti_virus/AntiVirusProcess?WSDL";

and then call your stub with the argument parameter

AntiVirusProcess_Impl ws = new AntiVirusProcess_Impl(wsdl);
And it works.

Tony
reply
    Bookmark Topic Watch Topic
  • New Topic