What is WebDNA

WebDNA is a scripting and database system designed to easily build web applications.

WebDNA and BioType

BioType service is a biometric keystroke dynamic system. It will be part of WebDNA 8.5

Download WebDNA

Download WebDNA freeware, try it and register later if you want.

WebDNA resources

The list of all WebDNA instructions.
WebDNA
Software Corporation
Search WebDNA Site
 Menu


HOME


DOWNLOADS


LEARN


EDUCATION


NEWS


COMMUNITY


STORE


SUPPORT


CONTACT

Re: XMLNodes Error

This WebDNA talk-list message is from

2007


It keeps the original formatting.
numero = 69072
interpreted = N
texte = On 6/14/07 9:10 AM, "Donovan Brooke" wrote: > Thanks for sharing your code! Interesting to compare it to mine to > see the differences in how we tackled the thing... though it's been > so long that I can barely tell what I'm doing in my code. :) I believe the code came from Jesse, so I can't take credit. > question, can you reproduce the error? I'm guessing not > (as of yet). It appears to be a webdna error. I can't reproduce the problem. I've tried in Firefox on my Mac, and IE7 on Windows. It's intermittent. I put some logging in place to output each XML rate request as a separate file. Once I see another of these XMLNodes in the ErrorLog.txt file, I'll check the corresponding rate request XML file to see what's up. > Your use of URL's is good but I found a couple places that > I wonder about: > > [showif [lookup >> db=admin/usps_xml.db&lookinfield=SHR_NAME&value=[desc]&returnfield=SHR_ACTIV >> E¬found=N]=Y] > > > is one. Since [desc] is pulled from the rate calculator results, I don't want to [url] it. The usps_xml.db values aren't [url]'ed, so my query above would return no results. > Other than that, I'm curious, > > What does this do: "?API=RateV2&XML=[url][xmlData][/url]"? I'm not sure. This came directly from the USPS Rate Calculator manual. > Clint Davis wrote: >> I wrote functions to query UPS and USPS rates based on origin zip, >> destination zip, and weight. Recently, I started seeing some XMLNodes errors >> in my ErrorLog.txt file. For 99% of my customers, there's no problem, but >> the other 1% is getting the XMLNodes error message. >> >> >> >> Here's the error: >> An unknown error occurred:
>> XMLNodes
>> Container/Path Not Found:
>> USPSres >> >> >> >> Here's the code: >> [table name=shipOptions&fields=desc,price][/table] >> >> [function name=uspsRates] >> [text]crlf=[unurl]%0D%0A[/unurl][/text] >> >> [text]uspsPounds=[middle startafter=&endbefore=.][weight][/middle][/text] >> [text]uspsOunces=[format .0f][math][middle >> startafter=.&endbefore=][weight][/middle]*0.16[/math][/format][/text] >> >> [text]xmlData= >> >> >> ALL >> [lookup >> db=admin/usps_xml.db&lookinfield=SHR_ID&value=USPSXML&returnfield=SHR_ZIP&no >> tfound=] >> [destinationzip] >> [uspsPounds] >> [uspsOunces] >> REGULAR >> FALSE >> >> [/text] >> >> [xmlparse var=USPSres] >> [getchars start=1&trim=t][middle startafter=[url]> version="1.0"?>[/url]&endbefore=HTTP/1.1] >> [TCPConnect host=Production.ShippingAPIs.com&port=80] >> [TCPSend]GET /ShippingAPI.dll?API=RateV2&XML=[url][xmlData][/url] >> HTTP/1.0[crlf][!] >> [/!]Host: Production.ShippingAPIs.com[crlf][!] >> [/!]Content-type: text/html[crlf][!] >> [/!]Content-length: [CountChars][xmlData][/CountChars][crlf][!] >> [/!][crlf][!] >> [/!][xmlData][crlf][!] >> [/!][/TCPSend][!] >> [/!][/TCPConnect][/middle][/getchars] >> [/xmlparse] >> >> [text]markup=[lookup >> db=admin/usps_xml.db&lookinfield=SHR_ID&value=USPSXML&returnfield=SHR_MARKUP >> ¬found=0][/text] >> >> [xmlnodes ref=USPSres&path=named:RateV2Response/Package/] >> [text]desc=[/text] >> [text]price=[/text] >> [showif [url][name][/url]=Postage] >> [xmlnodes] >> [showif [url][name][/url]=MailService] >> [text]desc=[value][/text] >> [/showif] >> [showif [url][name][/url]=Rate] >> [text]price=[value][/text] >> [/showif] >> [showif [lookup >> db=admin/usps_xml.db&lookinfield=SHR_NAME&value=[desc]&returnfield=SHR_ACTIV >> E¬found=N]=Y] >> [append table=shipOptions]desc=USPS >> [url][desc][/url]&price=[url][if >> "[markup]"="0"][then][price][/then][else][format >> .2f][math][price]+([price]*([markup]*0.01))[/math][/format][/else][/if][/url >> ][/append] >> [/showif] >> [/xmlnodes] >> [/showif] >> [/xmlnodes] >> >> [/function] >> >> >> [uspsRates destinationzip=[getcookie RealStoreZip]&weight=[getcookie >> RealStoreWeight]] ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: XMLNodes Error ( Clint Davis 2008)
  2. Re: XMLNodes Error ( Clint Davis 2007)
  3. Re: XMLNodes Error ( "Olin Lagon" 2007)
  4. Re: XMLNodes Error ( Clint Davis 2007)
  5. Re: XMLNodes Error ( Donovan Brooke 2007)
  6. Re: XMLNodes Error ( Clint Davis 2007)
  7. Re: XMLNodes Error ( Clint Davis 2007)
  8. Re: XMLNodes Error ( Donovan Brooke 2007)
  9. Re: XMLNodes Error ( Matthew A Perosi 2007)
  10. XMLNodes Error ( Clint Davis 2007)
