This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes problem in using WSDL2Java tool in axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "problem in using WSDL2Java tool in axis" Watch "problem in using WSDL2Java tool in axis" New topic
Author

problem in using WSDL2Java tool in axis

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 193
Hi all,
When we make our Webservices in Apache Axis at Server,the first step is to generate the WSDL file by using Java2WSDL tool and passing the interface and ip address of server as argument.For example,

org.apache.axis.wsdl.Java2WSDL -o AddService.wsdl -l"http://127.0.0.1:8080/axis/services/AddService" -n AddService

Then we use WSDL2Java to generate java files and write our code there.

My problem is that I do not know what will be the IP address of the machine where this service will be deployed.So is there any way so that we can make all the java files in our application but provide the ip address during deployment.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
You will want to make the URL configurable anyway, so that you can use different addresses for development, testing and production. I don't know of a way to generate the code for that automatically; I usually add setters methods for the URL after the code has been generated.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in using WSDL2Java tool in axis
 
Similar Threads
WSDL2Java Axis: [axis-wsdl2java] java.net.ConnectException: Connection timed out: con
connecting to webservices using axis
getting error while deployin service on SSL secured Server
WSDL to Java- service Interface
How to write a java webservice client