RE: [WebDNA] XML Help

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103626
interpreted = N
texte = Success!!! Thank you Christer!!! Mark -----Original Message----- From: Christer Olsson [mailto:christer@ljusaideer.se] Sent: Sunday, September 13, 2009 11:41 AM To: talk@webdna.us Subject: Re: [WebDNA] XML Help 13 sep 2009 kl. 16.40 skrev Mark Bergkvist: > Christer, > > I understand about using the XML directly and via a writefile, both > ways seem to be working just fine. > > I have also already worked with the commands to remove whitespaces > to no avail. > > I have created a test account so I could post my entire code here if > anyone would like to help me figure out why I am getting the "Fatal > Error" messages. The test account I setup will allow you to see the > returned XML. > > > [text]crlf=3D[unurl]%0D%0A[/unurl][/text] > [text]content=3D > 2.0 > > MD > YOU > MD > PcTest747g > PcTest382E > 12345 > > GovtEndUserType=3D"F" /> > 1 > [/text] > > > [text]XMLresult=3D[middle startafter=3D&endbefore= =3D] > [tcpconnect host=3Dnewport.ingrammicro.com&port=3D443&ssl=3DT] > [tcpsend skipheader=3DT][!] > [/!]POST /mustang HTTP/1.0[crlf][!] > [/!]Host: [host][crlf][!] > [/!]Content-Length: [CountChars][content][/CountChars][crlf][!] > [/!][crlf][!] > [/!][content][!] > [/!][/tcpsend] > [/tcpconnect][/middle][/text] Mark, here's your problem: your adding linebreaks to your [XMLresult] when don't commenting out all of them. Add comments on every linebreak, and your code works, without the [middle]. [text]XMLresult=3D[tcpconnect host=3Dnewport.ingrammicro.com&port=3D443&ssl=3DT][!] [/!][tcpsend skipheader=3DT][!] [/!]POST /mustang HTTP/1.0[crlf][!] [/!]Host: [host][crlf][!] [/!]Content-Length: [CountChars][content][/CountChars][crlf][!] [/!][crlf][!] [/!][content][!] [/!][/tcpsend][!] [/!][/tcpconnect][!] [/!][/text] Then skip the writefilepart and your code will execute faster: [xmlparse var=3Dxml_var1][XMLresult][/xmlparse] [xmlnodes ref=3Dxml_var1&path=3Dnamed:PNAResponse] [name]=3D[value]
[xmlnodes] - [name]=3D[value]
[/xmlnodes] [/xmlnodes] Best, Christer --------------------------------------------------------- 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 old archives: http://dev.webdna.us/TalkListArchive/ Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D= 288 Associated Messages, from the most recent to the oldest:

    
  1. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  2. Re: [WebDNA] XML Help (Christer Olsson 2009)
  3. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  4. Re: [WebDNA] XML Help (Christer Olsson 2009)
  5. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  6. Re: [WebDNA] XML Help (Christer Olsson 2009)
  7. RE: [WebDNA] XML Help (Marc Thompson 2009)
  8. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  9. Re: [WebDNA] XML Help (Kenneth Grome 2009)
  10. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  11. Re: [WebDNA] XML Help (Marc Thompson 2009)
  12. Re: [WebDNA] XML Help (Kenneth Grome 2009)
  13. Re: [WebDNA] XML Help (Marc Thompson 2009)
  14. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  15. Re: [WebDNA] XML Help (Marc Thompson 2009)
  16. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  17. Re: [WebDNA] XML Help (Donovan Brooke 2009)
  18. Re: [WebDNA] XML Help (Christer Olsson 2009)
  19. Re: [WebDNA] XML Help (Govinda 2009)
  20. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  21. Re: [WebDNA] XML Help (Govinda 2009)
  22. RE: [WebDNA] XML Help (Mark Bergkvist 2009)
  23. Re: [WebDNA] XML Help (Govinda 2009)
  24. Re: [WebDNA] XML Help please (Colin Sidwell 2009)
  25. Re: [WebDNA] XML Help please (Gil Poulsen 2009)
  26. Re: [WebDNA] XML Help please (Gil Poulsen 2009)
  27. Re: [WebDNA] XML Help please (Gil Poulsen 2009)
  28. RE: [WebDNA] XML Help please ("Michael A. DeLorenzo" 2009)
  29. RE: [WebDNA] XML Help please ("Michael A. DeLorenzo" 2009)
  30. Re: [WebDNA] XML Help please (Colin Sidwell 2009)
  31. Re: [WebDNA] XML Help please (Colin Sidwell 2009)
  32. Re: [WebDNA] XML Help please (Gil Poulsen 2009)
  33. Re: [WebDNA] XML Help please (Toby Cox 2009)
