This is my first post here so I apologize if I'm doing something wrong.
I want to call a webservice, but I'm new in progress so don't know if I'm doing the correct way. I just want to send in the call header an xml with the data that the provider is asking for, and get the xml in the answer to read the data received. Very simple thing. This is my code:
httpUrl = 'http://thewebserviceurl'.
xmlString = new String('myXml').
oRequest = RequestBuilder:Post(httpUrl, xmlString)
oResponse = ClientBuilder:Build():Client:Execute(oRequest).
IF TYPE-OF(oResponse:Entity, WidgetHandle) then do:
hXmlDoc = CAST(oResponse:Entity, WidgetHandle):Value.
message 'not xml'.
I'm doing it right? Thanks in advance.