But what happens when the XML =code is POST=92d at it from somewhere =else?
That=92s= where the problem lies=85. It=92s not sent in a variable. It=92s sent =back as XML formatted text, not as a POST =variable.=--Apple-Mail=_50E01844-63FF-4685-8D73-F1DD312F1E4D-- Associated Messages, from the most recent to the oldest:So I=92ve no idea how to grab it=85 Or if =it=92s even =possible.Thanks,<CohesionSig_Diane12.gif>On 1/09/2014, at 11:52 am, Stuart Tremain <webdna@idfk.com.au> =wrote:If the =XML is being posted TO your site then just look for the form variable =that it is being sent in.---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listOn 1 Sep 2014, at 9:47 am, Diane Blackmore <diane@cohesion.co.nz> =wrote:HiMy code isn=92t broken - it =was attached so you could see how the method works when the POST is =initiated from the page. My problem is how to capture it when it =ISN=92T initiated on the page, but rather just sent directly to =it.In other words, how do I grab the XML =itself as a variable to parse?When it=92s =initiated through the code supplied, the variable is set by including =the initiated post within the TEXT, but when this step is required to be =missed because I=92m not initiating it, I=92m confused as to how I=92d =pick it up.Cheers,<CohesionSig_Diane12.gif>---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listOn 29/08/2014, at 5:21 pm, Stuart Tremain <webdna@idfk.com.au> =wrote:That =looks like it should work, I don't know why you are doing the ='actualresponse'.Just do [xmlparse =var=3Dxml_var1][RESPONSE][/xmlparse]---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listJust parse =out the XML, if your response is all on one level, what you have will =work but if it is layered you will have to go =deeper.On 29 Aug 2014, at 2:15 pm, Diane Blackmore <diane@cohesion.co.nz> =wrote: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 .To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us .To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us .To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us .To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
--Apple-Mail=_50E01844-63FF-4685-8D73-F1DD312F1E4DContent-Transfer-Encoding: quoted-printableContent-Type: text/plain;charset=windows-1252>>>>> But what happens when the XML code is POST=92d at it from =somewhere else?So how are you accepting this POST ? You must have a HTML page that is =accepting the post ?RegardsStuart TremainIDFK Web DevelopmentsAUSTRALIAwebdna@idfk.com.auOn 1 Sep 2014, at 2:06 pm, Diane Blackmore
- Re: [WebDNA] xmlparse of POST (Diane Blackmore
2014) - Re: [WebDNA] xmlparse of POST (Tom Duke
2014) - Re: [WebDNA] xmlparse of POST (Stuart Tremain
2014) - Re: [WebDNA] xmlparse of POST (Diane Blackmore
2014) - Re: [WebDNA] xmlparse of POST (Stuart Tremain
2014) - Re: [WebDNA] xmlparse of POST (Diane Blackmore
2014) - Re: [WebDNA] xmlparse of POST (Stuart Tremain
2014) - [WebDNA] xmlparse of POST (Diane Blackmore
2014) wrote:> That=92s where the problem lies=85. It=92s not sent in a variable. =It=92s sent back as XML formatted text, not as a POST variable.>=20> So I=92ve no idea how to grab it=85 Or if it=92s even possible.>=20>=20> Thanks,>=20> >=20> On 1/09/2014, at 11:52 am, Stuart Tremain wrote:>=20>> If the XML is being posted TO your site then just look for the form =variable that it is being sent in.>>=20>>=20>> Regards>>=20>> Stuart Tremain>> IDFK Web Developments>> AUSTRALIA>> webdna@idfk.com.au>>=20>>=20>>=20>>=20>> On 1 Sep 2014, at 9:47 am, Diane Blackmore =wrote:>>=20>>> Hi>>>=20>>> My code isn=92t broken - it was attached so you could see how the =method works when the POST is initiated from the page. My problem is =how to capture it when it ISN=92T initiated on the page, but rather just =sent directly to it.>>>=20>>> In other words, how do I grab the XML itself as a variable to parse?>>>=20>>> When it=92s initiated through the code supplied, the variable is set =by including the initiated post within the TEXT, but when this step is =required to be missed because I=92m not initiating it, I=92m confused as =to how I=92d pick it up.>>>=20>>> Cheers,>>>=20>>> >>>=20>>> On 29/08/2014, at 5:21 pm, Stuart Tremain =wrote:>>>=20>>>> That looks like it should work, I don't know why you are doing the ='actualresponse'.>>>>=20>>>> Just do [xmlparse var=3Dxml_var1][RESPONSE][/xmlparse]>>>>=20>>>> Just parse out the XML, if your response is all on one level, what =you have will work but if it is layered you will have to go deeper.>>>>=20>>>>=20>>>>=20>>>> Regards>>>>=20>>>> Stuart Tremain>>>> IDFK Web Developments>>>> AUSTRALIA>>>> webdna@idfk.com.au>>>>=20>>>>=20>>>>=20>>>>=20>>>> On 29 Aug 2014, at 2:15 pm, Diane Blackmore =wrote:>>>>=20>>>>> Hi>>>>>=20>>>>> I=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).>>>>>=20>>>>> 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??>>>>>=20>>>>> Using WebDNA unix-Linux Intel Apache Module version 6.2.1>>>>>=20>>>>> Code I would usually use is (assume all variables have been =assigned before snip)>>>>>=20>>>>> [text]crlf=3D[unurl]%0D%0A[/unurl][/text]>>>>> =[text]the_variables=3Dpaystation=3D_empty&pstn_pi=3D[pstn_pi]&pstn_gi=3D[p=stn_gi]&pstn_ms=3D[pstn_ms]&pstn_am=3D[pstn_am]&website=3D[justdomain][/te=xt]>>>>>=20>>>>> [text]Response=3D[TCPConnect =host=3Dwww.paystation.co.nz&port=3DXXX&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]>>>>>=20>>>>>=20>>>>> [text show=3Dt]actualresponse=3D[listwords =words=3D[response]&delimiters=3D<][showif =[index]>1][delimiter][word][/showif][/listwords][/text]>>>>> =09>>>>> [xmlparse var=3Dxml_var1][actualresponse][/xmlparse]>>>>>=20>>>>> [xmlnodes ref=3Dxml_var1&path=3Dnamed:InitiationRequestResponse]>>>>> [text secure=3Df][name]=3D[value][/text]>>>>> [/xmlnodes]>>>>>=20>>>>>=20>>>>> 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.>>>>>=20>>>>> My thanks in advance.>>>>>=20>>>>> Cheers,>>>>>=20>>>>> >>>>>=20>>>>> --------------------------------------------------------- This =message is sent to you because you are subscribed to the mailing list . =To unsubscribe, E-mail to: archives: =http://mail.webdna.us/list/talk@webdna.us Bug Reporting: =support@webdna.us>>>>=20>>>> --------------------------------------------------------- This =message is sent to you because you are subscribed to the mailing list . =To unsubscribe, E-mail to: archives: =http://mail.webdna.us/list/talk@webdna.us Bug Reporting: =support@webdna.us>>>=20>>> --------------------------------------------------------- This =message is sent to you because you are subscribed to the mailing list . =To unsubscribe, E-mail to: archives: =http://mail.webdna.us/list/talk@webdna.us Bug Reporting: =support@webdna.us>>=20>> --------------------------------------------------------- This =message is sent to you because you are subscribed to the mailing list . =To unsubscribe, E-mail to: archives: =http://mail.webdna.us/list/talk@webdna.us Bug Reporting: =support@webdna.us>=20> --------------------------------------------------------- This message =is sent to you because you are subscribed to the mailing list . To =unsubscribe, E-mail to: archives: =http://mail.webdna.us/list/talk@webdna.us Bug Reporting: =support@webdna.us--Apple-Mail=_50E01844-63FF-4685-8D73-F1DD312F1E4DContent-Transfer-Encoding: quoted-printableContent-Type: text/html;charset=windows-1252 But what happens when the XML =code is POST=92d at it from somewhere =else?So how are you accepting this =POST ? You must have a HTML page that is accepting the post =?On 1 Sep 2014, at 2:06 pm, Diane Blackmore <diane@cohesion.co.nz> =wrote:That=92s= where the problem lies=85. It=92s not sent in a variable. It=92s sent =back as XML formatted text, not as a POST =variable.=--Apple-Mail=_50E01844-63FF-4685-8D73-F1DD312F1E4D-- Stuart TremainSo I=92ve no idea how to grab it=85 Or if =it=92s even =possible.Thanks,<CohesionSig_Diane12.gif>On 1/09/2014, at 11:52 am, Stuart Tremain <webdna@idfk.com.au> =wrote:If the =XML is being posted TO your site then just look for the form variable =that it is being sent in.---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing list---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listOn 1 Sep 2014, at 9:47 am, Diane Blackmore <diane@cohesion.co.nz> =wrote:HiMy code isn=92t broken - it =was attached so you could see how the method works when the POST is =initiated from the page. My problem is how to capture it when it =ISN=92T initiated on the page, but rather just sent directly to =it.In other words, how do I grab the XML =itself as a variable to parse?When it=92s =initiated through the code supplied, the variable is set by including =the initiated post within the TEXT, but when this step is required to be =missed because I=92m not initiating it, I=92m confused as to how I=92d =pick it up.Cheers,<CohesionSig_Diane12.gif>---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listOn 29/08/2014, at 5:21 pm, Stuart Tremain <webdna@idfk.com.au> =wrote:That =looks like it should work, I don't know why you are doing the ='actualresponse'.Just do [xmlparse =var=3Dxml_var1][RESPONSE][/xmlparse]---------------------------------------------------------This message is sent to you because you are subscribed tothe mailing listJust parse =out the XML, if your response is all on one level, what you have will =work but if it is layered you will have to go =deeper.On 29 Aug 2014, at 2:15 pm, Diane Blackmore <diane@cohesion.co.nz> =wrote: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 .To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us .To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us .To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us .To unsubscribe, E-mail to: archives: http://mail.webdna.us/l=ist/talk@webdna.usBug Reporting: support@webdna.us
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
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...
Related Readings:
[WebDNA] macOS 10.13.3 and WebDNA Mac Server 8.5.1 - hick-up(2019) listfiles, moving files (1998) Setting user and password (1999) encrypt/decrypt failing (2000) Nesting format tags (1997) Bug or syntax error on my part? (1997) More on the email templates (1997) Multiple Newcarts (1996) Multiple transactions per cart (2000) [WebDNA] [if] or [case] or something else (2012) Upgrading (2003) X etc.... (1999) Help! WebCat2 bug (1997) WCS Newbie question (1997) Practice runs ? (1997) Setting up shop (1997) Whats up with emailer? (1998) Re1000001: Setting up shop (1997) Am I going senile? (Price recalc based on quantity) (1997) Error Lob.db records error message not name (1997)