Re: Big XML files processing Really s-l-o-w. Solution?

2011-02-14 Thread Michael Grant
you can make use of BulkInsert +1. I love love love bulkinsert. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

Re: Big XML files processing Really s-l-o-w. Solution?

2011-02-14 Thread Casey Dougall
simular to BulkInsert where the xml file is on the MySql Server. http://dev.mysql.com/tech-resources/articles/xml-in-mysql5.1-6.0.html ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology

Re: Big XML files processing Really s-l-o-w. Solution?

2011-02-14 Thread Alan Rother
When in doubt, ask Ben Nadel(or check his blog)... Words to live by I had the same issue, huge variable XML file, lots of variations, had a hell of a time making it work in SQL Server due to the complexity Used this, works amazingly well, all things considered, executes very quickly http

Re: Big XML files processing Really s-l-o-w. Solution?

2011-02-14 Thread Russ Michaels
Processing the XML with Java rather than CFML will speed things up. check riaforge.org or cflib.org and the adobe exchange, somewhere there is a XML parser that does just this and may give you the boost you want. Russ On Tue, Feb 15, 2011 at 12:15 AM, Casey Dougall ca

Re: Big XML files processing Really s-l-o-w. Solution?

2011-02-14 Thread Michael Grant
That actually looks like a pretty nice solution if bulkinsert isn't an option. On Mon, Feb 14, 2011 at 7:24 PM, Alan Rother alan.rot...@gmail.com wrote: When in doubt, ask Ben Nadel(or check his blog)... Words to live by I had the same issue, huge variable XML file, lots of variations, had

Re: Big XML files processing Really s-l-o-w. Solution?

2011-02-14 Thread Russ Michaels
if bulkinsert isn't an option. On Mon, Feb 14, 2011 at 7:24 PM, Alan Rother alan.rot...@gmail.com wrote: When in doubt, ask Ben Nadel(or check his blog)... Words to live by I had the same issue, huge variable XML file, lots of variations, had a hell of a time making it work in SQL

Re: Big XML files processing Really s-l-o-w. Solution?

2011-02-14 Thread Matt Robertson
Very interesting stuff, guys. Very much appreciated. Should have come here before I did the project as opposed to afterward. You'd think I'd know better by now. -- --m@Robertson-- Janitor, The Robertson Team mysecretbase.com

HELP!!! REgEx, XML and a Qutation Mark

2010-11-02 Thread Michael Grove
I am trying to export our product list to an XML feed. It works pretty well except that one of the products, has a quotation mark in it that nothing seems to like. I believe it is a cut and past issue and that the quotation mark is a special character. It is this one right here â

RE: HELP!!! REgEx, XML and a Qutation Mark

2010-11-02 Thread Justin Scott
I am trying to export our product list to an XML feed. It works pretty well except that one of the products, has a quotation mark in it that nothing seems to like. It is this one right here ” I believe that's a fancy quote likely pasted from Word or some other word processing

Re: WSDL / XML / String help

2010-09-24 Thread Dave Watts
=userid value=1 /cfinvoke And when I do this:  cfdump var=#temp1# I get this: ?xml version=1.0 encoding=utf-8? soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema

Re: WSDL / XML / String help

2010-09-24 Thread Leigh
You shouldn't have to manipulate the SOAP XML response directly. Hmm.. you are right. I had cfhttp on the brain yesterday and skidded right past the fact they are using cfinvoke. -Leigh ~| Order the Adobe

Re: WSDL / XML / String help

2010-09-24 Thread Doug Ford
Hi Dave - I haven't put it into any CFC code yet. I usually work in a simple file to test the results, and make sure things work before adding additional overhead. The only code on the page is this (and then attempts to print out the results): cfinvoke webservice=myURL/my_api.cfc?wsdl

Re: WSDL / XML / String help

