Question

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) ?

Was it helpful?

Solution

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.

OTHER TIPS

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?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top