DS communicating with a Web Service?

 3 Replies
 0 Subscribed to this topic
 12 Subscribed to this forum
Sort:
Author
Messages
Deborah Creek
Basic Member
Posts: 10
Basic Member

    Is it possible to call a web service from javascript within a Design Studio form?  We would like to add validation to data entry on a Design Studio form by utilizing a web service.

    Gary Davies
    Veteran Member
    Posts: 248
    Veteran Member

      You can call any web server using httpRequest

      Deborah Creek
      Basic Member
      Posts: 10
      Basic Member
        How do you retrieve the xml returned by the web service? The web service is ony useful if we can call the service and parse the return xml in a respectable timeframe to present an error message to the end user if their data entry is invalid.
        Gary Davies
        Veteran Member
        Posts: 248
        Veteran Member

          Same way you parse the return from a DME or AGS call.

           var sInfo = portalWnd.httpRequest(URLStr);
            var vObjDMEXML = new portalWnd.DataStorage(sInfo);
           var vRecords = vObjDMEXML.document.getElementsByTagName("RECORD");