RE: [WebDNA] XML Help

This WebDNA talk-list message is from

2009


It keeps the original formatting.
numero = 103607
interpreted = N
texte = Thank you Chris! This seemed to work. I now get this data returned: 2.0YOUMD<= DocumentID>{15A0E750-AA64-4855-873C-3D1B6F811AB7}123452009-09-11T10:22:15236.93YCE462A#ABA2822P2035= N LASER 30PPM 1200XN0-17273152009-10-05-660-386<= /Availability>1402009-11-09<= Branch ID=3D"40" Name=3D"Carol Stream, Illinois">-3601402009-11-16-10183852009-09-14 Now for parsing this, I am just as lost. I have look at the XML commands a= nd the example Donovan mentioned but still need some guidance. With this XM= L response above would I now have to write this to a file or database in or= der to display the results the way I want them? I have tried [xmlparse var=3Dxml_var1][include file=3Dexample1.xml][/xmlparse] [xmlnodes ref=3Dxml_var1] [name]=3D[value] [/xmlnodes] And just get the following error: Fatal Error at file line: 1 column: 1 message: Invalid document structure An unknown error occurred: XMLNodes Container/Path Not Found: xml_var1 Sorry if these are stupid questions, but this is my first attempt at workin= g with XML. Mark -----Original Message----- From: Christer Olsson [mailto:christer@ljusaideer.se] Sent: Friday, September 11, 2009 1:29 AM To: talk@webdna.us Subject: Re: [WebDNA] XML Help Just sending your example would be something like this: [text]crlf=3D[unurl]%0D%0A[/unurl][/text] [text]content=3D 2.0 MD YOU MD MyId MyPassword 12345 1 [/text] [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] For parsing the XML responses you get back you'll have to learn and use the XML portions of WebDNA. Best, Christer ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se 11 sep 2009 kl. 01.55 skrev Mark Bergkvist: > Govinda, > > I have looked at some of these tags and think I might need to use > them. Guess I am really just lost when it comes down to how to send > a request and just get some kind of response back, even if it is an > error message from them, at least I would know that I am "talking" > with their server... I have played around with the [TCPonnect] > commands but just get a "Error" couldn't connect to host" message. > Again, I am not even sure if this is the right road to go down... > > The vendor I am trying to connect with does provide a "test Tool" > when I can paste the code (PNArequest below) and it does give a > valid response. But I don't know how to get my server to talk to > them to get the same response back. > > Mark > > > -----Original Message----- > From: Govinda [mailto:govinda.webdnatalk@gmail.com] > Sent: Thursday, September 10, 2009 7:39 PM > To: talk@webdna.us > Subject: Re: [WebDNA] XML Help > > mark > > I also am XML newbie (not even started).. > but start with this thought: > webdna can produce any text you could need. You make webdna generate > whatever text you need to look like whatever you need it to look like > (whether HTML, javascript, XML, or anything.) > > There are also special XML tags in webdna, like > [XMLNodes] > and others.. but I have never looked into them.. They may make your > job even easier. (in reading or writing xml.. ?) > also there is a tag called [TCPConnect] you can use to connect > directly to a server. But if you are just posting a form to them > though, then you do not need that. > > dive in and ask more Q's as you encounter them. maybe read something > introductory about XML so you can separate out Webdna Q's from XML > Q's. > > -Govinda > > On Sep 10, 2009, at 4:49 PM, Mark Bergkvist wrote: > >> Not sure if anyone can help, but I need to connect to a supplier via >> XML using an HTTP-POST command to get pricing information from. >> >> I know nothing about XML and not even sure if this is a WebDNA >> question. >> >> Here is the sample document they sent me to work with. They did >> also provide me with a URL and username/password to connect with. >> >> >> 2.0 >> >> MD >> YOU >> MD >> MyId >> MyPassword >> 12345 >> >> > GovtEndUserType=3D"F" /> >> 1 >> >> >> >> Anyone have any ideas where I should start? >> >> Windows 2003 IIS server >> WebDNA 6.2.0 >> >> >> Mark >> --------------------------------------------------------- >> 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= =3D288 > > ------------ > Govinda > govinda.webdnatalk@gmail.com > > > > > --------------------------------------------------------- > 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= =3D288 > --------------------------------------------------------- > 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= =3D288 --------------------------------------------------------- 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)
Thank you Chris! This seemed to work. I now get this data returned: 2.0YOUMD<= DocumentID>{15A0E750-AA64-4855-873C-3D1B6F811AB7}123452009-09-11T10:22:15236.93YCE462A#ABA2822P2035= N LASER 30PPM 1200XN0-17273152009-10-05-660-386<= /Availability>1402009-11-09<= Branch ID=3D"40" Name=3D"Carol Stream, Illinois">-3601402009-11-16-10183852009-09-14 Now for parsing this, I am just as lost. I have look at the XML commands a= nd the example Donovan mentioned but still need some guidance. With this XM= L response above would I now have to write this to a file or database in or= der to display the results the way I want them? I have tried [xmlparse var=3Dxml_var1][include file=3Dexample1.xml][/xmlparse] [xmlnodes ref=3Dxml_var1] [name]=3D[value] [/xmlnodes] And just get the following error: Fatal Error at file line: 1 column: 1 message: Invalid document structure An unknown error occurred: XMLNodes Container/Path Not Found: xml_var1 Sorry if these are stupid questions, but this is my first attempt at workin= g with XML. Mark -----Original Message----- From: Christer Olsson [mailto:christer@ljusaideer.se] Sent: Friday, September 11, 2009 1:29 AM To: talk@webdna.us Subject: Re: [WebDNA] XML Help Just sending your example would be something like this: [text]crlf=3D[unurl]%0D%0A[/unurl][/text] [text]content=3D 2.0 MD YOU MD MyId MyPassword 12345 1 [/text] [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] For parsing the XML responses you get back you'll have to learn and use the XML portions of WebDNA. Best, Christer ************************************************************* Christer Olsson PO Box 9160 Phone +46 40 25 85 85 Ljusa Id=E9er AB SE-200 39 Malmo Fax +46 40 25 85 89 Kantyxegatan 5 Sweden http://www.ljusaideer.se 11 sep 2009 kl. 01.55 skrev Mark Bergkvist: > Govinda, > > I have looked at some of these tags and think I might need to use > them. Guess I am really just lost when it comes down to how to send > a request and just get some kind of response back, even if it is an > error message from them, at least I would know that I am "talking" > with their server... I have played around with the [TCPonnect] > commands but just get a "Error" couldn't connect to host" message. > Again, I am not even sure if this is the right road to go down... > > The vendor I am trying to connect with does provide a "test Tool" > when I can paste the code (PNArequest below) and it does give a > valid response. But I don't know how to get my server to talk to > them to get the same response back. > > Mark > > > -----Original Message----- > From: Govinda [mailto:govinda.webdnatalk@gmail.com] > Sent: Thursday, September 10, 2009 7:39 PM > To: talk@webdna.us > Subject: Re: [WebDNA] XML Help > > mark > > I also am XML newbie (not even started).. > but start with this thought: > webdna can produce any text you could need. You make webdna generate > whatever text you need to look like whatever you need it to look like > (whether HTML, javascript, XML, or anything.) > > There are also special XML tags in webdna, like > [xmlnodes] > and others.. but I have never looked into them.. They may make your > job even easier. (in reading or writing xml.. ?) > also there is a tag called [tcpconnect] you can use to connect > directly to a server. But if you are just posting a form to them > though, then you do not need that. > > dive in and ask more Q's as you encounter them. maybe read something > introductory about XML so you can separate out Webdna Q's from XML > Q's. > > -Govinda > > On Sep 10, 2009, at 4:49 PM, Mark Bergkvist wrote: > >> Not sure if anyone can help, but I need to connect to a supplier via >> XML using an HTTP-POST command to get pricing information from. >> >> I know nothing about XML and not even sure if this is a WebDNA >> question. >> >> Here is the sample document they sent me to work with. They did >> also provide me with a URL and username/password to connect with. >> >> >> 2.0 >> >> MD >> YOU >> MD >> MyId >> MyPassword >> 12345 >> >> > GovtEndUserType=3D"F" /> >> 1 >> >> >> >> Anyone have any ideas where I should start? >> >> Windows 2003 IIS server >> WebDNA 6.2.0 >> >> >> Mark >> --------------------------------------------------------- >> 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= =3D288 > > ------------ > Govinda > govinda.webdnatalk@gmail.com > > > > > --------------------------------------------------------- > 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= =3D288 > --------------------------------------------------------- > 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= =3D288 --------------------------------------------------------- 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:

PCS Frames (1997) Summary layout (1997) MacAuthorize order data fields WAS:How To question... (1997) Return records from another (1997) RE: [WebDNA] WebDNA 7 (2011) Merging databases (1997) Uploading out of FMP (2001) Surprise x and y post args (1998) restarting webcatalog (2002) Newbie problem blah blah blah (1997) [append] and SSL (1997) mac hack (1997) Folder Follies (1998) What am I missing (1997) Sitebuilder (2004) Re:Remote stockroom ? (1998) Multiple Merchant Accounts? (1997) Textarea Breaks (2000) Generating Report Totals (1997) Bug alert! (1997)