views:

1514

answers:

6

Hi.

We have developed a RESTful web service which expects an XML string to arrive as "parameter". For QA to test the web service, I am looking for a simple tool (With GUI preferably) which can do a POST to a URL with a XML string and show the resulting XML back.

Is there a popular tool for the same?

Thanks for the help in advance.

Cheers.

+1  A: 

not a gui, but curl is a popular tool.

Pierre
curl [email protected] 'http://url'
Harold L
+2  A: 

I used wget for that, there are Windows and Linux versions. Not GUI either but no need of graphical interface for such simple task.

For example:

wget "http://url_of_my_web_service?param1=123&param2=abc" --post-file="xmlTestFile.xml" --header="Content-Type:text/xml"

Where the xmlTestFile.xml it's an xml file in the same directory you run the wget command.

If you want to send a xml string instead of a xml file, use --post-data="string"

tricat
You probably want Content-Type: application/x-www-form-urlencoded if, per the OP, you're POSTing a parameter.
Harold L
+3  A: 

Get the Firefox Poster add-on.

A developer tool for interacting with web services and other web resources that lets you make HTTP requests, set the entity body, and content type. This allows you to interact with web services and inspect the results.

ohnoes
Excellent. This is exactly what I was looking for.
Priyank
+1  A: 

soapUI has support for RESTful services, as well as for SOAP-based services.

John Saunders
+1  A: 

SOAPUI is very nice tool for testing web services (with gui)

jle
A: 

If you're on OSX, HTTP Client App is incredibly useful for debugging HTTP services..headers, XML, whatever you like.

http://ditchnet.org/httpclient/

alexknowshtml