2010-09-24 Thread James Holmes
Dave means the cfc at myURL/my_api.cfc There must be some code there, right? -- WSS4CF - WS-Security framework for CF http://wss4cf.riaforge.org/ On 24 September 2010 22:54, Doug Ford doug.e.f...@gmail.com wrote: Hi Dave - I haven't put it into any CFC code yet.  I usually work in a

Re: WSDL / XML / String help

2010-09-24 Thread Doug Ford
Hi folks - It looks like Leigh might be the winner in this contest... When I did this: cfset resultXML = xmlParse(trim(temp1)) I was able to do this: cfdump var=#resultXML# And actually see some XML code. Thank you all for trying to help. Dave as for the CFC of the SOAP service, I don't

WSDL / XML / String help

2010-09-23 Thread Doug Ford
cfinvokeargument name=customerid value=1 cfinvokeargument name=userid value=1 /cfinvoke And when I do this: cfdump var=#temp1# I get this: ?xml version=1.0 encoding=utf-8? soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema

Re: WSDL / XML / String help

2010-09-23 Thread Leigh
Use xmlParse() to convert the string to an xml document. The results will be under envelope.body cfset resultXML = xmlParse(temp1) cfset baseXML = resultXML.Envelope.body cfoutput #baseXML.GetUserProfileResponse.GetUserProfileResult.user.firstname.xmlText# /cfoutput

Re: WSDL / XML / String help

2010-09-23 Thread Doug Ford
Use xmlParse() to convert the string to an xml document. The results will be under envelope.body cfset resultXML = xmlParse(temp1) cfset baseXML = resultXML.Envelope.body cfoutput #baseXML.GetUserProfileResponse.GetUserProfileResult.user.firstname. xmlText# /cfoutput Hi Leigh

Re: WSDL / XML / String help

2010-09-23 Thread Leigh
Make sure you trim() the string first. Excess white space often makes xmlParse() choke. ~| Order the Adobe Coldfusion Anthology now!

Re: parse XML

2010-09-11 Thread Dave Watts
I have some XML being sent back to me and i am having a hard time reading information out of it. There are colons in the node names and i think that is what is causing it.  Anyway to escape the colons? Here is a snippet of the XML: ?xpacket begin= id=W5M0MpCehiHzreSzNTczkc9d

Re: parse XML

2010-09-11 Thread Gerald Guido
I have used XmlToStruct in the past and found it to take a lot of the grunt work out of parsing xml into easy to use data. http://xml2struct.riaforge.org/ hth G! On Thu, Sep 9, 2010 at 12:00 PM, chad gray cg...@careyweb.com wrote: I have some XML being sent back to me and i am having

parse XML

2010-09-10 Thread chad gray
I have some XML being sent back to me and i am having a hard time reading information out of it. There are colons in the node names and i think that is what is causing it. Anyway to escape the colons? Here is a snippet of the XML: ?xpacket begin= id=W5M0MpCehiHzreSzNTczkc9d? x:xmpmeta

Validating an XML document to a schema using ColdFusion

2010-07-12 Thread Ian Skinner
This is something I have never tried before. We created an XML Schema to define XML documents we expect to receive from various entities. When we receive the document, we would like to validate it before processing it. I think ColdFusion is up to this from reading the documentation

Re: Validating an XML document to a schema using ColdFusion

2010-07-12 Thread Ian Skinner
Small sample files that produce the error. XML Schema |?xml version=1.0 encoding=iso-8859-1? xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; xs:element name=pur xs:complexType xs:sequence xs:element name=File type=xs:string minOccurs

Re: Validating an XML document to a schema using ColdFusion

2010-07-12 Thread denstar
This worked on railo: cfsavecontent variable=xs?xml version=1.0 encoding=iso-8859-1? xs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; xs:element name=pur xs:complexType xs:sequence xs:element name=File type=xs:string minOccurs=1 maxOccurs=1

(ot) insert soap xml nodes to MS SQL table problem

2010-06-11 Thread Casey Dougall
Hi, I'm having some troubles getting around the soap header and xmlns part inGetResponse in something like the following example where it can't find data for the member nodes. declare @UserInfo table (InfoName nvarchar(100), InfoValue nvarchar(100)) declare @xml xml set @xml

