Monday, December 27, 2010

RESTClient 2.3.3 Released

WizTools.org RESTClient version 2.3.3 is a bug-fix release from the 2.3 branch. This release fixes few encoding issues reported by users, Hostname verifier being ignored in few cases and made the build compatible with Maven 3. Download from: http://code.google.com/p/rest-client/downloads/list.

8 comments:

Unknown said...

Hi

I have query related to this tool. As i am trying to hit the following REST Webservice url

http://search.yahooapis.com/ImageSearchService/V1/imageSearch?query=madonna&appid=YahooDemo&output=xml

I am getting exception like unknown Host exception: search.yahooapis.com

As while i type this url in browser it is returning xml.Please let me know that where am i going wrong.I have also some other required urls which i need to test.Reply expected ASAP.

Thanks
Anup

Unknown said...

I tried it, and it works. Probably u have configured Proxy setting accidentally. Disable proxy by reaching Tools>Options>Proxy.

Prem Rawal said...

Hi,

Is the restclient library available through Maven?

Prem Rawal said...

Hi,

Is the restclient library available as a Maven dependency?

Unknown said...

No, the library is not available in the public Maven repository.

Anonymous said...

We're trying to use RESTClient to retrieve a JSON response. This requires basic authentication. I've set the authentication on the Auth tab but am always receiving a "401 Unauthorized" response. It looks like the Auth is not being set/sent (or we are not interpreting it).
New to REST but need to setup testing for many endpoints and REST Client looks like it might be a viable option if we can get past the initial auth issues.

Vetal said...

Hello!
How to PUT xml and GET with restclient-cli-2.3.3-jar-with-dependencies.jar in command-line!!!
Only command-line.
I tested UI version –it is OK, but I need to run in command-line


Example:

java -jar PUT http://bsmgw.bms.consulting.com/opr-console/rest/9.10/event_list/6eea76ae-ff22-71e0-0431-ac10016b0000 update2.xml

I try:

C:\test\REST>java -jar restclient-cli-2.3.3-jar-with-dependencies.jar org.wiztools.restclient.CliMain -o C:\test\REST\ output.rcq

No read access: C:\test\REST\org.wiztools.restclient.CliMain
[Fatal Error] output.rcq:1:1: Premature end of file.
org.wiztools.restclient.XMLException: Premature end of file.
at org.wiztools.restclient.XMLUtil.getDocumentFromFile(XMLUtil.java:528)
at org.wiztools.restclient.XMLUtil.getRequestFromXMLFile(XMLUtil.java:577)
at org.wiztools.restclient.cli.CliMain.main(CliMain.java:128)
Caused by: nu.xom.ParsingException: Premature end of file. at line 1, column 1 in file:///C:/test/REST/output.rcq
at nu.xom.Builder.build(Unknown Source)
at nu.xom.Builder.build(Unknown Source)
at nu.xom.Builder.build(Unknown Source)
at org.wiztools.restclient.XMLUtil.getDocumentFromFile(XMLUtil.java:525)
... 2 more
Caused by: org.xml.sax.SAXParseException: Premature end of file.
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
... 6 more

Unknown said...

You have to first record the request using the REST Client UI and save the request. After saving the request, you will be able to execute the saved request from command-line.