Shoutbox

Web Services? - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Web Services? (/showthread.php?tid=77302)

Web Services? by fmonroy on 09-07-2007 at 01:20 AM

Hello group, is there a way to access XML Web Services within a script?

Tnx in advance.


FM


RE: Web Services? by win_crook on 09-07-2007 at 03:43 PM

If you mean commands like open and send which ajax uses, here is some code I have taken straight from one of my unreleased projects... so it will need to some modifications for your needs.

code:
   
var ajax = new ActiveXObject("Microsoft.XMLHTTP");
ajax.open("POST", "http://127.0.0.1/testing-release/post.php", true);
ajax.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
encodeduser = encodeURIComponent(ReadRegistry("user"));
encodedpassword = encodeURIComponent(ReadRegistry("md5"));
ajax.send("title="+title+"&artist="+artist+"&user="+encodeduser+"&password="+encodedpassword);


Good Luck (y),
David
RE: Web Services? by fmonroy on 09-07-2007 at 04:44 PM

Thanks David, I think this will help me a lot.


RE: Web Services? by fmonroy on 09-08-2007 at 12:44 AM

Great, it's working, do you know a way to parse XML?


RE: Web Services? by fmonroy on 09-08-2007 at 01:05 AM

got it: ajax.responseXML.selectSingleNode("string").text

Tnx