Google apps
Main menu

Post a Comment On: WizTools.org Blog

"RESTClient 2.3.3 Released"

8 Comments -

1 – 8 of 8
Blogger 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

February 1, 2011 at 12:58 AM

Blogger Unknown said...

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

February 1, 2011 at 2:37 AM

Blogger Prem Rawal said...

Hi,

Is the restclient library available through Maven?

April 11, 2011 at 4:13 AM

Blogger Prem Rawal said...

Hi,

Is the restclient library available as a Maven dependency?

April 11, 2011 at 4:13 AM

Blogger Unknown said...

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

April 11, 2011 at 4:21 AM

Anonymous 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.

June 13, 2011 at 8:29 AM

Blogger 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

October 28, 2011 at 6:41 AM

Blogger 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.

October 28, 2011 at 7:12 AM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot