|
| Iniciado por djsummers, 08,ene. 2016 11:53 - 1 respuesta |
| |
| | | |
|
| |
| Publicado el 08,enero 2016 - 11:53 |
Hi
I am trying to make a REST webservice call passing an XML within the message.
In WD19 i get a correct XML response as expected first time BUT in WM19 i get 'error has occurred' in the XML response
Both calls are using the same code :-
sSendMessage is string bufResult is Buffer
sSendMessage = "<r id=""HH1"" t="""" ts=""1974-07-15 18:35:59.000000+00:00"">"+CR sSendMessage += "<d>"+CR sSendMessage += "<c n=""UserName"">DbisAdmin</c>"+CR sSendMessage += "<c n=""Password"">Test</c>"+CR sSendMessage += "</d>"+CR sSendMessage += "</r>"+CR
IF HTTPRequest("https://<url>/","","",sSendMessage,"text/xml","","") bufResult = UTF8ToString(HTTPGetResult(httpResult)) Info(bufResult) ELSE Error(ErrorInfo()) END
Any help would be greatly appreciated
Many thanks Dave |
| |
| |
| | | |
|
| | |
| |
| Publicado el 08,enero 2016 - 15:43 |
For anyone's reference;
problem solved (on WM forum) by Fabrice - the XML string variable type needed to be ANSI as it was UNICODE by default
Dave |
| |
| |
| | | |
|
| | | | |
| | |
|