It's working as expected. Thank you so much.

On Mon, Feb 9, 2015 at 1:51 PM, Senduran Balasubramaniyam <sendu...@wso2.com
> wrote:

> To get the description text value
>
> var xmlResponse = result.responseXML;
> var description = xmlResponse..*::['description'].text();
>
> ​
>
> On Mon, Feb 9, 2015 at 12:28 PM, Sabra Ossen <sa...@wso2.com> wrote:
>
>> Hi,
>>
>> I tried according to your suggestion, but I am not sure how to use XPath
>> evaluation using jaggery. Could you may be show me an example of how this
>> can be done.
>>
>> Thanks.
>>
>> On Mon, Feb 9, 2015 at 9:54 AM, Senduran Balasubramaniyam <
>> sendu...@wso2.com> wrote:
>>
>>>
>>>
>>> On Sun, Feb 8, 2015 at 11:34 PM, Sabra Ossen <sa...@wso2.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I have an admin service with the method getAllDomainConfigInfoDTO()
>>>> which returns an object array.
>>>>
>>>> Currently I am accessing the admin service using jaggery by following
>>>> the steps mentioned in [1].
>>>> The code works fine as well as the admin service.
>>>> I get a response as follows.
>>>>
>>>> <ns:getAllDomainConfigInfoDTOResponse xmlns:ns="
>>>> http://executiongenerator.eventprocessing.carbon.wso2.org";
>>>> xmlns:ax2126="
>>>> http://executiongenerator.eventprocessing.carbon.wso2.org/xsd";>
>>>>   <ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>> xsi:type="ax2126:DomainConfigInfoDTO">
>>>>     <ax2126:description>details of speed analysis</ax2126:description>
>>>>     <ax2126:name>SpeedConfiguration</ax2126:name>
>>>>     <ax2126:type>SpeedAnalysis</ax2126:type>
>>>>   </ns:return>
>>>>   <ns:return xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>> xsi:type="ax2126:DomainConfigInfoDTO">
>>>>     <ax2126:description>details of temperature
>>>> analysis</ax2126:description>
>>>>     <ax2126:name>TemperatureConfiguration</ax2126:name>
>>>>     <ax2126:type>TemperatureAnalysis</ax2126:type>
>>>>   </ns:return>
>>>> </ns:getAllDomainConfigInfoDTOResponse>
>>>>
>>>> Is there a way to access the data(description, name and type) using
>>>> jaggery.?
>>>>
>>> You can get the response as 'responseXML' and then use XPath evaluation
>>> to get the description, name etc.
>>> [http://wso2.com/project/mashup/0.2/docs/e4xquickstart.html] the table
>>> (XPath |  Meaning | E4XEquivalent) has some useful xpath syntax
>>>
>>>>
>>>> I am not sure if I am accessing DTO objects correctly. Would the
>>>> correct way be to create a stub using the wsdl of the admin service and
>>>> then write a client to invoke the service.
>>>>
>>>> Any help or clarification is appreciated very much. Thank you in
>>>> advance.
>>>>
>>>> [1]
>>>> http://blog.lasindu.com/2014/08/how-to-call-wso2-products-admin.html
>>>>
>>>> --
>>>> Sabra Ossen
>>>> *Software Engineering Intern*
>>>> Mobile : +94 (0) 785 227 769
>>>> sa...@wso2.com
>>>>
>>>> _______________________________________________
>>>> Dev mailing list
>>>> Dev@wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>>
>>>>
>>>
>>>
>>> --
>>> *Senduran *
>>> Software Engineer,
>>> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
>>> Mobile: +94 77 952 6548
>>>
>>
>>
>>
>> --
>> Sabra Ossen
>> *Software Engineering Intern*
>> Mobile : +94 (0) 785 227 769
>> sa...@wso2.com
>>
>
>
>
> --
> *Senduran *
> Software Engineer,
> WSO2, Inc.;  http://wso2.com/ <http://wso2.com/>
> Mobile: +94 77 952 6548
>



-- 
Sabra Ossen
*Software Engineering Intern*
Mobile : +94 (0) 785 227 769
sa...@wso2.com
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to