I have a web method with this signature:
public string[] ToUpper(string[] values)
I use the Add Service link in Visual Studio 2010 to create a link to my service. Unfortunately, this process creates a proxy class called "ArrayOfString" and uses this type instead of the expected type "string []". The generated async service call signature ends as follows:
public void ToUpperAsync(Demo.ServiceReference.ArrayOfString values) { } public void ToUpperAsync(Demo.ServiceReference.ArrayOfString values, object userState) { }
I tried all the “Collection” expansion options in the configuration service help form, and it doesn't seem to make a difference.
This worked previously, but for some reason it suddenly stopped working, possibly after removing another web method from the service.
How to get the created service reference class to use the string [] type instead of the generated ArrayOfString type? Any help on this would be greatly appreciated.
EDIT: As @Oleg suggests, I use ASMX web services.
Luke baulch
source share