[ic] Fedex Shipping Woes - Seeking Consultant

cfm at maine.com cfm at maine.com
Wed Aug 6 22:07:23 EDT 2003


On Wed, Aug 06, 2003 at 08:29:53PM -0400, Edward Maas wrote:
> Hey all,
> 
> 	I've been trying to get shipping calculation working for 
> 	interchange.  As part of the testing, we ran this test script.  
> 	There is no output.  Does anyone know of anything that might resolve 
> 	this issue?  We are using the latest version of Interchange (4.8.7) 
> 	with mysql.
> 
> 	Also my boss is looking for an interchange consultant with expertise 
> 	in shipping tables in interchange.  If anyone is interested please 
> 	contact him directly.  His email is raj at brainlink.com or via phone 
> 	at (917) 685-7731.  
> 	Thanks all for you help.  The code and output are included below.  
> 

There is no reason to run shipping calcs over the net to fedex site
except it seems kool.  If you run any reasonable volume, have them
get you a powership machine or use your own local tables.



> Ed
> ----------------
> code
> ----------------
> #!/usr/bin/perl
> 
> require Business::Fedex;
> my $fedex = new Business::Fedex (
> orig_country => 'US', # ISO code
> orig_zip => '90095',
> dest_country => 'US',
> dest_zip => '94402',
> );
> $fedex->packaging('Envelope'); # FedEx Enveloppe, not yours
> $fedex->getrate; # dies on error
> 
> # many services might be available
>         print "Service\tDelay\tDropoff\tOther\tTotal\n";
>         foreach ($fedex->services) {
>               # a hash ref object
>               print join("\t", $_->{service},  $_->{delay}, $_->{dropoff}, 
>               $_->{other}, $_->{total}), "\n";
>         }
>         print "\nCheapest:\n";
>         $_ = $fedex->cheapest;
>         print join("\t", $_->{service},  $_->{delay}, $_->{dropoff}, 
>         $_->{other}, $_->{total}), "\n";
> 
>         print "\nOtherDetails:\n";
>         my %d = $fedex->other_details;
>         foreach (keys %d) {
>                print "$_: $d{$_}\n";
>         }
> 
> exit;
> 
> ----------------
> OUTPUT:
> ----------------
> ./test.pl
> Business::Fedex requesting POST 
> http://www.fedex.com/servlet/RateFinderServlet
> Content-Length: 260
> Content-Type: application/x-www-form-urlencoded
> 
> weight_units=lbs&orig_zip=90095&dropoff_type=4&hold_packaging=&packaging=6&dest_zip=94402&weight=&company_type=Express&dest_country_val=U.S.A.&portal=xx&heavy_weight=NO&packet_zip=&language=english&account=&jsp_name=index&orig_country=US&submit_button=Get+Rate
> ...
> Service Delay   Dropoff Other   Total
> 
> Cheapest:
> 
> 
> OtherDetails:
> 
> 
> _______________________________________________
> interchange-users mailing list
> interchange-users at icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
> 

-- 

Christopher F. Miller, Publisher                               cfm at maine.com
MaineStreet Communications, Inc           208 Portland Road, Gray, ME  04039
1.207.657.5078                                         http://www.maine.com/
Content/site management, online commerce, internet integration, Debian linux


More information about the interchange-users mailing list