Re: (ot) insert soap xml nodes to MS SQL table problem

2010-06-11 Thread Dave Watts
I'm having some troubles getting around the soap header and xmlns part inGetResponse in something like the following example where it can't find data for the member nodes. ... This is a namespace problem. I don't know the exact answer offhand, but if you query ms sql xml namespace you'll

Color Code XML

2010-05-25 Thread Brad Wood
I'm looking for a way to take a text XML document and add the appropriate HTML markup to it so it can be viewed in a browser and color-coded and indented properly. I don't really care if it is programmatic and I don't even care what colors are used as long as it is pretty-- I just need

RE: Color Code XML

2010-05-25 Thread Justin Scott
Suggestions? http://alexgorbatchev.com/wiki/SyntaxHighlighter SyntaxHighlighter should make pretty quick work of it and allow the code to be displayed on the page in a viewer-friendly way. -Justin Scott, http://www.tlson.com/

Re: Color Code XML

2010-05-25 Thread Brad Wood
Hmm, that's a slick little library. I like the customizability of it and the separate CSS files. Thanks! ~Brad - Original Message - From: Justin Scott jscott-li...@gravityfree.com To: cf-talk cf-talk@houseoffusion.com Sent: Tuesday, May 25, 2010 10:41 PM Subject: RE: Color Code XML

recursive XML reader...

2010-04-05 Thread Brian Thornton
While striving for a recursive XML function to read valid XML I came up short... I seem to have a issue this_parent = ; delim = |; //this recursive function for n children function recurseXML(xmlElem) { var ii = 0

Re: recursive XML reader...

2010-04-05 Thread Tony Bentley
I had a similar problem with the xml structure. If I remember correctly, XML is not actually an array and so I couldn't use arraylen(). I might be wrong but I tried this once and failed so I decided to bail out and loop through the known levels of the xml structure. I'm curious

Re: recursive XML reader...

2010-04-05 Thread denstar
On Mon, Apr 5, 2010 at 11:44 AM, Brian Thornton wrote: While striving for a recursive XML function to read valid XML I came up short... ... When it get's to child 2, grandchild2 it cannot keep track of where it belongs... Any ideas? When doing *any* type of recursion, it's *super

Google Weather API XML Question: Getting the value of a node

2010-03-19 Thread Chuck Weidler
I have been trying to figure this one out for a while now. Running the below code will bring back a valid XML string and the XmlParse() is working just fine. The problem is trying to get the value for Condition in the cfscript. The error I'm getting is: Element

Re: Google Weather API XML Question: Getting the value of a node

2010-03-19 Thread Kym Kovan
On 20/03/2010 13:33, Chuck Weidler wrote: I have been trying to figure this one out for a while now. Running the below code will bring back a valid XML string and the XmlParse() is working just fine. The problem is trying to get the value for Condition in thecfscript. The error I'm

Re: Google Weather API XML Question: Getting the value of a node

2010-03-19 Thread Azadi Saryev
code will bring back a valid XML string and the XmlParse() is working just fine. The problem is trying to get the value for Condition in the cfscript. The error I'm getting is: Element XML_API_REPLY.WEATHER.CURRENT_CONDITIONS.CONDITION.XMLATTRIBUTES.DATA is undefined in XMLGOOGLE. I

RE: Google Weather API XML Question: Getting the value of a node

2010-03-19 Thread Chuck
Kym, Thank you very much. The worked perfectly. It never crossed my mind to user XmlSearch(). Chuck ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists

RE: Google Weather API XML Question: Getting the value of a node

2010-03-19 Thread Chuck
Azadi, Thank you very much. That also worked perfectly. This is why I love this forum and community. Developers helping other Developers, it is just so cool. Thanks again for the help. Chuck ~| Want to reach the

Re: Pretty XML

