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 AMTo: talk@webdna.usSubject: Re: [WebDNA] XML Help13 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] whendon't commenting out all of them. Add comments on every linebreak, andyour code works, without the [middle].[text]XMLresult=3D[tcpconnecthost=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 tothe mailing list
.To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usold 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:
Success!!!Thank you Christer!!!Mark-----Original Message-----From: Christer Olsson [mailto:christer@ljusaideer.se]Sent: Sunday, September 13, 2009 11:41 AMTo: talk@webdna.usSubject: Re: [WebDNA] XML Help13 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] whendon't commenting out all of them. Add comments on every linebreak, andyour code works, without the [middle].[text]XMLresult=3D[tcpconnecthost=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 tothe mailing list .To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.usold 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:
TCPsend with POST? (1999)
database size? (1997)
[WebDNA] annoucement - WebDNA 8.0.2 (2015)
Up and running ... at last !! (1997)
This list needs a digest: rant, rave... (1997)
Mass Mail (2000)
Assigning Serialized Customer Numbers (1997)
Number of files in a directory (2006)
No Subject (1998)
WC2.0 Memory Requirements (1997)
Server Error Question (2004)
Re:Virtual hosting and webcatNT (1997)
AE aware WebCatalog.acgi? (1997)
[BULK] [WebDNA] [BULK] WebDNA 7 Won't Install/Work [internal server error] (2010)
Nesting Search Within
Tag? (1997)
Showif Context combined with Search (1997)
Bug? (1997)
Multiple cart additions (1997)
wow (1998)
Separate SSL Server (1997)