All,
        I have been tasked with connecting to another companies
"webservices", and then doing some data manipluations on our end. I can
successfully connect by creating a form with their url as the action and
passing through the correct variables. In return I get an XML document.

I can successfully parse an xml document that I ALREADY have, using CF to
get to the data I need, but I cannot figuire out how to do anything with the
xml JUST sent to me. I think I need to be using CFHTTP, but am not sure
about this. Has anyone done this? 

So, I have the following HTML:

        <form name="test" method="post"
action="http://client.something.com/TESTOpenShipments/OpenShipments.dll/Open
Shipments">
                <input type="hidden" name="CarrierID" value="15">
                <input type="hidden" name="CarrierPassword"
value="password">
                <input type="hidden" name="LastServerTime">
                <input type="submit" value="Get Open Shipments">
        </form> 

This returns something like this:
        <?xml version="1.0" standalone="yes" ?>
        <OPENSHIPMENTS>
            <SERVERTIME>01/08/2002 10:00:40:430</SERVERTIME>
            <CARRIERID>????</CARRIERID>
        <SHIPMENT>
            <NLMSHIPMENTNUMBER>9656141</NLMSHIPMENTNUMBER>
            <ACCID>123456789</ACCID>
            <ACCOUNT>FORD MOTOR</ACCOUNT>
            <TIMEOUTDATETIME>12/17/2001 11:48:13</TIMEOUTDATETIME>
            <HAZMAT>NO</HAZMAT>
            <HAZMATCODE></HAZMATCODE>
            <HAZMATUN></HAZMATUN>
            <HAZMATCLASS></HAZMATCLASS>
            <CSASHIPMENT>NO</CSASHIPMENT>      
            <CRITICAL>YES</CRITICAL>
            <ASAP>NO</ASAP>
            <READY>12/17/2001 11:24:000</READY>
        </SHIPMENT>


I am assuming that because I have to parse the data WHEN it is sent to me,
then I need to use CFHTTP.
I have tried to resolve this page using cfhttp as in:
<cfhttp
url="http://client.something.com/TESTOpenShipments/OpenShipments.dll/OpenShi
pments" method="POST" resolveurl="false" proxyserver="192.168.36.999"
proxyport="80">
        <cfhttpparam type="formfield" name="CarrierID" value="15">
        <cfhttpparam type="formfield" name="CarrierPassword"
value="password">
        <cfhttpparam type="formfield" name="LastServerTime" value="">
</cfhttp>

<cfoutput>
        file content: <br> #cfhttp.filecontent#
</cfoutput>

But I keep getting the following error:
file content: 
Connection Failure 
I dont know if this is because of proxy server settings. 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Get the mailserver that powers this list at 
http://www.coolfusion.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to