I have two websites, both using .Net framework 3.5. One website hosts a soap web service, and the other refers to this service. I have some unexpected events with my signatures on the Internet. I have a simple method in my web service with a signature like:
[WebMethod]
public string[] HelloWorld()
{
return new[] { "Hello World" };
}
But when I refer to this web service using the Add Service Link function in VS2008, with the setting "Always create contracts with messages" (although when I check the "reuse types in reference assemblies", it seems to me there is the same problem), the signature, apparently, changes by automatically generated proxy objects to the following:
HelloWorldResponse HelloWorld(HelloWorldRequest request)
I tried to find this on the net, but could not find something that would simply explain to me why this was happening, and could I / try to get around it?
I also have this question: How to determine whether to select a service link configuration parameter for "reuse types in referenced assemblies" and "always generated message contracts"?
source
share