Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML on MX 1

Status
Not open for further replies.

r0nke

MIS
Jul 17, 2003
60
0
0
US
I am at my wits end with this xml, if you have a second to spare, please help.

I have to post some data to another server, via http post and get a response back.

This is what I have:


<cfxml variable="EfxReceive">
<EfxReceive>
<EfxRequest requestNumber="1245">
<TransactionCode>ORDER</TransactionCode>
<Subject>
<CustomerReferenceNumber>12345</CustomerReferenceNumber>
<SubjectSSN>123456789</SubjectSSN>
<SubjectName>
<FirstName>John</FirstName>
<LastName>Doe</LastName>
</SubjectName>
</Subject>
</EfxRequest>
</EfxReceive>
</CFXML>



<cfset XMLText=ToString(EfxReceive)>
<!--- http post to testing server --->
<cfhttp method="post" url=" password="password" username="username">
<cfhttpparam name="MessageToSM" type="FORMFIELD" value="#XMLText#">
</cfhttp>

<cfset xReg = ToString(cfhttp.filecontent)>
<cfoutput>#xReg#</cfoutput>
<cfabort>


<cfoutput>#xReg#</cfoutput> keeps returning "connection failure"

But when I use a browser to connect to the url, it connects fine.

Any help would be great.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top