Click to See Complete Forum and Search --> : Replacement for WebServices


kantesh13
05-20-2004, 06:46 AM
Hi
I have created a WebService in the server machine specifying the ip address in the URL field. I am calling this WebService in the winform client application, which is smart client. Now I have configured server with a different IP address. The webService is not working now. Now I have some questions

1. In order to make the WebService work what changes I have to make and in how many places?
2. By changing ip address only in one place can it be possible to make the WebService work without building it again.
3. If this is not possible then, is there any replacement for the WebServices.

(I want the business logic to reside in the server side when smart client .exe gets downloaded in the client machine.)

Thank you
Kantesh Vernekar

PeOfEo
05-20-2004, 05:56 PM
If the ip is static you can specify that Ip and I guess just change the url. But, you should probably use a dns if you can so that in the event that the ip changes, the dns will update and you will be calling that dns which will then have a current ip, no problems. I do not know enough about web services to go any further, I have never had the need to use one so do not know how... yet. Well try what I said about dns, and good luck.

john_h
05-21-2004, 03:41 AM
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/webservice/overview.asp

unless you have a bridgehead type of arrangement for some security arrangement, I would guess you can just point to 'all available ips'. if, on the other hand you have a bridgehead arrangement and your actual server is behind the firewall, you will need to specify the actual LAN address.

your question is pretty technical in nature, but isnt rocket science... yet.. I cant give you a good answer boyond the above... sorry

kantesh13
05-25-2004, 04:23 AM
Hi
The problem is that if I change the IP address in all the places and in all the related files, I can access that application through the internet. But If the application gets larger and the number of file, changing the IP address in all files becomes difficult. Also if a small changes have to be made the we need to change the IP address to local machine address in order to test the application.

Is there a simple way such that by changing the IP address in one place its gets changed everywhere. (Some config file setting or such sort of arrangement if possible)

Thanks
Kantesh

PeOfEo
05-25-2004, 11:54 AM
Use a dns and you never have to change it...

kantesh13
05-28-2004, 02:41 AM
Hi

The WebService is created in the LAN network and I don't have the dns for this machine. When I give the command ipconfig in the command prompt the dns suffix field will show nothing.

What I need to do?
Thanks for giving this idea. It does works.

Thanks
Kantesh Vernekar

PeOfEo
05-31-2004, 03:05 PM
You can setup a static ip on a computer on the lan from windows or from the router too I believe. As long as it is in the same port on the pub/switch/router then it should keep the same ip.