How to connect with web service

Hi all,

I want to connect doors with a web service. for example: i want to connect with a web service temperature conversion (http://www.w3schools.com/webservices/tempconvert.asmx) and I want to introduce one value in doors(dxl) and give me back the correct value.

 

Anyone could help me with some idea or similar script?

 

Thanks


A1BM_Alberto_Gandara - Mon May 13 08:34:56 EDT 2013

Re: How to connect with web service
Richard_Good - Mon May 13 13:25:30 EDT 2013

 Try using a  win32SystemWait_ call, best to keep it simple if possible, example below: -

 //function to check if we are running windows 7
bool isItWindows7() {
 string tmpfile = getenv("TEMP")
 tmpfile = tmpfile "\\thisVer.txt"
 string res
 win32SystemWait_("cmd /C ver > \"" tmpfile "\"", res, syswaitINFINITE_)
 //read piped file into variable
 string thisVer = readFile(tmpfile)
 if( matches("Version 6", thisVer)) {
  return true
 }
 else {
  return false
 }
}