Do we have a sample around this? We need one!

Thanks,
Samisa...


Samisa Abeysinghe

Vice President Developer Evangelism

WSO2 Inc.
http://wso2.com



On Tue, Jan 21, 2014 at 10:43 AM, Madhuka Udantha <[email protected]> wrote:

> Hi Sudheera.
>
> you can pass token as header or data[1] depending on your BE service is
> expect.
>
> get(url[, data][, headers][, type][, success(data, xhr)])
>
> [1] http://jaggeryjs.org/apidocs/get.jag
>
>
> On Tue, Jan 21, 2014 at 10:22 AM, Sudheera Palihakkara 
> <[email protected]>wrote:
>
>> Hi madhuka,
>>
>> Yeah I'm referring to those, But I couldn't find any documentation about
>> how to send the security parameters with the request. For example I have
>> secured my data service with UsernameToken method[1], so in oder to invoke
>> the service I have to send the username and the password with the request.
>> How to send those parameters with jaggery GET or POST methods?
>>
>> [1]
>> http://docs.wso2.org/display/DSS311/Security+Implementation#SecurityImplementation-1UsernameToken
>>
>> thank you all. :)
>>
>>
>> On Tue, Jan 21, 2014 at 10:13 AM, Madhuka Udantha <[email protected]>wrote:
>>
>>> 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 <[email protected]
>>> > 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 <[email protected]>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 <
>>>>> [email protected]> 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
>>>>>> [email protected]
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> *Ruchira Wageesha**Associate Technical Lead*
>>>>> *WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>>> <http://wso2.com>*
>>>>>
>>>>> *email: [email protected] <[email protected]>,   blog:
>>>>> ruchirawageesha.blogspot.com <http://ruchirawageesha.blogspot.com>,
>>>>> mobile: +94 77 5493444 <%2B94%2077%205493444>*
>>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> [email protected]
>>>> 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/
>>>
>>
>>
>
>
> --
> *Madhuka* Udantha
> Senior Software Engineer
> Development Technologies
> WSO2 Inc. : http://wso2.com
>
> *Mobile*: +94774066336
> *Blog*: http://madhukaudantha.blogspot.com/
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to