Hi,
I've generated a client proxy and web service stub using WSDL.exe.
All appears ok. The client proxy .cs is in the client app running in VS2005
and the web service stub is running in another instance of VS2005. Both
projects build and when debugging, brealpoints are hit.
When the client app is using instantiated client proxy objects, the response
object sent to web service 'arrives' empty. When the request object is sent
back from web service, it is empty back in the client application.
I can run exactly the same code but now add a 'web reference' to the web
service on localhost and re-type the web service, request and response
objects accordingly and this sees the request and response objects correctly
marshalled/serialized between the client and server apps.
I am new to web services but my understadning was that the proxy allowed for
ease of development and deployment without having to add a 'web reference'
in my client project and simply setting the URL between environments is all
that is required.
1) How do I get the proxy objects to marshall correctly?
2) If I must have a 'Web Reference', how is this dynamic in code/config for
easy switch between dev/test/prod environments?
thanks,
Simon