thanks for the recommendation.

john

-----Original Message-----
From: Joe Rinehart [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 04, 2004 9:23 AM
To: CF-Talk
Subject: Re: Help receiving XML


John,

You may want to look into using Web Services to take care of this -
it's a lot easier!

-joe


On Thu, 4 Nov 2004 09:00:31 -0500, John Stanley <[EMAIL PROTECTED]>
wrote:
> All,
>         I am hoping someone can help me out by transmitting the following
> xml to this url:
> http://216.141.242.9/app_ptm/ignoreapplicationcfm/integres_xml_feed.cfm
> using CF and hopefully someone out there knows asp and can do the same
using
> POST. We are working with a .NET shop in both transmitting and receiving
XML
> data. We have agreed to use post as the method. When they transmit to us,
> and I look at the method header from GetHttpRequestData, it is saying they
> are using GET. And when I look at the content header for the Get
> transmission, there is nothing there. In talking to them they say that our
> system is interpreting their posting to our site as GET, and that they
> cannot write their code to use form submissions. I don't know if .Net has
a
> similar feature to our CFHttp that just allows you to make http requests
> without using forms. I am kind of new to the whole handling receiving of
> http requests where you actually dissect the headers to get the info you
> need, so it's entirely possible that I am doing it improperly on my end.
> 
> At the end of this email I have included the code from the page that
> receives the requests. Am I limiting myself by using the canned CF
function
> GetHttpRequestData? If anyone has any suggestions on a better way to do
any
> of this, I am all ears.
> 
> When I test this locally, by using CFHTTP post and then looking at the
> header info using GetHttpRequestData, everything appears to work great. I
> receive the xml fine and am able to work with it.
> 
> ######## BEGIN SAMPLE XML ########
> <Transmission>
>                 <TransmissionHeader>
>
<TransmissionType>SHIPMENTSTATUS</TransmissionType>
>                         <VersionID>3.0</VersionID>
>                         <SenderID>001</SenderID>
>                         <ReceiverID>001</ReceiverID>
>                         <UserName>bhartigan</UserName>
>                         <Password>aaa</Password>
>
<TransmissionID>200411011110290001</TransmissionID>
>
<TransmissionDate>20041101111029</TransmissionDate>
>                         <ForeignSenderID>INTEGRES</ForeignSenderID>
>                         <ForeignReceiverID>INTEGRES</ForeignReceiverID>
>                 </TransmissionHeader>
>                 <ShipmentStatus>
> 
> <OriginalTrackingNumber>179155</OriginalTrackingNumber>
> 
> <OtherServiceInformation>179155</OtherServiceInformation>
>                         <ServiceProvider>RapidCourierFre</ServiceProvider>
>                         <HAWB>IGL00200646</HAWB>
>                         <MAWB>8386877</MAWB>
>                         <EventDate>20041029235900</EventDate>
>                         <PostalCode>32303</PostalCode>
>                         <CountryCode>USA</CountryCode>
>                         <StatusCode>IGLPUP</StatusCode>
>                         <EventShipUnitCount>3</EventShipUnitCount>
>                         <EventWeightCode>L</EventWeightCode>
>                         <EventWeight>3000</EventWeight>
>                         <EventWeightCode>K</EventWeightCode>
>
<ShipmentDescriptionCode>T</ShipmentDescriptionCode>
>                         <MAWBDetails>
>                                 <MAWB>8386877</MAWB>
> 
> <DepartureDate>20041029235900</DepartureDate>
> 
> <DepartureAirport>27822360</DepartureAirport>
>                                 <ArrivalDate>20041101120000</ArrivalDate>
>                                 <ArrivalAirport>MCO</ArrivalAirport>
>                                 <WeightCode>K</WeightCode>
>                                 <Weight>3000.0000</Weight>
>                                 <ShipUnitCount>3</ShipUnitCount>
>                         </MAWBDetails>
>                 </ShipmentStatus>
>         </Transmission>
> ###### END SAMPLE XML ########
> 
> ###### BEGIN PROCESSING PAGE######
> <cfset httpReq = GetHttpRequestData()>
> 
> <cfset write_string = chr(13) & chr(10) & chr(13) & chr(10) &
> dateformat(now(),"mm/dd/yyyy") &" "& timeformat(now(),"HH:mm:ss") &
chr(13)
> & chr(10) & httpReq.protocol & chr(13) & chr(10) & httpReq.method &
chr(13)
> & chr(10) & cgi.http_user_agent & chr(13) & chr(10) & cgi.remote_addr &
> chr(13) & chr(10) & httpReq.Content>
> <cffile action="append"
> file="c:\inetpub\wwwroot\aeronet\logs\integres_inbound.txt"
> output="#write_string#" addnewline="Yes">
> 
> <cftry>
>         <cfset xmlDoc = xmlparse(httpReq.content)>
>         <cfcatch type="Any">
>                 <xml>
>                         <error>
>                                 Transmission format not recognized, or
Error
> in XML format.
>                         </error>
>                 </xml>
>                 <cfabort>
>         </cfcatch>
> </cftry>
> 
> <xml>
>         <status>Transmission Successful</status>
> </xml>
> ######END PROCESSING PAGE#######
> 
> Thanks in advance,
> 
> John Stanley
> Web Application Developer
> Active Aero Group
> http://www.activeaero.com
> 734-547-7277
> 
> 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183362
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to