I am trying to use coldfusion to POST to a webservice using XML but keep getting 404 error's. The webserice is from a large image processing company and they work with many different companies. They have no one in their technical department that knows coldfusion so they cannot help me with sample code etc.
What I am trying to do is POST an XML header and text to their webserice using cfhttp command. Everything tells me it should be working but it keeps failing by returning the 404 error. It should return XML with a 0 for everything ok or an error number for various types of problems within the XML itself.
Here is my code. Can someone tell me what I am doing wrong? I am using MX 7 running on a MS IIS server.
I try to kick it off by opening my browser and going to this page on our webserver which has coldfusion MX 7 running.
<cfset XMLcont ='
<?xml version="1.0" encoding="UTF-8"?>
<Body>My custom message goes here.</Body>
<Parameter Name="EditLink" Value="http://forms.pressofatlanticcity.com/IPIX/submit_photos.cfm
<Parameter Name="Photocode" Value="1234XLW"/>
<cfset XMLdoc ='
POST /rimfire/admission HTTP/1.1
User-Agent: My Application Name
<cfset XMLdoc = XMLdoc & len(XMLcont) & XMLcont>
<cfhttp method="post" url="http://webservices-preprod.ipixmedia.com/rimfire/admission
<cfhttpparam type="header" name="Content-Type" value="text/xml" />
<cfhttpparam type="xml" name="xmlDoc" value="#XMLdoc#"/>
Mime Type: #cfhttp.MimeType#<br>
The above code should trigger thier webservice to send an email out to the email address listed in the XML above.
Thanks for looking,