aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes How to call webservice in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to call webservice in javascript" Watch "How to call webservice in javascript" New topic
Author

How to call webservice in javascript

Sridhar Ranganthan
Ranch Hand

Joined: Mar 12, 2009
Posts: 35
Hi,

Iam using Kony5.0 for developing mobile app.so we are using javascript and webservice.

requirement is iterate the xml structure from webservice call using javascript.

I need to iterate the value from the for loop and putting in to array.


inside the header element , data1,data2,data3 sub element will come dynamically..means some time will come data5,some time 20 also.


I want header1 and data1,data2,data3....datan value putting into ar[0]....and similarly headern and data1,,datan

how to achive this/how the fetch the webservice data in javascript. please help me.





pleasae refer the below xml file structure.

ex

for(var hcnt=0;hcnt<xmlhcnt;hcnt++)
{

}



xml structure



Thanks,



Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61652
    
  67

I hate dealing with XML.

But one way that seems to be fairly easy is to use jQuery. You can specify the XML documents as the context and use CSS selectors to select elements in the XML DOM just like you would an HTML DOM.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to call webservice in javascript