Re: [WebDNA] XML Help
This WebDNA talk-list message is from 2009
It keeps the original formatting.
numero = 103625
interpreted = N
texte = 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=[unurl]%0D%0A[/unurl][/text]> [text]content=
> 2.0> > MD> YOU> MD> PcTest747g> PcTest382E> 12345> > GovtEndUserType="F" />> 1> [/text]>>> [text]XMLresult=[middle startafter=&endbefore=]> [tcpconnect host=newport.ingrammicro.com&port=443&ssl=T]> [tcpsend skipheader=T][!]> [/!]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=[tcpconnect host=newport.ingrammicro.com&port=443&ssl=T][!][/!][tcpsend skipheader=T][!][/!]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=xml_var1][XMLresult][/xmlparse][xmlnodes ref=xml_var1&path=named:PNAResponse][name]=[value]
[xmlnodes]- [name]=[value]
[/xmlnodes][/xmlnodes]Best,Christer
Associated Messages, from the most recent to the oldest:
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=
[unurl]%0D%0A[/unurl][/text]>
[text]content=
> 2.0> > MD> YOU> MD> PcTest747g> PcTest382E> 12345> > GovtEndUserType="F" />> 1> [/text]>>>
[text]XMLresult=[middle startafter=&endbefore=]> [tcpconnect host=newport.ingrammicro.com&port=443&ssl=T]> [tcpsend skipheader=T]
[!]> [/!]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=[tcpconnect host=newport.ingrammicro.com&port=443&ssl=T]
[!][/!][tcpsend skipheader=T]
[!][/!]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=xml_var1][XMLresult][/xmlparse][xmlnodes ref=xml_var1&path=named:PNAResponse][name]=[value]
[xmlnodes]- [name]=[value]
[/xmlnodes][/xmlnodes]Best,Christer
Christer Olsson
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:
how to use encrypt and searching (1998)
Template Encrypt Speed (1998)
Setting up shop (1997)
NT Manual (1997)
Deleting Orders (1997)
RE: Going to anchors within a template page (1997)
OT: javascript help (2003)
Reversed words (1997)
html email again... (2001)
WebCatalog for Postcards ? (1997)
redirect strangeness (2000)
MacOS X upgrade pricing plan (1999)
install on redhat (2004)
multiple search commands (1997)
Off Topic: Frames Killer? (1998)
WebDNA monitor not working (2002)
(1997)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)
Problems getting parameters passed into email. (1997)
RE: [WebDNA] WebDNA Start-up Error (2012)