문제

i am using a webmethod with uses the params keyword. (params int[] par)

can i test this webmethod via a browser ? -> how to write this url to invoke the webmethod (e.g. with 6 arguments) ?

도움이 되었습니까?

해결책

You can't do that via URL, you must Post the values.

You can write small web application just for testing the service, shouldn't take more than 20-30 minutes.

다른 팁

Add a web reference to your project, using the URL of your web service.

This will generate a proxy class that will let you call the web methods from your code.


Invoking a web method will normally involve SOAP, so the query string is not an option. You may be able to do so with AJAX calls, but this is time consuming and error prone.

Is there a reason the WCF Test Client is not good enough?

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