Wednesday, March 21, 2012

URL parameters within Atlas enabled Web Service

I was able to test my Web Service by passing in the parameters via an URL string. (i.e. localhost/service.asmx/GetNames?id=1) But since I "Atlas enabled" my Web Service, this functionality no longer works. I receive the error,Request format is unrecognized for URL unexpectedly ending in...

I would like to have the flexibility of passing in URL parameters to some of the methods. Is this just not possible?

Thanks in advance.

Juan

Juan,

You could try a different approach. Check out a tool called Web Service Studio. You give it the url to your service, http://localhost/service.asmx, and it will discover all of the methods available at that service and what their parameters are. Then, type your test parameters into the text boxes and click the Invoke button. That will call the web service and display the results.

One advantage of using this tool is that you can test a web service even if its web.config is set up to disallow GETs and POSTs.

Here is a link to the tool:

http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=65a1d4ea-0f7a-41bd-8494-e916ebc4159c

Mindreef SOAPscope is another, more sophisticated tool, but it is not free:

http://www.mindreef.com/

- Brandon


Thanks! This will do just fine.

Juan

No comments:

Post a Comment