Hi guys
Need a bit of help with this one, it's not realy a lingo question
although it will become at some point.
I've done a bit of research and testing and it's driving me potty, I
know I will suss it eventualy but I thought why not asking for
directions for once (who says man never ask for directions:)
What I need is to send a XML formated data via a HTTP Post (it's for
some bloody SMS integration) and then the other server will post back to
my ASP page the user sms reply again as an XML formated post.
Now, this is pure ASP/VB Script stuff...I've learned so far to:
1. instantiate the "MSXML2.ServerXMLHTTP" object and direct where the
post should go
2. intantiate the "MSXML2.DOMDocument" and then populate it with data
3. post the bloody stuff
4. when receiving grab the post as:
set docReceived = Server.CreateObject("MSXML2.DOMDocument")
docReceived.async = False
docReceived.load Request
And after that my brain simply refuses to go forward...don't ask
why...maybe it's the rainy morning!
What I'm struggling with is the XML syntax in VB script to parse the
received data, the data will have only a couple of nodes but I AM CRAP
WITH THE SYNTAX, I get stuck on the first node and simply can't get
further down in child nodes (I'm simply short with time to get the
grips...the bloody thing is so straight forward with lingo:) ...here is
what my ASP page will receive:
----------------------------------------------
<?xml version="1.0"?>
<deliveries>
<delivery uuid="FF36A020-E73F-11D6-B3D7-C520D0C030D1">
<from>+4479662223456</from>
<to>+447781234567</to>
<message><![CDATA[Message sent to GSN here]]></message>
</delivery>
</deliveries>
-----------------------------------------------------
I'm also getting worried about that CDATA stuff as I have no clue what
it will consist of but if I can get it as a string I'll deal with it
later...although as this is a questionaire it should only be "A","B" or
"C"
So...does anyone have an example of VB script code that would simply
loop through this "deliveries" node and collect the data from the
"from","to" and "message" tags so I can store it in a database.
Any help mucho appreciated...
Cheerio
Pedja
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL
PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping
with programming Lingo. Thanks!]