We tried the fedex support line. They are getting an invalid date warning
(not an error).

I have also tried using javacast() or objNonNegInteger() for sending some
package data like package count, height, length etc.

I have looked at the blog you mentioned below. I am using rate services as
described there and it works just fine. It's this ship service which is
throwing an error. In this blog for rate service,  the shiptimestamp is
being sent as now().
Shiptimestamp is a required field in ship services but for rate services
it's optional so rate services may just be ignoring it.

On Thu, Dec 3, 2009 at 8:58 AM, Chad Gray <[email protected]> wrote:

>
> Are there any integers that you need to use javacast() or
> objNonNegInteger()?
>
> Like on my code to get shipping rates I needed javacast and
> objNonNegInteger on this line:
>
> <cfset data.requestedShipment.packageCount =
> objNonNegInteger.init("#JavaCast("string",
> listLen(attributes.PkgWeights))#")>
>
> There is a good blog post on using the WSDL locally instead of using
> CFInvoke that got me going in the right direction:
>
> http://cfsearching.blogspot.com/2007/12/how-heck-do-you-use-fedex-rate-web.html
>
> You may also try calling the fedex web service support line. They can look
> at your request as it happens and possibly tell you what part is erroring.
>
> Chad
>
>
> > -----Original Message-----
> > From: deepa makkar [mailto:[email protected]]
> > Sent: Wednesday, December 02, 2009 6:05 PM
> > To: cf-talk
> > Subject: Error consuming Fedex webservices
> >
> >
> > I am trying to use fedex call tag webservice and getting the below error
> >
> > Cannot perform web service invocation processTag.
> > The fault returned when invoking the web service operation is:
> >
> > AxisFault
> >  faultCode:
> > {http://schemas.xmlsoap.org/soap/envelope/}Server.userException<http://schemas.xmlsoap.org/soap/envelope/%7DServer.userException>
> >  faultSubcode:
> >  faultString: java.lang.NumberFormatException: Invalid positiveInteger:
>  0
> >
> >
> > Here's the code:
> >
> > <cfset tagData = structNew()>
> >
> > <cfset tagData.ClientDetail.AccountNumber = "510087020" />
> > <cfset tagData.ClientDetail.MeterNumber = "118504430" />
> > <cfset tagData.WebAuthenticationDetail.UserCredential.Key =
> > "BBLg2iSxO5sc9i6k" />
> > <cfset tagData.WebAuthenticationDetail.UserCredential.Password =
> > "JCJQV9CU0qIrvwrS52haPKXDK" />
> >
> > <cfset tagData.Version.serviceId = "ship" />
> > <cfset tagData.Version.major = "7" />
> > <cfset tagData.Version.intermediate =  "0" />
> > <cfset tagData.Version.minor =  "0" />
> >
> > <cfset tagData.RequestedShipment.PackagingType = "YOUR_PACKAGING" />
> > <cfset tagData.RequestedShipment.DropoffType = "REGULAR_PICKUP" />
> > <cfset tagData.RequestedShipment.ServiceType = "FEDEX_GROUND" />
> > <cfset tagData.RequestedShipment.ShipTimestamp = CreateDateTime(2009, 12,
> > 3,8, 0, 0)>
> >
> > <cfset shipper.Contact.PersonName = "Joe Customer">
> > <cfset shipper.Contact.PhoneNumber = "3305551234">
> >
> > <cfset streetArray = arrayNew(1) />
> > <cfset arrayAppend(streetArray, "1234 Limbo Street")>
> > <cfset arrayAppend(streetArray, "Suite 200")>
> > <cfset shipper.Address.StreetLines = streetArray>
> > <cfset shipper.Address.City = "Akron">
> > <cfset shipper.Address.StateOrProvinceCode = "OH">
> > <cfset shipper.Address.PostalCode = "44333">
> > <cfset shipper.Address.CountryCode = "US">
> > <cfset tagData.RequestedShipment.Shipper = shipper>
> >
> > <cfset streetArray = arrayNew(1)>
> > <cfset recipient.Contact.PersonName = "John Doe">
> > <cfset recipient.Contact.PhoneNumber = "9015551234">
> > <cfset recipient.Contact.CompanyName = "FedEx">
> > <cfset arrayAppend(streetArray, "3610 Hacks Cross Road")>
> > <cfset arrayAppend(streetArray, "First Floor")>
> > <cfset recipient.Address.StreetLines = streetArray>
> > <cfset recipient.Address.City = "Memphis">
> > <cfset recipient.Address.StateOrProvinceCode = "TN">
> > <cfset recipient.Address.PostalCode = "38125">
> > <cfset recipient.Address.CountryCode = "US">
> > <cfset tagData.RequestedShipment.Recipient = recipient>
> >
> >
> > <cfset tagData.RequestedShipment.PackageDetail = "INDIVIDUAL_PACKAGES">
> >
> > <cfset packagesArray = ArrayNew(1)>
> > <cfset newPackage = structNew()>
> > <cfset newPackage.Dimensions.Units = "IN">
> > <cfset newPackage.Weight.Value = "10.0">
> > <cfset newPackage.Weight.Units = "LB">
> > <cfset newPackage.ItemDescription = "Advantage Returns">
> > <cfset newPackage.InsuredValue.Amount = "10.00">
> > <cfset newPackage.InsuredValue.Currency = "USD">
> > <cfset arrayAppend(packagesArray, newPackage)>
> > <cfset tagData.RequestedShipment.RequestedPackageLineItems =
> > packagesArray>
> >
> > <cfset Payment.PaymentType = "SENDER">
> > <cfset tagData.RequestedShipment.ShippingChargesPayment = Payment>
> > <cfset
> > tagData.RequestedShipment.ShippingChargesPayment.Payor.AccountNumber =
> > "510087020">
> > <cfset tagData.RequestedShipment.ShippingChargesPayment.Payor.CountryCode
> > = "US">
> > <cfset tagData.RequestedShipment.LabelSpecification.LabelFormatType =
> > "COMMON2D">
> >
> > <cfset RateRequestTypeArray = arrayNew(1)>
> > <cfset arrayAppend(RateRequestTypeArray, "ACCOUNT")>
> > <cfset tagData.RequestedShipment.RateRequestTypes = RateRequestTypeArray>
> >
> > <cfset tagData.RequestedShipment.PickupDetail.ReadyDateTime =
> > CreateDateTime(2009, 12, 3,8, 0, 0)>
> > <cfset tagData.RequestedShipment.PickupDetail.LatestPickupDateTime =
> > CreateDateTime(2009, 12, 3,11, 0, 0)>
> > <cfset tagData.RequestedShipment.PickupDetail.CourierInstructions =
> > "Testing">
> > <cfset tagData.RequestedShipment.PickupDetail.RequestType = "SAME_DAY">
> > <cfset tagData.RequestedShipment.PickupDetail.RequestSource =
> > "AUTOMATION">
> >
> > <cfset
> >
> tagData.RequestedShipment.SpecialServicesRequested.ReturnShipmentDetail.Rm
> > a.Number = "3541056465">
> > <cfset
> >
> tagData.RequestedShipment.SpecialServicesRequested.ReturnShipmentDetail.Rm
> > a.Reason = "abc">
> >
> > <cfset
> >
> tagData.RequestedShipment.SpecialServicesRequested.ReturnShipmentDetail.Re
> > turnType = "FEDEX_TAG">
> >
> > <cfset serviceTypes[1] = "RETURN_SHIPMENT">
> > <cfset
> > tagData.RequestedShipment.SpecialServicesRequested.SpecialServiceTypes =
> > serviceTypes>
> >
> > <cfdump var="#tagData#">
> > <cfinvoke webservice="shipService"
> >                method="processTag"
> >                returnvariable="shipReply"
> >                proxyserver="http-proxy.pitts.bayer.com"
> >                proxyport="80"
> >                proxyuser="SHA-BayerDVM"
> >                proxypassword="zseCFT63">
> >        <cfinvokeargument name="ProcessTagRequest" value="#tagData#"/>
> > </cfinvoke>
> >
> > <cfdump var="#shipReply#">
> > <cfoutput><h1>Response: Highest Severity =
> > #shipReply.getHighestSeverity().readResolve()#</h1>
> > #shipreply.getNotifications(0).getMessage()#</cfoutput>
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:328795
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to