[Progress Communities] [Progress OpenEdge ABL] Forum Post: Call to webservice with soap

  • Thread starter Thread starter untipet
  • Start date Start date
Status
Not open for further replies.
U

untipet

Guest
Hi, 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) :ContentType("text/xml") :AddHeader('Connection', 'Keep-Alive') :AcceptXml() :Request. oResponse = ClientBuilder:Build():Client:Execute(oRequest). IF TYPE-OF(oResponse:Entity, WidgetHandle) then do: hXmlDoc = CAST(oResponse:Entity, WidgetHandle):Value. hXmlDoc:save('file', 'Logs/test.xml'). end. else do: message 'not xml'. end. I'm doing it right? Thanks in advance. Joan

Continue reading...
 
Status
Not open for further replies.
Back
Top