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
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