users@glassfish.java.net

RE: initiating a WS from the command line

From: Alex Sherwin <alex.sherwin_at_acadiasoft.com>
Date: Wed, 1 Oct 2008 13:47:03 -0400

I managed to somehow reply to the wrong post.... here it is in the right one


I think the really simplest thing to do is use curl.

curl <options> http://url/to/your/ws

Don't be scared when you look at the curl man page and see that there are 100+ options, just find the ones you need to make it be a POST, GET, PUT or HEAD request etc. For a PUT request example:

curl -T some-file.txt http://url/to/PUT/service

You can make the calls with no args, with args... whatever.. and receive or not receive a response


Alex Sherwin
alex.sherwin_at_acadiasoft.com


-----Original Message-----
From: glassfish_at_javadesktop.org [mailto:glassfish_at_javadesktop.org]
Sent: Wednesday, October 01, 2008 1:13 PM
To: users_at_glassfish.dev.java.net
Subject: Re: initiating a WS from the command line

Simplest thing to do is write a simple java (or whatever, a scripting language perhaps) web service client and then call that.
[Message sent by forum member 'whartung' (whartung)]

http://forums.java.net/jive/thread.jspa?messageID=302777

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
For additional commands, e-mail: users-help_at_glassfish.dev.java.net