문제

I have an ASMX web service which has a method -

void DoSomething(List<string> list);

I have implemented this service, compiled and hosted in IIS. I used wsewsdl3.exe to generate the proxy. In the generated proxy the method definition is changed to -

DoSomething(string[] list) { ..

Is it not possible to have List as a parameter to an ASMX web service? What should I do to fix the proxy?

도움이 되었습니까?

해결책

That's normal. Generics are a .NET specific artifact. There's no such notion in the generated WSDL. Imagine a client which doesn't support generics like PHP for example. That's the reason why your generic collection is exposed as an array. So there's nothing wrong with your client proxy that requires fixing.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top