Hello
If someone can help me with this it would be greatly appreciated. I’m no web
service expert but I don't think i'm trying to do anything too special. I
think i must be missing something simple because i have been banging my head
against a wall with this for a while now.
I have created a web service and a client Win forms application to consume
the web service. The problem is i don't know where the web service will be
deployed so i need to be able to configure either programatically or manually
the client application to point to it.
During development i have both client and web service in the same VS 2005
solution. I added a web reference for the web service to the client
application by searching my machine (localhost). I had already set up and
configured the virtual directory for the web service on my machine.
I have carried out all of my development on them and now want to test my
deployment plan. I used the copy web site utility to deploy the web service
to a test server that we have. I set the ULR behaviour of the Web Reference
in the client app to Dynamic and built the client application. I copied the
client application to a test client machine, changed the ULR in the settings
section to point to the web service on the test server and ran the
application. Unfortunately it doesn’t work. I can’t seem to connect to the
web service.
Am I doing something wrong or have missed a step? Do I also need to deploy
the disco and wsdl files with either the client app or web service? Do I need
to make another configuration change elsewhere? Alternatively is there a way
to programmaticall y control the web service that the client connects to?
The only way I have found that I can fix this problem is by adding a web
reference to the web service on the Test server to my client application and
deploying that client application. This isn’t very dynamic though…..
Any help or pointers would be greatly appreciated.
Thank you
G
If someone can help me with this it would be greatly appreciated. I’m no web
service expert but I don't think i'm trying to do anything too special. I
think i must be missing something simple because i have been banging my head
against a wall with this for a while now.
I have created a web service and a client Win forms application to consume
the web service. The problem is i don't know where the web service will be
deployed so i need to be able to configure either programatically or manually
the client application to point to it.
During development i have both client and web service in the same VS 2005
solution. I added a web reference for the web service to the client
application by searching my machine (localhost). I had already set up and
configured the virtual directory for the web service on my machine.
I have carried out all of my development on them and now want to test my
deployment plan. I used the copy web site utility to deploy the web service
to a test server that we have. I set the ULR behaviour of the Web Reference
in the client app to Dynamic and built the client application. I copied the
client application to a test client machine, changed the ULR in the settings
section to point to the web service on the test server and ran the
application. Unfortunately it doesn’t work. I can’t seem to connect to the
web service.
Am I doing something wrong or have missed a step? Do I also need to deploy
the disco and wsdl files with either the client app or web service? Do I need
to make another configuration change elsewhere? Alternatively is there a way
to programmaticall y control the web service that the client connects to?
The only way I have found that I can fix this problem is by adding a web
reference to the web service on the Test server to my client application and
deploying that client application. This isn’t very dynamic though…..
Any help or pointers would be greatly appreciated.
Thank you
G
Comment