How to pass data in the body of the http request.

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

How to pass data in the body of the http request.

Postby tysonj » Fri Oct 22, 2010 2:33 pm

Hi,
I had imported the sample solution for RESTfull web services(servoy_sample_rest_ws).It's running fine on my servoy developer version 5.2.2.
But couldn't find how to implement the GET, POST, PUT or DELETE on the URL to invoke the four method's(ws_create(emp),ws_read(id)...).
And can some one put some light on how are we going to pass the arguments for the methods through the URL.

Thanks,
Tyson
User avatar
tysonj
 
Posts: 47
Joined: Tue Sep 28, 2010 2:07 pm
Location: Paris, France.

Re: How to pass data in the body of the http request.

Postby tysonj » Mon Oct 25, 2010 7:48 am

Hi

From my serarch I found a test page(http://localhost:8080/examples/restfulws_testpage.html) that would invoke the four method's of the RESTful web services present in the form servoy_sample_rest_ws of the sample solutions.
Can some one help me with some Other way to call those functions or send me a link that would make me understand the test page.

Thanks
Tyson
User avatar
tysonj
 
Posts: 47
Joined: Tue Sep 28, 2010 2:07 pm
Location: Paris, France.

Re: How to pass data in the body of the http request.

Postby pbakker » Mon Oct 25, 2010 9:45 am

From within Servoy there is currently no way to specify the body of a HTTP Request manually, this will be addresses in the next major version of Servoy.

For testing RESTful WebServices that are published using Servoy (using the functionality in the RESTful WebServices plugin), you basically utilize the environment from which you will be calling the webservices, whatever that may be.

Paul
pbakker
 
Posts: 2822
Joined: Wed Oct 01, 2003 8:12 pm
Location: Amsterdam, the Netherlands


Return to How To

Who is online

Users browsing this forum: No registered users and 8 guests