wood burning stoves 2.0*
The moose likes Web Services and the fly likes Programatically bind and invoke methods from a Web Server 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 » Java » Web Services
Bookmark "Programatically bind and invoke methods from a Web Server" Watch "Programatically bind and invoke methods from a Web Server" New topic
Author

Programatically bind and invoke methods from a Web Server

Valmir Cinquini
Greenhorn

Joined: Nov 11, 2009
Posts: 26
Anyone could give me some direction? I have to bind and invoke
methods from a web service. The application doesn't know the web server
ip address (it can be different on each deploy)

So I can't make a reference to the web service host during the
development. I have to read the ip address from a kind of config file
and make the connection in run time.

For example imagine a bank which its branches. It branch has an web server hosting the web service. The employees of each branch consume the web service from its respective branch. But the IP address of the server is different on each branch. I like to set the IP address on the app's config file and the app would read it and bind to the server.

Anyone could help me? Excuse me my poor English. If something isnt clear, please let me know, I'll try to explain better

Thanks in advance
Leandro Coutinho
Ranch Hand

Joined: Mar 04, 2009
Posts: 417
can't you use the name of the computer, instead of using the IP address?
Valmir Cinquini
Greenhorn

Joined: Nov 11, 2009
Posts: 26
Leandro Coutinho wrote:can't you use the name of the computer, instead of using the IP address?


Haven't tryied yet. I don't know if there's a DNS server resolving names in the bank network.

But anyway, what's the difference between using ip address ou name? It's all tcp/ip

Or do you have a different aproach?
Leandro Coutinho
Ranch Hand

Joined: Mar 04, 2009
Posts: 417
Valmir Cinquini wrote:
Leandro Coutinho wrote:can't you use the name of the computer, instead of using the IP address?


Haven't tryied yet. I don't know if there's a DNS server resolving names in the bank network.

But anyway, what's the difference between using ip address ou name? It's all tcp/ip

Or do you have a different aproach?

Name doesn't change, right?
Valmir Cinquini
Greenhorn

Joined: Nov 11, 2009
Posts: 26
Leandro Coutinho wrote:
Valmir Cinquini wrote:
Leandro Coutinho wrote:can't you use the name of the computer, instead of using the IP address?


Haven't tryied yet. I don't know if there's a DNS server resolving names in the bank network.

But anyway, what's the difference between using ip address ou name? It's all tcp/ip

Or do you have a different aproach?

Name doesn't change, right?


Ok... But let me explain better

Imagine that I'll install the application in a branch called 'Paris - Eifell' which code number is SIB0234. The web server running at this branch is something like http://SIB0234/my_webservice?wsdl

Imagine I'll intall the aplication in another branch, called 'Paris - Gare Nord' which code number is SIB4581. The web server running at this branch is something like http://SIB4581/my_webservice?wsdl

I dont want change anything im my application, I just want edit an xml config file, type the web server address and the application would be able to bind the server and invoke the web methods.

 
jQuery in Action, 2nd edition
 
subject: Programatically bind and invoke methods from a Web Server
 
Similar Threads
Sample Questions for 288 - Need answers
Problem connecting to Remote Server
RMI Server Configuration
Client cannot connect to JBoss application server over internet
Does jboss bind to 0.0.0.0 on a non-clustered server ?