Success!!! Thank you Christer!!! Mark -----Original Message----- From: Christer Olsson [mailto:christer@ljusaideer.se] Sent: Sunday, September 13, 2009 11:41 AM To: talk@webdna.us Subject: Re: [WebDNA] XML Help 13 sep 2009 kl. 16.40 skrev Mark Bergkvist: > Christer, > > I understand about using the XML directly and via a writefile, both > ways seem to be working just fine. > > I have also already worked with the commands to remove whitespaces > to no avail. > > I have created a test account so I could post my entire code here if > anyone would like to help me figure out why I am getting the "Fatal > Error" messages. The test account I setup will allow you to see the > returned XML. > > > [text]crlf=3D[unurl]%0D%0A[/unurl][/text] > [text]content=3D > 2.0 > > MD > YOU > MD > PcTest747g > PcTest382E > 12345 > > GovtEndUserType=3D"F" /> > 1 > [/text] > > > [text]XMLresult=3D[middle startafter=3D&endbefore= =3D] > [tcpconnect host=3Dnewport.ingrammicro.com&port=3D443&ssl=3DT] > [tcpsend skipheader=3DT][!] > [/!]POST /mustang HTTP/1.0[crlf][!] > [/!]Host: [host][crlf][!] > [/!]Content-Length: [countchars][content][/CountChars][crlf][!] > [/!][crlf][!] > [/!][content][!] > [/!][/tcpsend] > [/tcpconnect][/middle][/text] Mark, here's your problem: your adding linebreaks to your [XMLresult] when don't commenting out all of them. Add comments on every linebreak, and your code works, without the [middle]. [text]XMLresult=3D[tcpconnect host=3Dnewport.ingrammicro.com&port=3D443&ssl=3DT][!] [/!][tcpsend skipheader=3DT][!] [/!]POST /mustang HTTP/1.0[crlf][!] [/!]Host: [host][crlf][!] [/!]Content-Length: [countchars][content][/CountChars][crlf][!] [/!][crlf][!] [/!][content][!] [/!][/tcpsend][!] [/!][/tcpconnect][!] [/!][/text] Then skip the writefilepart and your code will execute faster: [xmlparse var=3Dxml_var1][XMLresult][/xmlparse] [xmlnodes ref=3Dxml_var1&path=3Dnamed:PNAResponse] [name]=3D[value]
[xmlnodes] - [name]=3D[value]
[/xmlnodes] [/xmlnodes] Best, Christer --------------------------------------------------------- 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 old archives: http://dev.webdna.us/TalkListArchive/ Bug Reporting: http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D= 288 Mark Bergkvist

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:

Cold Fusion Buster (1997) Not carrying Zero (2000) Adding more than one item and QTY to cart (2000) RAM to disk (2002) dynamic giffing. (2000) Formatting dates stored in db (2003) Limiting user access to .tmpl files (1997) [WebDNA] Fwd: RETS... HELP! (2009) Saving Text Areas with Orders (1997) WebCat2b15MacPlugin - showing [math] (1997) Cart date/time (2006) Draft Manual, Tutorial, and more (1997) WebCat2 - Getting to the browser's username/password data (1997) Searching for the end (1998) Migrating to NT (1997) [WebDNA] To Commitdatabase or Not to Commitdatabase (2012) SFTP and shell (2005) authnet good news (2003) includes (2003) Multiple fields on 1 input (1997)