• Post Reply Bookmark Topic Watch Topic
  • New Topic

using a stub --how to make sure the service is form a remote host and not a localhost.

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have the following code:


I have just implemented my first web-service and it works good.

My question is this: Based on this code, how can it tell that the web-service is running on my localhost? Say tomorrow I will deploy the service on a remote site - how can I make sure the service comes from the remote site and not my localhost.

In some cases I saw something like this:


thanks for any pointers!
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Axis2 usually generates these constructors (which can be found by inspecting the generated source code):

So you are looking for:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!