On 6/14/07 9:10 AM, "Donovan Brooke" wrote: > Thanks for sharing your code! Interesting to compare it to mine to > see the differences in how we tackled the thing... though it's been > so long that I can barely tell what I'm doing in my code. :) I believe the code came from Jesse, so I can't take credit. > question, can you reproduce the error? I'm guessing not > (as of yet). It appears to be a webdna error. I can't reproduce the problem. I've tried in Firefox on my Mac, and IE7 on Windows. It's intermittent. I put some logging in place to output each XML rate request as a separate file. Once I see another of these XMLNodes in the ErrorLog.txt file, I'll check the corresponding rate request XML file to see what's up. > Your use of URL's is good but I found a couple places that > I wonder about: > > [showif [lookup >> db=admin/usps_xml.db&lookinfield=SHR_NAME&value=[desc]&returnfield=SHR_ACTIV >> E¬found=N]=Y] > > > is one. Since [desc] is pulled from the rate calculator results, I don't want to [url] it. The usps_xml.db values aren't [url]'ed, so my query above would return no results. > Other than that, I'm curious, > > What does this do: "?API=RateV2&XML=[url][xmlData][/url]"? I'm not sure. This came directly from the USPS Rate Calculator manual. > Clint Davis wrote: >> I wrote functions to query UPS and USPS rates based on origin zip, >> destination zip, and weight. Recently, I started seeing some XMLNodes errors >> in my ErrorLog.txt file. For 99% of my customers, there's no problem, but >> the other 1% is getting the XMLNodes error message. >> >> >> >> Here's the error: >> An unknown error occurred:
>> XMLNodes
>> Container/Path Not Found:
>> USPSres >> >> >> >> Here's the code: >> [table name=shipOptions&fields=desc,price][/table] >> >> [function name=uspsRates] >> [text]crlf=[unurl]%0D%0A[/unurl][/text] >> >> [text]uspsPounds=[middle startafter=&endbefore=.][weight][/middle][/text] >> [text]uspsOunces=[format .0f][math][middle >> startafter=.&endbefore=][weight][/middle]*0.16[/math][/format][/text] >> >> [text]xmlData= >> >> >> ALL >> [lookup >> db=admin/usps_xml.db&lookinfield=SHR_ID&value=USPSXML&returnfield=SHR_ZIP&no >> tfound=] >> [destinationzip] >> [uspsPounds] >> [uspsOunces] >> REGULAR >> FALSE >> >> [/text] >> >> [xmlparse var=USPSres] >> [getchars start=1&trim=t][middle startafter=[url]> version="1.0"?>[/url]&endbefore=HTTP/1.1] >> [TCPConnect host=Production.ShippingAPIs.com&port=80] >> [tcpsend]GET /ShippingAPI.dll?API=RateV2&XML=[url][xmlData][/url] >> HTTP/1.0[crlf][!] >> [/!]Host: Production.ShippingAPIs.com[crlf][!] >> [/!]Content-type: text/html[crlf][!] >> [/!]Content-length: [countchars][xmlData][/CountChars][crlf][!] >> [/!][crlf][!] >> [/!][xmlData][crlf][!] >> [/!][/TCPSend][!] >> [/!][/TCPConnect][/middle][/getchars] >> [/xmlparse] >> >> [text]markup=[lookup >> db=admin/usps_xml.db&lookinfield=SHR_ID&value=USPSXML&returnfield=SHR_MARKUP >> ¬found=0][/text] >> >> [xmlnodes ref=USPSres&path=named:RateV2Response/Package/] >> [text]desc=[/text] >> [text]price=[/text] >> [showif [url][name][/url]=Postage] >> [xmlnodes] >> [showif [url][name][/url]=MailService] >> [text]desc=[value][/text] >> [/showif] >> [showif [url][name][/url]=Rate] >> [text]price=[value][/text] >> [/showif] >> [showif [lookup >> db=admin/usps_xml.db&lookinfield=SHR_NAME&value=[desc]&returnfield=SHR_ACTIV >> E¬found=N]=Y] >> [append table=shipOptions]desc=USPS >> [url][desc][/url]&price=[url][if >> "[markup]"="0"][then][price][/then][else][format >> .2f][math][price]+([price]*([markup]*0.01))[/math][/format][/else][/if][/url >> ][/append] >> [/showif] >> [/xmlnodes] >> [/showif] >> [/xmlnodes] >> >> [/function] >> >> >> [uspsRates destinationzip=[getcookie RealStoreZip]&weight=[getcookie >> RealStoreWeight]] ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Clint Davis

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:

notification solutions (1997) [OT] Mystery Autoreply (2004) Webcat 2.0.1 date math bug -> Crash! (1997) Max Record length restated as maybe bug (1997) Cart Numbers (1997) RE: format problem on NT? (1997) Tech question about web dna actions (1998) LOOP problem (2007) WebCat B13 Mac CGI -- Frames question (1997) [WebDNA] Migration from 6.2 to 7. Problems with writing to DB's (2012) Searching (1998) WebCatalog2 Feature Feedback (1996) WebMerchant when CC network is down (1998) [OT] XML Primer (2004) japanese characters (1997) suffix mapping, use of cache, etc. (1997) unit ship cost GRRRRRRR! (2001) find with exceptions (1997) Queertrons? (1997) WebCat2b12 CGI Mac - [shownext] problem (1997)