On Fri, Jun 26, 2009 at 3:00 PM, Chad Gray <cg...@careyweb.com> wrote:
> > Well the only way I have found to communicate with the FedEx rate service > is to HTTP post XML to it. It returns the following XML below. > > How do I grab the data I need out of it? > > Say I want to grab the XmlText of <v6:Severity>... how do I get the word > "SUCCESS"? > > If your cfhttp.FileContent variable with this xml is called reply as example it would be as such. <cfset reply = XMLParse(trim(cfhttp.FileContent)> <cfset IsSuccess = reply["v6:RateReply"]["v6:Notifications"]["v6Severity"]["XMLText"]> > > > <?xml version="1.0" encoding="UTF-8"?> > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ > "> > <soapenv:Header xmlns:xsi=" > http://www.w3.org/2001/XMLSchema-instance"/> > <soapenv:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance > "> > <v6:RateReply xmlns:v6="http://fedex.com/ws/rate/v6"> > <v6:HighestSeverity>SUCCESS</v6:HighestSeverity> > <v6:Notifications> > <v6:Severity>SUCCESS</v6:Severity> > <v6:Source>crs</v6:Source> > <v6:Code>0</v6:Code> > <v6:Message>Request was successfully > processed.</v6:Message> > <v6:LocalizedMessage>Request was > successfully processed.</v6:LocalizedMessage> > </v6:Notifications> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323998 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4