WD24 Webservice generation and deployment September 06, 2019 08:33PM |
Registered: 5 years ago Posts: 150 |
Address from Import (http ://localhost/MYWEBSER_WEB/awws/CT_WS.awws)
//To Change it use ..Address
CT_WS..Address = "http ://xxx.xx.xxx.xxx/MYWEBSER_WEB/awws/CT_WS.awws"
Using a Webservice Principle To use a Webservice, you must: Declare 2 variables: a variable used to specify the call parameters and a variable used to retrieve the response. Initialize each variable of the call structure. Call the Webservice function by passing the call variable in parameter and retrieve the response variable in return. I tried this but the declaring of the first 2 variables cause error. What is "trackSearch" is this a procedure of the Web service? Example: trackingSearch is trackSearch <---- Still do not understand what is going on here trackingSearchRes is resultTrackSearch trackingSearch.accountNumber = 99999999 trackingSearch.consigneesCountry = "FR" trackingSearch.consigneesZipCode = "37100" trackingSearch.sendersRef = "111111" trackingSearchRes = TrackingServiceWSService.trackSearch(trackingSearch) IF ErrorOccurred() THEN Trace("Failed to call the Webservice: " + ErrorInfo(errFullDetails)) ELSE Trace("Webservice successfully run") END In most cases, the result returned by the Webservice is in XML format. Therefore, the XML functions must be used to decode the response. Edited 1 time(s). Last edit at 09/06/2019 10:28PM by cabinetman.