Re: XML Problem
I just informed dave the disruptured of this situation. He should be arriving soon! :) Will ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227245 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: XML Problem
Ade .. don't answer that :P lol -Original Message- From: Jennifer Gavin-Wear [mailto:[EMAIL PROTECTED] Sent: 18 December 2005 17:37 To: CF-Talk Subject: RE: XML Problem Oh duh .. why didn't i spot that .. Thanks Chris :-) -Original Message- From: Chris Gottshall [mailto:[EMAIL PROTECTED] Sent: 18 December 2005 16:24 To: CF-Talk Subject: Re: XML Problem ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227244 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: XML Problem
Oh duh .. why didn't i spot that .. Thanks Chris :-) -Original Message- From: Chris Gottshall [mailto:[EMAIL PROTECTED] Sent: 18 December 2005 16:24 To: CF-Talk Subject: Re: XML Problem Jennifer, You should try printing the XmlText of the node. Ex: xmlcontent.shop.stock.item[i].stockcode.XmlText Stopping at .stockcode returns a reference to the XmlNode, hence the error. But the .stockcode.XmlText contains the value you are looking for. -Chris >Hi, I'm learning xml to use it within a cart application and have come >unstuck. > >The xml file I've created looks fine. I can read it and get a count of >stock items. > >But all of the contents I return look like >[EMAIL PROTECTED] > >Can anyone see where I'm going wrong please? > >Thanks, Jenny > > >URLToPull = "#application.siteurl#stock/stock.xml"; > > > > > XMLContent = trim(cfhttp.filecontent); > XMLContent = XMLParse(XMLContent); > > > > >#showitems# >#xmlcontent.shop.shopname# > >#xmlcontent.shop.stock.item[i].stockcode# > > > > ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227243 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: XML Problem
Jennifer, You should try printing the XmlText of the node. Ex: xmlcontent.shop.stock.item[i].stockcode.XmlText Stopping at .stockcode returns a reference to the XmlNode, hence the error. But the .stockcode.XmlText contains the value you are looking for. -Chris >Hi, I'm learning xml to use it within a cart application and have come >unstuck. > >The xml file I've created looks fine. I can read it and get a count of >stock items. > >But all of the contents I return look like >[EMAIL PROTECTED] > >Can anyone see where I'm going wrong please? > >Thanks, Jenny > > >URLToPull = "#application.siteurl#stock/stock.xml"; > > > > > XMLContent = trim(cfhttp.filecontent); > XMLContent = XMLParse(XMLContent); > > > > >#showitems# >#xmlcontent.shop.shopname# > >#xmlcontent.shop.stock.item[i].stockcode# > > > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227240 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: XML Problem
Hi Ade, Have tried this and no luck: URLToPull = "#application.siteurl#stock/stock.xml"; XMLContent = trim(cfhttp.filecontent); XMLContent = XMLParse(XMLContent); #tostring(xmlcontent.shop.shopname)# I'm really confused because I can read an rss feed with no problems using: #XMLContent.rss.channel.item[idx].pubdate.xmlText# #XMLContent.rss.chann el.item[idx].title.xmlText# #ParagraphFormat(ReplaceNoCase(XMLContent.rss.channel.item[idx].description ..xmlText, "<", "<", "ALL"))# Feed provided by: #XMLContent.rss.channel.title.xmlText# #XMLContent.rss.channel.description.xmlText# The xml doc also looks fine: http://www.pagan-crystals.co.uk/stock/stock.xml I'm sure I'm doing something daft!? Jenny ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227239 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: XML Problem
Look at using ToString(). Ade -Original Message- From: Jennifer Gavin-Wear [mailto:[EMAIL PROTECTED] Sent: 18 December 2005 15:00 To: CF-Talk Subject: XML Problem Hi, I'm learning xml to use it within a cart application and have come unstuck. The xml file I've created looks fine. I can read it and get a count of stock items. But all of the contents I return look like [EMAIL PROTECTED] Can anyone see where I'm going wrong please? Thanks, Jenny URLToPull = "#application.siteurl#stock/stock.xml"; XMLContent = trim(cfhttp.filecontent); XMLContent = XMLParse(XMLContent); #showitems# #xmlcontent.shop.shopname# #xmlcontent.shop.stock.item[i].stockcode# ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227238 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
XML Problem
Hi, I'm learning xml to use it within a cart application and have come unstuck. The xml file I've created looks fine. I can read it and get a count of stock items. But all of the contents I return look like [EMAIL PROTECTED] Can anyone see where I'm going wrong please? Thanks, Jenny URLToPull = "#application.siteurl#stock/stock.xml"; XMLContent = trim(cfhttp.filecontent); XMLContent = XMLParse(XMLContent); #showitems# #xmlcontent.shop.shopname# #xmlcontent.shop.stock.item[i].stockcode# ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227237 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Parsing XML problem
> Thank you, Eddie. That helped me figure it out, but it turned out that I > didn't need to use cfxml as I was already using xmlparse, but the rest of > your code was spot on. Have a good weekend, if you haven't already started. I used only to test my code. I'm glad it was helpful. Have a nice weekend. -- Eddie Awad. http://awads.net/ ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211471 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Parsing XML problem
Thank you, Eddie. That helped me figure it out, but it turned out that I didn't need to use cfxml as I was already using xmlparse, but the rest of your code was spot on. Have a good weekend, if you haven't already started. >On 7/8/05, Eddie Awad wrote: > >xPath to the rescue: > > > > >aAccountNumber >12345 > > >bAddress >USA > > > > >xmlSearch(myDOM,"doc/Parameter[./ParameterName='aAccountNumber']/ParameterValue")> > >xmlSearch(myDOM,"doc/Parameter[./ParameterName='bAddress']/ParameterValue")> > > >Account Number: #accountNumber[1].xmlText# >Address: #address[1].xmlText# > > >If you have multiple account number nodes, you would need to loop over >the array accountNumber[]. Same applies to the array address[]. > >HTH >-- >Eddie Awad. >http://awads.net/ ~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211466 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: Parsing XML problem
On 7/8/05, Rebecca Wells <[EMAIL PROTECTED]> wrote: > How do you parse out this kind of XML string? I need to find the value > of aAccountNumber and bAddress: > > > aAccountNumber > X > > > bAddress > X > xPath to the rescue: aAccountNumber 12345 bAddress USA Account Number: #accountNumber[1].xmlText# Address: #address[1].xmlText# If you have multiple account number nodes, you would need to loop over the array accountNumber[]. Same applies to the array address[]. HTH -- Eddie Awad. http://awads.net/ ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211446 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Parsing XML problem
How do you parse out this kind of XML string? I need to find the value of aAccountNumber and bAddress: aAccountNumber X bAddress X I suppose if I could depend on the order of the Parameters, I could refer to the values like so: Parameter[1].ParameterValue.xmlText Parameter[2].ParameterValue.xmlText Does that work or is there a better way? ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:211441 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: cfhttp posting XML problem
Duncan, Ahh, I misunderstood you a bit. I thought you had meant that you were also receiving back a packet which you weren't getting. My suggestion is probably not even applicable to your situation. *shrug* Sorry for not reading more carefully. rish > -Original Message- > From: Duncan [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 07, 2005 1:23 AM > To: CF-Talk > Subject: Re: cfhttp posting XML problem > > nice, I put in the utf-8 also I discovered I wasnt putting > name into the cfhttpparam. > > Then after consulting the company that owns the webservice, I > discovered they wanted the xml as a post in a form field, so > heres what I have now: > > > http://stage.campaigntrack.com.au:8080/CtXml/Post.aspx"; > port="8080" USERAGENT="McGrath/1.0" method="post"> >value="#request.xm#"/> > > Problem solved. > > Long day now over. TFFT. > > On Apr 7, 2005 4:13 PM, Guy Rish <[EMAIL PROTECTED]> wrote: > > Duncan, > > > > I ran into a similar problem a while back. Using a shareware proxy > > that Dave Watts suggested (in reference to a different problem that > > someone was having), Charles > (http://www.xk72.com/charles/), I found > > that ColdFusion was actually receiving the content back but was > > discarding it for some unknown reason. In fact, despite > what I saw in > > the proxy, cfhttp would actually report back a "Connection Failure". > > Interestingly enough this problem did *not* manifest for me on CF5. > > > > The solution I used was to specify "utf-8" in cfhttp's > charset attribute. > > I initially tried to specify it with a cfhttpparam but that didn't > > seem to work for me but the attribute worked smoothly. > > > > rish > > > > > -Original Message- > > > From: Duncan [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, April 07, 2005 1:00 AM > > > To: CF-Talk > > > Subject: cfhttp posting XML problem > > > > > > I have a problem - I am creating an XML doc and using > cfhttp post to > > > send it to a server. > > > > > > Problem is that the server is responding as if I havent > sent any XML > > > at all. I have tried all combinations of port and timeouts, but I > > > cant seem to get the right output. It should be > responding with XML > > > Success in the return body and a status code of 200.. > > > > > > Can someone cast fresh eyes over this please: > > > > > > > > > > > > > > > 23722 > > > mplusm00308 > > > k34bsd7ts2 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > URL="http://stage.campaigntrack.com.au:8080/CtXml/Post.aspx"; > > > port="8080" USERAGENT="McGrath/1.0" method="post"> > > > > > > > > > -- > > > Duncan I Loxton > > > www.sixfive.co.uk > > > [EMAIL PROTECTED] > > > > > > "I can only please one person per day. Today is not looking good. > > > Tomorrow isn't looking much better." Dilbert > > > > > > > > > > > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201829 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: cfhttp posting XML problem
nice, I put in the utf-8 also I discovered I wasnt putting name into the cfhttpparam. Then after consulting the company that owns the webservice, I discovered they wanted the xml as a post in a form field, so heres what I have now: http://stage.campaigntrack.com.au:8080/CtXml/Post.aspx"; port="8080" USERAGENT="McGrath/1.0" method="post"> Problem solved. Long day now over. TFFT. On Apr 7, 2005 4:13 PM, Guy Rish <[EMAIL PROTECTED]> wrote: > Duncan, > > I ran into a similar problem a while back. Using a shareware proxy that > Dave Watts suggested (in reference to a different problem that someone was > having), Charles (http://www.xk72.com/charles/), I found that ColdFusion was > actually receiving the content back but was discarding it for some unknown > reason. In fact, despite what I saw in the proxy, cfhttp would actually > report back a "Connection Failure". > Interestingly enough this problem did *not* manifest for me on CF5. > > The solution I used was to specify "utf-8" in cfhttp's charset attribute. > I initially tried to specify it with a cfhttpparam but that didn't seem to > work for me but the attribute worked smoothly. > > rish > > > -Original Message- > > From: Duncan [mailto:[EMAIL PROTECTED] > > Sent: Thursday, April 07, 2005 1:00 AM > > To: CF-Talk > > Subject: cfhttp posting XML problem > > > > I have a problem - I am creating an XML doc and using cfhttp > > post to send it to a server. > > > > Problem is that the server is responding as if I havent sent > > any XML at all. I have tried all combinations of port and > > timeouts, but I cant seem to get the right output. It should > > be responding with XML Success in the return body and a > > status code of 200.. > > > > Can someone cast fresh eyes over this please: > > > > > > > > > > > > 23722 > > mplusm00308 > > k34bsd7ts2 > > > > > > > > > > > > > > > > > > > > > > http://stage.campaigntrack.com.au:8080/CtXml/Post.aspx"; > > port="8080" USERAGENT="McGrath/1.0" method="post"> > > > > > > -- > > Duncan I Loxton > > www.sixfive.co.uk > > [EMAIL PROTECTED] > > > > "I can only please one person per day. Today is not looking good. > > Tomorrow isn't looking much better." Dilbert > > > > > > ~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201827 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
RE: cfhttp posting XML problem
Duncan, I ran into a similar problem a while back. Using a shareware proxy that Dave Watts suggested (in reference to a different problem that someone was having), Charles (http://www.xk72.com/charles/), I found that ColdFusion was actually receiving the content back but was discarding it for some unknown reason. In fact, despite what I saw in the proxy, cfhttp would actually report back a "Connection Failure". Interestingly enough this problem did *not* manifest for me on CF5. The solution I used was to specify "utf-8" in cfhttp's charset attribute. I initially tried to specify it with a cfhttpparam but that didn't seem to work for me but the attribute worked smoothly. rish > -Original Message- > From: Duncan [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 07, 2005 1:00 AM > To: CF-Talk > Subject: cfhttp posting XML problem > > I have a problem - I am creating an XML doc and using cfhttp > post to send it to a server. > > Problem is that the server is responding as if I havent sent > any XML at all. I have tried all combinations of port and > timeouts, but I cant seem to get the right output. It should > be responding with XML Success in the return body and a > status code of 200.. > > Can someone cast fresh eyes over this please: > > > > > > 23722 > mplusm00308 > k34bsd7ts2 > > > > > > > > > > > http://stage.campaigntrack.com.au:8080/CtXml/Post.aspx"; > port="8080" USERAGENT="McGrath/1.0" method="post"> > > > -- > Duncan I Loxton > www.sixfive.co.uk > [EMAIL PROTECTED] > > "I can only please one person per day. Today is not looking good. > Tomorrow isn't looking much better." Dilbert > > ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201825 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
cfhttp posting XML problem
I have a problem - I am creating an XML doc and using cfhttp post to send it to a server. Problem is that the server is responding as if I havent sent any XML at all. I have tried all combinations of port and timeouts, but I cant seem to get the right output. It should be responding with XML Success in the return body and a status code of 200.. Can someone cast fresh eyes over this please: 23722 mplusm00308 k34bsd7ts2 http://stage.campaigntrack.com.au:8080/CtXml/Post.aspx"; port="8080" USERAGENT="McGrath/1.0" method="post"> -- Duncan I Loxton www.sixfive.co.uk [EMAIL PROTECTED] "I can only please one person per day. Today is not looking good. Tomorrow isn't looking much better." Dilbert ~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:201822 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
Re: XML Problem Check out the code
Yup, I would first remove all tags when you're messing with or XMLNEW() ~Todd On Fri, 26 Jul 2002, BT THornton wrote: > I have a XML array that I appended and it says it was successful but no > data is in the XML struct. > > Any ideas? > > > > > > XML TEST > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Success = #a# > > > > > #toString(myXML1)# > > > > > > __ Get the mailserver that powers this list at http://www.coolfusion.com FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
XML Problem Check out the code
I have a XML array that I appended and it says it was successful but no data is in the XML struct. Any ideas? XML TEST Success = #a# #toString(myXML1)# __ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Please HELP!! - TCPClient and XML problem...
On Wed, 30 Jan 2002 13:42:47 -0500, "Ron Davis" <[EMAIL PROTECTED]> wrote: >ah.. THAT might explain it... they network guys told me that >this particular transaction could take up to 60 seconds to complete.. >soo next logical question.. how can i over-ride the >default timeout? > >I tried adding a line, but I think its in the wrong place (or format) >I took it from the docs, but I think I'm mis-useing it Basically, you can change the timeout at any point, but I usually do it after the open. After I check if the connection actually occured or not. (I think I changed it so that before a open and after a close some of the settings were reset for safety reasons. So timeout may be invalidated if used before an open. I'm not positive about that however.) .. should do it. Note that timeout is not how long the ENTIRE transaction has before it's forciably terminated. It's how long a peroid it will sit there if nothing is coming in. If the remote server sends a single character every 59 seconds, it'll just keep accumulating for a while. :) (There are a few parms you can set to force it stop but those are really only for extreme circumstances involving streaming media.) --min __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Please HELP!! - TCPClient and XML problem...
ah.. THAT might explain it... they network guys told me that this particular transaction could take up to 60 seconds to complete.. soo next logical question.. how can i over-ride the default timeout? I tried adding a line, but I think its in the wrong place (or format) I took it from the docs, but I think I'm mis-useing it NEW LINE bIsConnected = obj.Open("10.30.0.254", "4242"); obj.Send(xmlDoc); myresponse = obj.Recv(); Thanks !! -Ron __ Why Share? Dedicated Win 2000 Server · PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Please HELP!! - TCPClient and XML problem...
On Wed, 30 Jan 2002 11:58:15 -0500, "Ron Davis" <[EMAIL PROTECTED]> wrote: >UPDATE: > >I got an email from the people on the target server end.. they said that >they actually *GOT* the transmission and successfully sent out the reply, >but i didnt get anything printed out as the response... ?? can anyone see >a problem with these few lines... its getting narowed down.. FINALLY: > > >bIsConnected = obj.Open("10.30.0.254", "4242"); >obj.Send(xmlDoc); >myresponse = obj.Recv(); > > >
Re: Please HELP!! - TCPClient and XML problem...
UPDATE: I got an email from the people on the target server end.. they said that they actually *GOT* the transmission and successfully sent out the reply, but i didnt get anything printed out as the response... ?? can anyone see a problem with these few lines... its getting narowed down.. FINALLY: bIsConnected = obj.Open("10.30.0.254", "4242"); obj.Send(xmlDoc); myresponse = obj.Recv();
Re: Please HELP!! - TCPClient and XML problem...
erm SOAP? i use that in the shower... ?? If you couldnt tell, i'm VERY new to all this... All that I really know for sure is that the server on the other end thats getting my XML data stream is NOT a web server... just a machine that I'm supposed to connect to via tcpip, dump some data down the hole, and listen for a reply... am I even close to where I should be? Thanks TONS!!! (sorry to keep you up late!) >>> [EMAIL PROTECTED] 01/29/02 11:25PM >>> On Tue, 29 Jan 2002 22:45:19 -0500, "Ron Davis" <[EMAIL PROTECTED]> wrote: > >Well I have the code all ready (thanks to VERY helpful members of this >list!), but when I try to actually run it, it acts like its processing (it >slows down like its chewing thru the process), but I never get a response >back... > >Now.. heres the twist... the server thats listening on a particular port >will ONLY accept requests from a certain IP address (which is set to the >web server hosting these pages)... but.. the web server is sitting behind >a firewall, and when you call it up in a browser you have to use an >entirely different IP address... So.. my question is this... since its >bouncing from a different IP address, could that be why I'm not getting >any responses? Or is the firewall actually translating from the "broadcast >ed" as the IP address, to the one that the other server will accept >requests from? Is there something else conflicting with this? I'm.. half asleep at the moment, but if there are proxy's and firewall's involved you have to change your code to accomodate them. Browsers and the like take care of this invisibly, but with tcpclient you'll have to do it manually. I assume you're using the HTTP protocol? Basically, you open an ip connection to the proxy, then do all your GET, HEAD, POST operations with the full URL of the site you wish to talk to. Simple as that. That is, instead of: you'd: http://www.houseoffusion.com/INDEX.HTML HTTP/1.0")> Or at least that's how I remember it worked. >:::CODE EXAMPLE::: Oh. Just noticed your code. No wonder it just sits there. :) You didn't send any HTTP commands to telling what the data you were sending was. It should just sit there in that case, til it times out. This a SOAP-friendly server I take it? Is that what you're trying to do? Use SOAP I mean? --min __ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Please HELP!! - TCPClient and XML problem...
On Tue, 29 Jan 2002 22:45:19 -0500, "Ron Davis" <[EMAIL PROTECTED]> wrote: > >Well I have the code all ready (thanks to VERY helpful members of this >list!), but when I try to actually run it, it acts like its processing (it >slows down like its chewing thru the process), but I never get a response >back... > >Now.. heres the twist... the server thats listening on a particular port >will ONLY accept requests from a certain IP address (which is set to the >web server hosting these pages)... but.. the web server is sitting behind >a firewall, and when you call it up in a browser you have to use an >entirely different IP address... So.. my question is this... since its >bouncing from a different IP address, could that be why I'm not getting >any responses? Or is the firewall actually translating from the "broadcast >ed" as the IP address, to the one that the other server will accept >requests from? Is there something else conflicting with this? I'm.. half asleep at the moment, but if there are proxy's and firewall's involved you have to change your code to accomodate them. Browsers and the like take care of this invisibly, but with tcpclient you'll have to do it manually. I assume you're using the HTTP protocol? Basically, you open an ip connection to the proxy, then do all your GET, HEAD, POST operations with the full URL of the site you wish to talk to. Simple as that. That is, instead of: you'd: http://www.houseoffusion.com/INDEX.HTML HTTP/1.0")> Or at least that's how I remember it worked. >:::CODE EXAMPLE::: Oh. Just noticed your code. No wonder it just sits there. :) You didn't send any HTTP commands to telling what the data you were sending was. It should just sit there in that case, til it times out. This a SOAP-friendly server I take it? Is that what you're trying to do? Use SOAP I mean? --min __ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation · $99/Month · Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Please HELP!! - TCPClient and XML problem...
Hey gang... I need to get some verification before I climb someones case... Very simply, I have a chunk of code that generates an XML string of data and then uses the TCPClient tag to send it to a server thats listening on the other end. Sounds pretty easy, eh? Well I have the code all ready (thanks to VERY helpful members of this list!), but when I try to actually run it, it acts like its processing (it slows down like its chewing thru the process), but I never get a response back... Now.. heres the twist... the server thats listening on a particular port will ONLY accept requests from a certain IP address (which is set to the web server hosting these pages)... but.. the web server is sitting behind a firewall, and when you call it up in a browser you have to use an entirely different IP address... So.. my question is this... since its bouncing from a different IP address, could that be why I'm not getting any responses? Or is the firewall actually translating from the "broadcast ed" as the IP address, to the one that the other server will accept requests from? Is there something else conflicting with this? I've tried everything that I can think of, and before I start yelling at the network folks, I wanted to make sure that I've looked at everything thourghly... I'm also attaching the code at the bottom of the email if anyone can see any glaring errors in it... THANKS TO ALL -Ron :::CODE EXAMPLE:::