2010-03-10 Thread Barney Boisvert
and it worked as a fantastic starting point. The XML displayed to the screen and was formatted almost perfectly. The one issue that I had, which I think you mention in your blog post, was that it was increasing the indent on every line until it came across a closing tag at the start of a line. I

Re: Pretty XML

2010-03-10 Thread Scott McAllister
Cool! http://cflib.org/udf/indentXml ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive:

Re: Pretty XML

2010-03-10 Thread Casey Dougall
On Wed, Mar 10, 2010 at 2:31 PM, Scott McAllister stmcallis...@gmail.comwrote: Cool! http://cflib.org/udf/indentXml Nice one!!! I'm testing new API calls today, this was already worth the time to download and add to my utilities LOL

Re: Pretty XML

2010-03-06 Thread Scott McAllister
Got it! Thanks to all that replied and helped! Barney, I used your UDF and it worked as a fantastic starting point. The XML displayed to the screen and was formatted almost perfectly. The one issue that I had, which I think you mention in your blog post, was that it was increasing the indent

Pretty XML

2010-03-05 Thread Scott McAllister
I've been given the task of outputting XML to the page in a readable format. We want all the XML tags to still display, but we want the output to be formatted pretty. If I use something like ToString(XmlParse(xmlString)) the source behind the page looks perfect, but the output to the screen

Re: Pretty XML

2010-03-05 Thread James Holmes
of outputting XML to the page in a readable format. We want all the XML tags to still display, but we want the output to be formatted pretty. If I use something like ToString(XmlParse(xmlString)) the source behind the page looks perfect, but the output to the screen looses all the tags - as it should

Re: Pretty XML

2010-03-05 Thread Brad Wood
ToString(XmlParse(xmlString)) This is redunant. You just turned a string into an object, and back into a string again. XmlFormat(ToString(XmlParse(xmlString))) 5 yard penalty for misuse of the xmlFormat function. That function is designed to make a string safe for inclusion in an XML

Re: Pretty XML

2010-03-05 Thread Brad Wood
pre #xmlString# /pre Sorry, should have typed pre #htmlEditFormat(xmlString)# /pre ~Brad ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists

Re: Pretty XML

2010-03-05 Thread Barney Boisvert
I wrote this little UDF a couple years back to pretty-print XML. http://www.barneyb.com/barneyblog/2008/05/01/indentxml-cf-udf/ cfoutput pre#htmlEditFormat(indentXml(xmlStringToFormat))#pre /cfoutput On Fri, Mar 5, 2010 at 10:20 PM, Brad Wood b...@bradwood.com wrote: ToString(XmlParse

Re: 500 Server error on parse or raw HTTP post (xml)

2010-02-24 Thread sonicDivx
Just thought would follow-up. Problem stems from the Flash file created is not setting contentType to text/xml and was using application/x-www-form-urlencoded (the default). So clearly for large packets CF 8 wants proper content type, which I agree with 100%. So getting company to fix

XML/Schema Errors ( validating XML with Schema ) and XMLValidate.

2010-02-22 Thread Don
Hello I'm Validating an XML object using code similar to the following: cfset daOb = xmlParse(ca2.xml) cfset myResults=XMLValidate(daOb, ca2_generated.xsd) Regarding the XSD and errors generated, I notice that if I violate a restriction as per below ( say I specify 'THATShipper' vs

500 Server error on parse or raw HTTP post (xml)

2010-02-22 Thread sonicDivx
Have a situation where a 3rd part commercial application is sending, from Flash, a raw XML post (no key-value pairs). Most of the time it works, but we just encountered a situation where a 30k post is causing a 500 error. I seen the error online before, but no resolution. So my thought

Re: 500 Server error on parse or raw HTTP post (xml)

2010-02-22 Thread sonicDivx
Dave, Yeah I looked there and guess what, nothing. so it is not even recording this in the logs, making it even more difficult. On Mon, Feb 22, 2010 at 1:48 PM, Dave Watts dwa...@figleaf.com wrote: Have a situation where a 3rd part commercial application is sending, from Flash, a raw XML

Re: 500 Server error on parse or raw HTTP post (xml)

2010-02-22 Thread Dave Watts
Have a situation where a 3rd part commercial application is sending, from Flash, a raw XML post (no key-value pairs). Most of the time it works, but we just encountered a situation where a 30k post is causing a 500 error. I seen the error online before, but no resolution. So my thought

Re: 500 Server error on parse or raw HTTP post (xml)

2010-02-22 Thread Dave Watts
Yeah I looked there and guess what,  nothing. so it is not even recording this in the logs, making it even more difficult. Did you also look at the JRun logs? On my CF 8 default install, they're in c:\coldfusion8\runtime\logs. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/

Re: 500 Server error on parse or raw HTTP post (xml)

2010-02-22 Thread sonicDivx
That log just yield the same message, no clue. Well I will add the application is Viewlet Builder 6 from Qarbon. I do have a post on their message board about this too. http://forum.qarbon.com/viewtopic.php?f=3t=1119p=3460#p3460 On Mon, Feb 22, 2010 at 2:55 PM, Dave Watts dwa...@figleaf.com

XML-RPC

2010-01-08 Thread David Mineer
Does anyone have up to date information on connecting to a XMLRPC webservice. I am trying to connect to the www.infusionsoft.com web service and that is what they provide. I did find some info on xmlrpc.cfc, but it does seem very old, but it might still work, although I am a little confused as

RE: XML-RPC

2010-01-08 Thread Justin Scott
Does anyone have up to date information on connecting to a XMLRPC webservice. I am trying to connect to the www.infusionsoft.com web service and that is what they provide. Hi David, check this out: http://dougharrison.info/66/infusionsoft-coldfusion-sdk I had to integrate an application

Re: XML-RPC

2010-01-08 Thread David Mineer
Thanks Justin. I did talk to them after I posted and I will be buying that on Monday morning. He gave me a demo and showed me some of the code and it would take me weeks, at least, to recreate that stuff if I even understood it in the first place. Good to hear that it is as easy and powerful

model glue xml file

2009-12-18 Thread Chad Gray
What keeps someone from loading up the model-glue XML file through their browser? How should you protect it? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing

Re: model glue xml file

2009-12-18 Thread Tom Chiverton
On Friday 18 Dec 2009, Chad Gray wrote: What keeps someone from loading up the model-glue XML file through their browser? We've got global rules in our Apache config. that ban sending *.xml files, for instance. -- Helping to collaboratively harness turn-key principle-centered eyeballs

Re: model glue xml file

2009-12-18 Thread Dominic Watson
keeps someone from loading up the model-glue XML file through their browser? How should you protect it? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists

Re: model glue xml file

2009-12-18 Thread Charlie Griefer
http://charlie.griefer.com/blog/index.cfm/2009/7/22/Securing-Your-XML-Config-Files:) On Fri, Dec 18, 2009 at 8:24 AM, Chad Gray cg...@careyweb.com wrote: What keeps someone from loading up the model-glue XML file through their browser? How should you protect

Re: model glue xml file

2009-12-18 Thread Dave Watts
What keeps someone from loading up the model-glue XML file through their browser? Nothing by default, I suppose. How should you protect it? In general, there are three ways to prevent people from viewing things on your web server. 1. Don't place it in a web-accessible directory. Off

Re: Random errors from CFHTTP sending XML documents

2009-12-16 Thread Ben Nadel
I am also just getting this error on CF7. Starts happening after a random number of records that are sent. Did you ever get to the bottom of this? -Ben I have a couple of CF scripts that send out an XML doc to various webservices (Google AdWords, for example). Usually they all run just

Re: Using XML to Create schema/database

2009-12-10 Thread Steve Bryant
Tom, Usually the detail portion of the error will include more information - usually the error returned from the database. Make sure that the database exists and has CREATE and ALTER permissions (if you want DataMgr to create tables and columns). If you have any more trouble, you can check

