I'm looking for an "easy" solution to getting UPS shipping rates realtime. There are two CPAN modules for this. Business::UPS uses the 2000 tables, which are no longer accurate or updated, and which do not allow shipping from a country other than the US or Puerto Rico.

Business::Shipping looks more promising, but has about 50 dependency modules, and since I have to use LWP through a proxy, I'd have to get in and understand it anyway.

I presume that for the simple rate lookup that I want (always shipping from one location, to various locations), there should be an easier way than the dependency installation route (which has already wasted hours of my time, since each dependency needs another, and so on, and I haven't got the CPAN module working with this proxy -- also many of the modules require a later version of Perl than I have on this server, so I have to massage the source a bit to get them to install.). Has anyone seen simple code to access the XML rate feed? If not, I guess I'll have to reinvent the wheel...


In reply to UPS Shipping rates by mpolo

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.