Hi Sudheera,

To call REST service you can try "Http Client" define in jaggery, You can
fine sample codes in jaggery documentation as well.

   - get()[1]
   - post() [2]
   - put() [3]
   - del() [4]

Thanks

[1] http://jaggeryjs.org/apidocs/get.jag
[2] http://jaggeryjs.org/apidocs/post.jag
[3] http://jaggeryjs.org/apidocs/put.jag
[4] http://jaggeryjs.org/apidocs/del.jag


On Tue, Jan 21, 2014 at 9:47 AM, Sudheera Palihakkara <sudhe...@wso2.com>wrote:

> Hi,
> Thank you for the reply. Can we use the WSRequest object to invoke a REST
> resource defined in DSS? I have followed this blog post so far[1], and
> using http GET, POST, DELETE etc methods to invoke the REST resources.
>
> [1]
> http://blog.samisa.org/2014/01/rest-in-json-with-wso2-data-services.html
>
> thanks.
>
>
> On Mon, Jan 20, 2014 at 6:33 PM, Ruchira Wageesha <ruch...@wso2.com>wrote:
>
>> You can invoke the secured service using WSRequest object of Jaggery.
>> Please refer the doc at [1]. Several sections of the article [2](written
>> for mashup server), would also be helpful.
>>
>> /Ruchira
>>
>> [1] http://jaggeryjs.org/apidocs/ws.jag
>> [2] http://ruchirawageesha.blogspot.com/2011/12/blog-post.html
>>
>>
>> On Mon, Jan 20, 2014 at 4:06 PM, Sudheera Palihakkara 
>> <sudhe...@wso2.com>wrote:
>>
>>> Hi,
>>>
>>> I have exposed a data service as a *REST* resource and coded a 
>>> *Jaggery*client for the service. Now I want to secure this service, using 
>>> DSS I have
>>> already secured the service with *Username Token* implementation, but I
>>> have no idea how to write a *Jaggery* client to go along with it. Is
>>> there are any documentation or blog posts written on this?
>>>
>>> Thank you.
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>>
>> *Ruchira Wageesha**Associate Technical Lead*
>> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com <http://wso2.com>*
>>
>> *email: ruch...@wso2.com <ruch...@wso2.com>,   blog:
>> ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>,
>> mobile: +94 77 5493444 <%2B94%2077%205493444>*
>>
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Madhuka* Udantha
Senior Software Engineer
Development Technologies
WSO2 Inc. : http://wso2.com

*Mobile*: +94774066336
*Blog*: http://madhukaudantha.blogspot.com/
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to