Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

How to call webservice in javascript

Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Iam using Kony5.0 for developing mobile 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.


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


xml structure


Posts: 67619
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic