Guys;

XML has been tricky for me the last three weeks, trying to send an XML doc
form CF without knowing how to do it.
I finally downloaded the SDK for the site I was trying to send to and I
created my xml statement based on their
code that they wanted to see.  For instance

The company that I am sending and receiving from requires an XML file that
starts like this:
<!DOCTYPE pp.request PUBLIC "-//IMALL//DTD PUREPAYMENTS 1.0//EN"
"URL><pp.request merchant="1001" password="password" sdkversion="PERL" sdkt

I copied this file into my template and inserted my coldfusion fields where
necessary.  I know... this is too simple a solution, however I could get no
help from anywhere and was running out of time.

My code on my end is made up of several <CFSET statements.

<CFSET NewXML = "<!DOCTYPE pp.request PUBLIC ""-//IMALL//DTD PUREPAYMENTS
1.0//EN"" ""URL"">">
<CFSET NewXML = #NewXML#&"<pp.request merchant=""#merchant#"">">

etc etc

I am sure you get the drift.

If I am totally out in left field on helping to answer any dilemma then
please accept my deepest apology.

Hoping this helps
Larry Juncker

-----Original Message-----
From: cfserver [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 1:32 PM
To: CF-Server
Subject: RE: [OT] - HowTo for XML Requests? was: "RE: Problem with
<cfhttp>"


Wow - YAV (yet another variant) of trying to get this to work, and once
again:

-2147352567Failed to
SubmitMessaged:\Swap\BTOBiztalk\JSReceiveHTTP\JSReceiveHTTP.cpp360

how depressing... =(

So far, my best response from their servers has been the above message in
XML form...lol

=D
Thanks tho!!
George

-----Original Message-----
From: Ron Anderson [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 11:24 AM
To: CF-Server
Subject: RE: [OT] - HowTo for XML Requests? was: "RE: Problem with <cfhttp>"

Sure, here what it looks like:


<!--- Create COM object --_>
<cfobject type="COM" name="oXML" class="Microsoft.XMLHTTP" action="CREATE">

<!--- Prepare the XML --->
<cfscript>
  xmlrequest = "<?xml version='1.0'?>"
            & "#MyXMLRequest#"


  // Get the object ready for posting (tell it to where it will be posted)
  oXML.open("POST", #Server URL To Post#,false);
  // Send off the object
  oXML.send(xmlrequest);
</cfscript>



Cheers

-----Original Message-----
From: cfserver [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 4:17 AM
To: CF-Server
Subject: [OT] - HowTo for XML Requests? was: "RE: Problem with <cfhttp>"


Ah - just the person, er, thread, I was hoping to see.  ;P

I am [trying] to send out an XML request for a current client as well, and
really have no clue as to where to start...  I've tried using cfhttp as well
as MSXMLHTTP (at least, from what little I've been able to decipher on how),
but I'm coming up empty every time, with both methods...  Might you possibly
have some code snippets/samples of how to do this, or a good resource
("Sending XML Requests via CF for dummies, Abridged") that I might be able
to check out?  Anything at his point would be much appreciated!

TIA
George


-----Original Message-----
From: Ron Anderson [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 2:28 AM
To: CF-Server
Subject: FW: Problem with <cfhttp>

Hi Tom,

I encountered a similar problem when sending an XML request to a outside
server using CFHTTP. We're using CF4.5 SP2 on NT and I got the same error.
Couldn't get the problem solved using CFHTTP, so I switched to using the MS
XMLHTTP object and bang!...the problem was resolved.

Looks like a bug in CFHTTP, but I didn't take the time to address it with
Allaire.
Cheers

-----Original Message-----
From: Tom Espen Pedersen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 4:26 AM
To: CF-Server
Subject: Problem with <cfhttp>


We've encountered a problem on one of our customers servers.
We use <cfhttp> to grab a wddx packet from an outside the house server.
This has worked perfectly up until tuesday 19th.
The error we get is : Connection Failure

we suspected this to be a bug in CF 4.5 so we upgraded the server to 4.5.1
sp2.

Has anyone encountered errors like this ? and how did you solve them ?
A reinstall of CF server is the last thing we wanna do since they've got
alot of services running on that machine.

Sincirely
Tom Espen Pedersen
[EMAIL PROTECTED]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to