HiI=92m ok with parsing a bunch =of XML whereby the XML comes from a POST request on the page itself (ie. =the WebDNA code is generating the request for the XML via a TCP/IP =POST).But what happens when the XML code is =POST=92d at it from somewhere else? How do I grab the XML to put it into =a variable that can then be parsed, nodes =etc??Using WebDNA unix-Linux Intel =Apache Module version 6.2.1Code I would =usually use is (assume all variables have been assigned before =snip)---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list[text]crlf=3D[unurl]%0D%0A[/unurl][/te=xt][text]the_variables=3Dpaystation=3D_empty&pstn_pi=3D[pst=n_pi]&pstn_gi=3D[pstn_gi]&pstn_ms=3D[pstn_ms]&pstn_am=3D[pstn_=am]&website=3D[justdomain][/text][text]Respo=nse=3D[TCPConnect host=3Dwww.paystation.co.nz&port=3D=XXX&ssl=3DT][tcpsend skipheader=3DT][!][/!]POST =/direct/paystation.dll HTTP/1.1[crlf][!][/!]Referer: http://[justdomain][thisURL][=crlf][!][/!]Host: www.paystation.co.nz[crlf][!][/!]Content-Type: =application/x-www-form-urlencoded[crlf][!][/!]Content-length: =[countchars][the_variables][/countchars][crlf][!][/!]Connection=: =close[crlf][!][/!][crlf][!][/!][the_variables][crlf]=[!][/!][/tcpsend][/TCPConnect][/text]=[text show=3Dt]actualresponse=3D[listwords =words=3D[response]&delimiters=3D<][showif =[index]>1][delimiter][word][/showif][/listwords][/text]=[xmlparse =var=3Dxml_var1][actualresponse][/xmlparse][xmlno=des =ref=3Dxml_var1&path=3Dnamed:InitiationRequestResponse][text= =secure=3Df][name]=3D[value][/text][/xmlnodes]<=br>So that=92s all fine, as long as I initiate =from the page - I need to know how to grab the xml contents if its =POST=92d from somewhere else.My thanks in =advance.Cheers,<CohesionSig_Diane12.gif>.To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
|
HiI=92m ok with parsing a bunch =of XML whereby the XML comes from a POST request on the page itself (ie. =the WebDNA code is generating the request for the XML via a TCP/IP =POST).But what happens when the XML code is =POST=92d at it from somewhere else? How do I grab the XML to put it into =a variable that can then be parsed, nodes =etc??Using WebDNA unix-Linux Intel =Apache Module version 6.2.1Code I would =usually use is (assume all variables have been assigned before =snip)---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list[text]the_variables=3Dpaystation=3D_empty&pstn_pi=3D[pst=n_pi]&pstn_gi=3D[pstn_gi]&pstn_ms=3D[pstn_ms]&pstn_am=3D[pstn_=am]&website=3D[justdomain][/text][text]Respo=nse=3D[TCPConnect host=3Dwww.paystation.co.nz&port=3D=XXX&ssl=3DT][tcpsend skipheader=3DT][!][/!]POST =/direct/paystation.dll HTTP/1.1[crlf][!][/!]Host: www.paystation.co.nz[crlf][!][/!]Content-Type: =application/x-www-form-urlencoded[crlf][!][/!]Content-length: =[countchars][the_variables][/countchars][crlf][!][/!]Connection=: =close[crlf][!][/!][crlf][!][/!][the_variables][crlf]=[!][/!][/tcpsend][/TCPConnect][/text]=[text show=3Dt]actualresponse=3D[listwords =words=3D[response]&delimiters=3D<][showif =[index]>1][delimiter][word][/showif][/listwords][/text]=[xmlparse =var=3Dxml_var1][actualresponse][/xmlparse][xmlno=des =ref=3Dxml_var1&path=3Dnamed:InitiationRequestResponse][text= =secure=3Df][name]=3D[value][/text][/xmlnodes]<=br>So that=92s all fine, as long as I initiate =from the page - I need to know how to grab the xml contents if its =POST=92d from somewhere else.My thanks in =advance.Cheers,<CohesionSig_Diane12.gif>.To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...