One thing you need to know about their service if you ever want to just use
the "address validation" feature that it is only available in production. I
banged my head against the wall over that only to find out that there is no
Dev/QA version of it. Doesn't look like you are using it but, just thought
I'd throw that out there just in case you do.

On Thu, Nov 27, 2008 at 9:27 AM, Kevin Hellriegel <[EMAIL PROTECTED]>wrote:

> Thanks for the responses guys.
>
> I think I got it. I changed the StreetLines, RequestedPackages to
> arrays and corrected my typo (DOH) and am now getting proper responses
> with cfinvoke. Now I need to parse out the response (which looks like
> a lot of fun). I'll make sure to use those articles when I start
> working on this after the Holiday. Thanks again for you help guys!
>
> Kevin
>
> On Wed, Nov 26, 2008 at 7:34 PM, Robert Lash <[EMAIL PROTECTED]> wrote:
> > Kevin
> > Here is thread on google groups that may help.
> >
> >
> http://groups.google.com/group/macromedia.coldfusion.getting_started/browse_thread/thread/8ade369d5310a7b1/99ec7f99720e3e20
> >
> > On Wed, Nov 26, 2008 at 2:27 PM, Charlie Arehart <[EMAIL PROTECTED]>
> > wrote:
> >>
> >> Kevin, going back to this issue from Friday, I'll note that there's an
> >> available example that uses the FedEx web services that works, at
> >>
> http://cfsearching.blogspot.com/2007/12/how-heck-do-you-use-fedex-rate-web.html
> >>
> >>
> >>
> >> I tried to compare his to yours to see what was different, but they
> >> differed in a few ways that may be important and I ran out of time. I'll
> >> leave this with you to consider. One thing I did notice was an error in
> the
> >> line:
> >>
> >>
> >>
> >> <cfset RateRequest.WebAuthentcationDetail = #WebAuthenticationDetail#>
> >>
> >>
> >>
> >> That typo in the left ("entcatio") should be:
> >>
> >>
> >>
> >> <cfset RateRequest.WebAuthenticationDetail = #WebAuthenticationDetail#>
> >>
> >>
> >>
> >> But that wasn't the answer.
> >>
> >>
> >>
> >> For those who may be curious about his having to copy the WSDL file
> >> locally and point to that, rather than point to it on the fedex server,
> >> that's fedex's decision. It's odd, but it does work if you put the WSDL
> >> local and point to it.
> >>
> >>
> >>
> >> /charlie
> >>
> >>
> >>
> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Lash
> >> Sent: Friday, November 21, 2008 12:35 PM
> >> To: [email protected]
> >> Subject: Re: [ACFUG Discuss] Fedex Webservices
> >>
> >>
> >>
> >> Kevin
> >> I have used the FEDEX API on two ecommerce sites for several years now.
> >> I will be out of town until after Thanksgiving, but would be happy to
> help
> >> out when I return.
> >>
> >> I can tell you that the API does expect xml and returns xml.
> >> I have a bound copy of the API that you are welcome to if needed as the
> >> online version can be overwhelming.
> >> If you don't find your answers be sure to contact me and I will gladly
> >> help.
> >>
> >> Robert Lash
> >>
> >> On Fri, Nov 21, 2008 at 11:14 AM, Kevin Hellriegel <[EMAIL PROTECTED]>
> >> wrote:
> >>
> >> I'm trying to use Fedex's rating webservices (v5) with CF8. I've only
> used
> >> webservices that I have created before, so this is a little new to me.
> I've
> >> tried using cfinvoke and createObject("webservice"). I've sent across
> >> structures and straight xml as well. None of those worked. I always get
> the
> >> "Web service operation getRates with parameters { <lots of stuff> }
> cannot
> >> be found." The only way I've been able to get something to work is using
> >> cfhttp to POST the XML I've generated from Web Services Explorer in
> Eclipse.
> >> I'm posting that data to the ServicePort address from the wsdl. I'm
> curious
> >> to see if anyone else has dealt with Fedex's webservices before and what
> >> solutions they came up with. I'm probably doing something wrong, here is
> the
> >> way I thought it would work:
> >>
> >> <cfset WebAuthenticationDetail = structnew()>
> >> <cfset WebAuthenticationDetail.UserCredential.Key = "#my_key#">
> >> <cfset WebAuthenticationDetail.UserCredential.Password =
> "#my_password#">
> >>
> >> <cfset ClientDetail = structnew()>
> >> <cfset ClientDetail.AccountNumber = "#my_accountnumber#">
> >> <cfset ClientDetail.MeterNumber = "#my_meternumber#">
> >>
> >> <cfset TransactionDetail = structnew()>
> >> <cfset TransactionDetail.CustomerTransactionId = "My Test">
> >>
> >> <cfset VersionId = structnew()>
> >> <cfset VersionId.ServiceId = "crs">
> >> <cfset VersionId.Major = 5>
> >> <cfset VersionId.Intermediate = 0>
> >> <cfset VersionId.Minor = 0>
> >>
> >> <cfset RequestedShipment = structnew()>
> >>
> >> <cfset RequestedShipment.Shipper.Address.StreetLines = "1915 Vaughn Rd">
> >> <cfset RequestedShipment.Shipper.Address.City = "Kennesaw">
> >> <cfset RequestedShipment.Shipper.Address.StateOrProvinceCode = "GA">
> >> <cfset RequestedShipment.Shipper.Address.PostalCode = "30144">
> >> <cfset RequestedShipment.Shipper.Address.CountryCode = "US">
> >>
> >> <cfset RequestedShipment.Recipient.Address.StreetLines = "123 North St">
> >> <cfset RequestedShipment.Recipient.Address.City = "Kennesaw">
> >> <cfset RequestedShipment.Recipient.Address.StateOrProvinceCode = "GA">
> >> <cfset RequestedShipment.Recipient.Address.PostalCode = "30144">
> >> <cfset RequestedShipment.Recipient.Address.CountryCode = "US">
> >>
> >> <cfset RequestedShipment.PackageDetail = "INDIVIDUAL_PACKAGES">
> >>
> >> <cfset RequestedShipment.RequestedPackages.Weight.Value = 2>
> >> <cfset RequestedShipment.RequestedPackages.Weight.Units = 'LB'>
> >>
> >> <cfset RateRequest = structNew()>
> >> <cfset RateRequest.WebAuthentcationDetail = #WebAuthenticationDetail#>
> >> <cfset RateRequest.ClientDetail = #ClientDetail#>
> >> <cfset RateRequest.Version = #VersionId#>
> >> <cfset RateRequest.RequestedShipment = #RequestedShipment#>
> >>
> >> <cfinvoke webservice="http://localhost:8500/fedex/RateService_v5.wsdl";
> >>     method="getRates"
> >>     returnvariable="theResults">
> >>     <cfinvokeargument name="RateRequest" value="#RateRequest#" />
> >> </cfinvoke>
> >>
> >> That is the same info that is in the XML data I sent with the cfhttp
> POST.
> >>
> >> Thanks,
> >> Kevin
> >>
> >> -------------------------------------------------------------
> >> To unsubscribe from this list, manage your profile @
> >> http://www.acfug.org?fa=login.edituserform
> >>
> >> For more info, see http://www.acfug.org/mailinglists
> >> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> >> List hosted by FusionLink
> >> -------------------------------------------------------------
> >>
> >> -------------------------------------------------------------
> >> To unsubscribe from this list, manage your profile @
> >> http://www.acfug.org?fa=login.edituserform
> >>
> >> For more info, see http://www.acfug.org/mailinglists
> >> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> >> List hosted by FusionLink
> >> -------------------------------------------------------------
> >>
> >> -------------------------------------------------------------
> >> To unsubscribe from this list, manage your profile @
> >> http://www.acfug.org?fa=login.edituserform
> >>
> >> For more info, see http://www.acfug.org/mailinglists
> >> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> >> List hosted by FusionLink
> >> -------------------------------------------------------------
> >
> > -------------------------------------------------------------
> > To unsubscribe from this list, manage your profile @
> > http://www.acfug.org?fa=login.edituserform
> >
> > For more info, see http://www.acfug.org/mailinglists
> > Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> > List hosted by FusionLink
> > -------------------------------------------------------------
>
>
> -------------------------------------------------------------
> To unsubscribe from this list, manage your profile @
> http://www.acfug.org?fa=login.edituserform
>
> For more info, see http://www.acfug.org/mailinglists
> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> List hosted by http://www.fusionlink.com
> -------------------------------------------------------------
>
>
>
>


-- 
Steve Ross
web application & interface developer
http://blog.stevensross.com
[mobile] (912) 344-8113 [fax] (404) 592-6885
[ AIM / Yahoo! : zeriumsteven ] [googleTalk : nowhiding ]



-------------------------------------------------------------
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------

Reply via email to