Re: Using XML to Create schema/database

2009-12-09 Thread Steve Bryant
Tom, As Isaac mentioned his DataFaucet project and my DataMgr project will both create tables and columns from XML. DataMgr will also allow you to define the data (not sure about DataFaucet): http://www.bryantwebconsulting.com/docs/datamgr/synchronize-database-structure-activeschema.cfm http

Re: Using XML to Create schema/database

2009-12-09 Thread Dave Watts
I was wondering if there were any libraries or functions which can be used to create database tables on the fly based on XML data and then insert the data. So all I had to worry about was formatting the xml data. This isn't exactly what you asked for, but the bundled Hibernate

Re: Using XML to Create schema/database

2009-12-09 Thread s. isaac dealey
Ahh cool. I hadn't seen that before. DataFaucet doesn't currently have any seed-data feature in the XML, so you'd have to write your own code for doing that part of it with the current version of DF. As Isaac mentioned his DataFaucet project and my DataMgr project will both create tables

Re: Using XML to Create schema/database

2009-12-09 Thread Tom Jones
Wow, the DataMgr project is very cool. I can use it right away for other parts of my application. thanks, tom Tom, As Isaac mentioned his DataFaucet project and my DataMgr project will both create tables and columns from XML. DataMgr will also allow you to define the data (not sure

Re: Using XML to Create schema/database

2009-12-09 Thread Tom Jones
I do have one question on the loadXml function. I'm getting a error that says LoadXML Failed(verify datasource MySQLDS is correct). The DSN is valid, where/ how can I trouble shoot this? Thanks, tom ~| Want to reach the

Using XML to Create schema/database

2009-12-08 Thread Tom Jones
Hello, I was wondering if there were any libraries or functions which can be used to create database tables on the fly based on XML data and then insert the data. So all I had to worry about was formatting the xml data. Thanks, tom

Re: Using XML to Create schema/database

2009-12-08 Thread s. isaac dealey
Hello, I was wondering if there were any libraries or functions which can be used to create database tables on the fly based on XML data and then insert the data. So all I had to worry about was formatting the xml data. I've not done anything for performing the inserts/updates using XML

Re: XML POST with Coldfusion

2009-10-27 Thread Anene Isioma Wealth
...@ramonecung.com To: cf-talk cf-talk@houseoffusion.com Sent: Tue, October 27, 2009 3:07:46 AM Subject: Re: XML POST with Coldfusion I need someone to develop a coldfusion script that will communicate to a server/service using XML POST. Sorry if it's a silly question, but can you just do post's

Re: XML POST with Coldfusion

2009-10-27 Thread Anene Isioma Wealth
Software Eng./CEO Quorium Solutions www.quorium.org 07029609185,07032696113 From: Dave Watts dwa...@figleaf.com To: cf-talk cf-talk@houseoffusion.com Sent: Tue, October 27, 2009 12:11:50 AM Subject: Re: XML POST with Coldfusion I'm reading this on my phone, so I

XML POST with Coldfusion

2009-10-26 Thread Chuka Anene
Okay, this should be a nut-cracker on this Blog. I need someone to develop a coldfusion script that will communicate to a server/service using XML POST. Parameters are: SMS authentification username/username password/password /authentification message sender/sender

Re: XML POST with Coldfusion

2009-10-26 Thread Chuka Anene
Okay, this should be a nut-cracker on this Blog. I need someone to develop a coldfusion script that will communicate to a server/service using XML POST. Parameters are: SMS authentification username/username password/password /authentification message

Re: XML POST with Coldfusion

2009-10-26 Thread Matt Williams
gsm messageId=“clientmsgID3“/gsm gsm messageId=“clientmsgID4“/gsm/recipients /SMS /cfsavecontent cfhttp url=http://www.myserver.com/AddOn/myService/XML/XMLInput.aspx; method=post result=servicePostBack cfhttpparam type=XML value=#myXmlString# /cfhttp -Matt

Re: XML POST with Coldfusion

2009-10-26 Thread Jessica Kennedy
this will create a valid xml header to send along, over cfsavecontent: !---create xml--- cfxml variable=apisend SMS authentification username/username password/password /authentification message sender/sender text/text /message recipients

Re: XML POST with Coldfusion

2009-10-26 Thread Anene Isioma Wealth
: Re: XML POST with Coldfusion cfsavecontent variable=myXmlString SMSauthentification username/username password/password/authentificationmessage sender/sender text/text/messagerecipients gsm messageId=“clientmsgID1“/gsm gsm messageId=â

Re: XML POST with Coldfusion

2009-10-26 Thread Dave Watts
sorry, that didnt work Maybe, you should either post the error message you got (or whatever response you got) or post a public URL to the service you're trying to invoke, if possible. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber

Re: XML POST with Coldfusion

2009-10-26 Thread Anene Isioma Wealth
, October 26, 2009 10:06:59 PM Subject: Re: XML POST with Coldfusion this will create a valid xml header to send along, over cfsavecontent: !---create xml--- cfxml variable=apisend SMS authentification username/username password/password /authentification message sender

Re: XML POST with Coldfusion

2009-10-26 Thread Anene Isioma Wealth
From: Dave Watts dwa...@figleaf.com To: cf-talk cf-talk@houseoffusion.com Sent: Mon, October 26, 2009 10:38:15 PM Subject: Re: XML POST with Coldfusion sorry, that didnt work Maybe, you should either post the error message you got (or whatever response you got) or post

Re: XML POST with Coldfusion

2009-10-26 Thread Dave Watts
i did not get any error message. it is an sms server. the reply is supposed to be an sms to my mobile number. Nothing came to me, so i presume the code didnt work. It seems to me that there are lots of other reasons why you might not get an SMS that have nothing to do with your CF client.

Re: XML POST with Coldfusion

2009-10-26 Thread Anene Isioma Wealth
i've done all these my brother. It works using GET METHOD, but now i want to use XML POST for it. Sincerely, Chuka I.W. Anene Chief Software Eng./CEO Quorium Solutions www.quorium.org 07029609185,07032696113 From: Dave Watts dwa...@figleaf.com To: cf-talk

Re: XML POST with Coldfusion

2009-10-26 Thread Dave Watts
want to use XML POST for it. So, you've confirmed that you can successfully send data via XML POST without using CF? Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC

Re: XML POST with Coldfusion

2009-10-26 Thread Anene Isioma Wealth
i said via HTTP GET. i havent been able to send via XML post. That is why we are having this discussion in the first place. Dont worry, the server has over 9000 clients, this means that their service works. Sincerely, Chuka I.W. Anene Chief Software Eng./CEO Quorium Solutions www.quorium.org

Re: XML POST with Coldfusion

2009-10-26 Thread Dominic Watson
using GET METHOD, but now i want to use XML POST for it. Sincerely, Chuka I.W. Anene Chief Software Eng./CEO Quorium Solutions www.quorium.org 07029609185,07032696113 From: Dave Watts dwa...@figleaf.com To: cf-talk cf-talk@houseoffusion.com Sent: Mon

Re: XML POST with Coldfusion

2009-10-26 Thread Dominic Watson
GET and POST are both HTTP methods. XML is not a protocol. You can however send xml as string data over either HTTP GET or POST. You will need to start providing some more information if anyone is to help you efficiently / at all; e.g. how have you successfully been using the service using GET

Re: XML POST with Coldfusion

2009-10-26 Thread Mike Kear
. Dave's advice is good advice - verify that if you send an XML packet without involving CF, that it will work.That will prove that their XML service is listening, and that you are authenticating correctly. Then create your CF code to produce the same XML that you send manually. As Dave said (and I

Re: XML POST with Coldfusion

2009-10-26 Thread Judah McAuley
Also find out how they are expecting the POST. You can send a field involving a name/value pair (like a name field in a form post) or you could have the xml be the entire body of the post. If it works via GET, then you might need to be sending the xml as the right field name. There is no way

Re: XML POST with Coldfusion

2009-10-26 Thread Dave Watts
i said via HTTP GET. i havent been able to send via XML post. That is why we are having this discussion in the first place. Dont worry, the server has over 9000 clients, this means that their service works. I think you missed my point. If you're not sure whether you're building your POST

Re: XML POST with Coldfusion

2009-10-26 Thread Dave Watts
There is no way (that I am aware of) to send data in the body of a get, it is all name/value pairs in the request string. This is correct, there's no request body at all with GET. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber

Re: XML POST with Coldfusion

2009-10-26 Thread Anene Isioma Wealth
cfhttp code: cfhttpparam type=body value=This is a URL variable /cfhttp this works perfectly. But i noticed that if i send to more that 100 numbers, the SMS is not delivered. Maybe something about amount of characters the address bar can hold. So, i was asked to submit via XML POST formatted

Re: XML POST with Coldfusion

2009-10-26 Thread Dave Watts
I'm reading this on my phone, so I could be wrong about this, but it appears to me that the PHP code you posted doesn't appear to create an XML document. Dave Watts, CTO, Fig Leaf Software On 2009-10-26, Anene Isioma Wealth anene.quor...@yahoo.com wrote: ok, let me be very explicit. I

Re: XML POST with Coldfusion

2009-10-26 Thread Ramon Ecung
I need someone to develop a coldfusion script that will communicate to a server/service using XML POST. Sorry if it's a silly question, but can you just do post's to their server in a loop? -Ramon Ecung II, BS, ACHDS, MCP

Re: XML POST with Coldfusion

2009-10-26 Thread Ramon Ecung
Sorry, I copy pasted the wrong line (the emai didnt send from my phone)... It actually looks like that PHP code just creates a curl (http post) message to their server. Sorry if it's a silly question, but can you just do post's to their server in a loop? -Ramon Ecung II, BS, ACHDS, MCP

java.lang.IndexOutOfBoundsException on XML Struct?

2009-10-22 Thread Matthew Reinbold
I'm currently parsing a number of xml files. In attempt to speed up processing I'm running each file in its own parse thread (may be relevant, I'm not sure). Inside of each I have a loop that is causing the error java.lang.IndexOutOfBoundsException

Re: java.lang.IndexOutOfBoundsException on XML Struct?

2009-10-22 Thread Leigh
How can that statement with 'i' be throwing a java.lang.IndexOutOfBoundsException when I just set 'i' to increment from 1 to the length of xmlChildren? Since you mentioned threads, are all of the variables properly scoped? Assuming the array has not changed, it sounds like you might be

re: java.lang.IndexOutOfBoundsException on XML Struct?

2009-10-22 Thread Jason Fisher
If stcXml.country.cities.xmlChildren is empty, then the first pass at index=1 would be invalid. Can you verify that the the XML has at least 1 cities child? ~| Want to reach the ColdFusion community with something

re: java.lang.IndexOutOfBoundsException on XML Struct?

2009-10-22 Thread Leigh
If stcXml.country.cities.xmlChildren is empty, then the first pass at index=1 would be invalid.  Can you verify that the the XML has at least 1 cities child? Duh! Good point ;-) -Leigh ~| Want to reach

Re: java.lang.IndexOutOfBoundsException on XML Struct?

2009-10-22 Thread Matthew Reinbold
If stcXml.country.cities.xmlChildren is empty, then the first pass at index=1 would be invalid. Can you verify that the the XML has at least 1 cities child? I do need to verify it, but if stcXml.country.cities.xmlChildren was empty wouldn't the cfloop be equivalent to: cfloop index=i from=1

Re: java.lang.IndexOutOfBoundsException on XML Struct?

2009-10-22 Thread Leigh
Did you add some debugging? What is the value of i and the array length XMLChildren when the error occurs? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

<    1   2   3   4   5   6   7   8   9   10   >