c# - Can I stop service reference generating ArrayOfString instead of string[]? -


i have web method signature this:

public string[] toupper(string[] values) 

i using 'add service reference' in visual studio 2010 generate reference service. unfortunately, process creates proxy class called 'arrayofstring' , uses type instead of expected 'string[]' type. generated async service call signature ends looking this:

public void toupperasync(demo.servicereference.arrayofstring values) { } public void toupperasync(demo.servicereference.arrayofstring values, object userstate) { } 

i have tried options of 'collection' drop down on config service reference form , doesn't seem make difference.

this working previously, reason stopped working, perhaps after removing web method service.

how generated service reference class use string[] type instead of generated arrayofstring type? on appreciated.

edit: @oleg suggests, using asmx web services.

i reproduce problem when adding "service reference" asmx style web service. when adding "service refernce" wcf service or "web reference" asmx service argument of type string[].

according think can fix problem replacing "service reference" "web reference".

press "advanced..." button on "add service reference dialog". add service reference

press "add web reference..." advanced

insert service url , add web reference add web reference


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -