ASP Script for UPS Rates

Having problem clearing a parse error 4 from the rate.asp file for IP phone services. Has anyone been able to get the script to fully function. I checked the url link and it goes to the site correctly. Any help would be appreciated.

Marie
Think you are going to have to make your map with hotspots.
Then give each
link to the display page a parameter relating to the ID of
the relevant
state in your database. Then in the display page, filter the
recordset by
the state ID.
Brendan
Rate your experiences with your UK and Ireland builders at
http://www.ratethebuilder.co.uk
=========================================
"Marie" <[email protected]> wrote in message
news:e3no74$q03$[email protected]..
> I'd like to incorporate a US map, such that if someone
clicks on an area,
it
> will link to a list of
> companies in that geographic area. There must be
something readily
> available. I realize I'm just looking for a clickable
image map - but I'm
> also looking to save time.
>
> Many thanks!
> Marie
>
>

Similar Messages

  • Asp or perl script for IIS

    does anyone have a asp or perl script for use on an iis server they can share? I am not worried about pulling creds from any place at this point, just a hard coded user....admin for now thanks.

    Guys,
    I am not the ASP expert ... but isn't it true that in the .NET common runtime that VB.Script and C# are very similar? ... barring language semantics, of course. If so, couldn't you take C# code and turn it into VB.Script? ... or even use C# code outright within ASP?
    The reason I ask is because this thread:
    http://discussions.apple.com/thread.jspa?messageID=2710342&#2710342
    contains a C# example of a transfer CGI suitable for an IIS server ... or, at the very least, it shows an approach to creating one.
    MacBook Pro   Mac OS X (10.4.8)   I lied. I'm running Leopard

  • Best / most popular software or scripts for adding search function to website?

    I'm trying to find a good piece of software or script for implementing a site search function into our website.  I am relatively knowledgeable in Dreamweaver and can write CSS and XHTML at the fairly intermediate to advanced level, as well as work with JavaScript and js files, but I don't really know much ASP or "by hand" Java coding.  Their are so many scripts and software out there for adding a site search that it's hard to sort through and narrow down.  I was hoping to find reviews of the popular ones or "top 10 lists" of some sort that would help me pinpoint a good one, but can't find anything like that.  These are the primary needs of the website:
    --Has under 50 searchable pages that won't change much and probably won't exceed 50. There are product part numbers and descriptions for some 250-300 part numbers, spread across only 24 of those pages.  The remaining pages are important but no part numbers-- About Us, News, Where to Buy, History, Featured Products, etc.  The product pages are very much like an online store but we don't sell directly on the site (only thru distributors/reps).
    --We are trying to keep the price under about $50, or use a free solution
    --The pages are all static XHTML+CSS pages, but our server can run ASP (we have another website for one of our other product line divisions, on the same server, with many more products beyond 1000, which was programmed completely in ASP by an outside company about 4 years ago).  We self-host both sites.
    --Our server can't run PHP
    --The search capabilities need only be rather basic-- a keyword search with a results page that uses the same design template as the rest of the site.  It would be nice, but not mandatory, to have a search filter and/or a drop down menu to enable selectively searching only certain parts of the site, or only product/part number search vs. general search, etc. (but again, not mandatory).
    --I do have a sitemap page already on it, if that matters or helps
    Some of the ones I've found so far that looked the most promising include:  Zoom Search Engine (http://www.wrensoft.com/zoom/), Site Search Pro (http://www.site-search-pro.com/), and FX Site Search which is a DW Extension I found in the exchange (http://www.felixone.it/extensions/prod/mxssen.asp)-- (that one looks possibly technically challenging or requiring more ASP skill, though)
    Forgive me if there is a better area to post this, if so let me know.

    For a static site, your options are:
    Google ~  http://www.google.com/sitesearch/
    Freefind ~ http://www.freefind.com/
    Zoom from Wrensoft ~ http://www.wrensoft.com/zoom/
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/

  • Errors when trying to INSERT Dreamweaver CS3 ASP scripts into MySql

    Greetings everyone,
    I am hoping that someone can shed some light on an issue I have not been able to solve in the last few days. I have a website that I had built using Ultradev, then MX then CS3, using the default ASP scripts in dreamweaver and an odbc connection to an Access Database. Everything had been working fine for the last couple of years until recently where more people were visiting my site which resulted in the slowness because i was using access. I decided to move to a MySql database and that is when I ran into issues. I was able to solve most everything accept for one issue I am having. I was hoping it would be an easy transition by changing the ODBC connections but it has not been that easy. Any page I have with an INSERT command using the default Dreamweaver CS3 ASP script results in an error. Now I can query and delete and search with no problem...it is just the INSERT that is giving me issues. Here is just a general insertion script that CS3 does by default....
    <%
    If (CStr(Request("MM_insert")) = "form1")Then
    If (Not MM_abortEdit) Then
    ' execute the insert
    Dim MM_editCmd
    Set MM_editCmd = Server.CreateObject ("ADODB.Command")
    MM_editCmd.ActiveConnection = MM_adsdata_STRING
    MM_editCmd.CommandText = "INSERT INTO commenthot (yeshot, userhot) VALUES (?, ?)"
    MM_editCmd.Prepared = true
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 2, 3, Request.Form("yeshotf")) ' adVarWChar
    MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 3, 30, Request.Form("useridf")) ' adVarWChar
    MM_editCmd.Execute
    MM_editCmd.ActiveConnection.Close
    End If
    End If
    %>
    When I click to submit...the error i run into is...
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [MySQL][ODBC 3.51 Driver][mysqld-5.0.67-community-nt-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' mel)' at line 1
    /fr/members/sexyoupasvote.asp, line 28
    ....Line 28 is the MM_editCmd.Execute. I notice if I put a single quotes around the ? next the the VALUE like this ('?', '?')...it does go through and the ? shows up in both fields as the data.
    ....If i put a single back quote around the column names like this (`yeshot`, `userhot`) VALUES (?, ?) I get this error and nothing gets inserted into the MySql.
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [MySQL][ODBC 3.51 Driver][mysqld-5.0.67-community-nt-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' mel)' at line 1
    /fr/members/sexyoupasvote.asp, line 28
    ...by seeing 'mel)' show up, I know it is at least passing the data to that field.
    ....when I do (`yeshot`, `userhot`) VALUES ('?', '?')...
    it goes through and inserts ? ...instead of the real data I want to use...in this case ...the number 1 and Mel.
    ...if I do (yeshot, userhot) VALUES (?, '?')...
    I get this error...
    Microsoft OLE DB Provider for ODBC Drivers error '80040e21'
    Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.
    /fr/members/sexyoupasvote.asp, line 28
    ....any idea what to modify to make it insert the corect data? Has anyone experienced this? If I can get this fixed with just this page I can probablly fix the other pages that have teh same issue.  Is there a special setting on the MySql that I should know about to allow data to be inserted? Any help would GREATLY appreciated!
    Thank you!

    Thanks for your reply!
    When it was in Access...the datatype was Text. I used a 3rd party software to convert Assess directly to my hosting MySql server. When I logged in to see the table in MySql, it is set to Varchar(3) for yeshot and Varchar(30) for userhot. There is also an extra field I used for the KEY called commentID which is set to int(11) and it is autonumbered. Under the Collation i have utf8_general_ci set on the yeshot and userhot field. Null is No on both and the Default is set to None and all 3 fields.
    I have a form I am collecting that data from which is:
    <% If (langname.Fields.Item("langname").Value)="FR" Then
             response.write("OUI!")
             else
             response.write("YES!")
             End if %>
    <input name="yeshotf" type="radio" id="yeshotf" value="1" checked>                           
                                <span class="style10">
                                <input name="submit" type="submit" id="submit" value="VOTE!">
                                </span> -
    <input name="yeshotf" type="radio" id="yeshotf" value="2">
                                <% If (langname.Fields.Item("langname").Value)="FR" Then
             response.write("NON!")
             else
             response.write("NO!")
             End if %>
                                <input name="useridf" type="hidden" id="useridf" value="<%=(hotornot.Fields.Item("membername").Value)%>">
                                <input type="hidden" name="MM_insert" value="form1">
                              <input type="hidden" name="hdwfail" id="hdwfail" value="sexyoupasvote.asp?langname=<%=(langname.Fields.Item("langname").Value)%>&membernam e=<%=(hotornot.Fields.Item("membername").Value)%>&hdwmsg=invalid">
    </form>
    ....the form has 2 radio button and 1 hidden field where I collect the username. The radio value should either be a 1 or a 2 depending on the selection by the user. I also have a captha on the form but that does not seem the cause any problem since I am not collecting any data from it. Does this help? I left the yeshot field as Text but I can change that to Numeric data... again thanks for your assistance in helping me try to figure this out.
    ...The message I am getting now is:
    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [MySQL][ODBC 3.51 Driver][mysqld-5.0.67-community-nt-log]Unknown column 'Babe1' in 'field list'
    /fr/members/sexyoupasvote.asp, line 28
    ....with this setting:
    <%
    If (CStr(Request("MM_insert")) = "form1") Then
      If (Not MM_abortEdit) Then
        ' execute the insert
        Dim MM_editCmd
        Set MM_editCmd = Server.CreateObject ("ADODB.Command")
        MM_editCmd.ActiveConnection = MM_adsdata_STRING
        MM_editCmd.CommandText = "INSERT INTO dsnrenms.commenthot (yeshot, userhot) VALUES (?, ?)"
        MM_editCmd.Prepared = true
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param1", 202, 1, 3, Request.Form("yeshotf")) ' adVarWChar
        MM_editCmd.Parameters.Append MM_editCmd.CreateParameter("param2", 202, 1, 30, Request.Form("useridf")) ' adVarWChar
        MM_editCmd.Execute
        MM_editCmd.ActiveConnection.Close
      End If
    End If
    %>

  • Shell script for DB

    Hi,
    I have written shell script for below scenarios, can you please guide me to write this as correct way, requirment is,
    1. i need to connect the database which is on unix server , but before connecting the DB some of the files needs to be removed from \tmp directory.
    2. once removed the script need to connect the database and call the sql file which is in \tmp directory.
    3. the output files will be stored in \tmp directory start with DB name.
    4. finally csv files needs to be transferred to local windows with help of FTP. please find below the script
    #!/bin/sh
    rm -f /tmp/dbmon/DB1*
    CONNSTRING=username/PASSWORD@service
    sqlplus -s $CONNSTRING @/tmp/STATS.sql << EOF
    EXIT;
    EOF
    HOST='xxxxx'
    USER='xxxxx'
    PASSWD='xxxxxx'
    FILE='E:\STATS\DB1.*'
    cd /tmp/dbmon
    ftp -n -v $HOST << EOT
    user $USER $PASSWD
    prompt
    mput $FILE
    bye
    EOT
    EXIT;
    EOF
    Thanks
    Edited by: ASP on Nov 18, 2011 4:45 PM

    Hi ASP
    It's always a good idea to write entries to timestamped log file without which you will never know where the script went wrong or failed.
    This is not tested but just a small example
    #!/bin/sh
    export LOG_DIR=/tmp/log
    export LOGFILE=$LOG_DIR/`basename $0`_${TIMESTAMP}.log
    if [ ! -d $LOG_DIR ]
    then
         mkdir $LOG_DIR
    fi
    echo "Removing the temporary files from /tmp/dbmon at `date +%Y%m%d_%H:%M:%S`" | tee -a $LOG_FILE
    rm -f /tmp/dbmon/DB1*
    CONNSTRING=username/PASSWORD@service
    echo "Run SQLPlus file" | tee -a $LOG_FILE
    sqlplus -s $CONNSTRING @/tmp/STATS.sql << EOF
    EXIT;
    EOF
    echo "Now FTP the files to windows box " | tee -a $LOG_FILE
    HOST='xxxxx'
    USER='xxxxx'
    PASSWD='xxxxxx'
    cd /tmp/dbmon
    ftp -vn $HOST <<EOF
    quote USER $USER
    quote PASS $PASSWD
    ascii
    cd E:\STATS
    mput DB1.*
    bye
    EOF

  • Problem : tcl script for filter IPSec cosmetic log

    Hi all, I would like some advice from anyone who ever see this case. I applied tcl script for filter ipsec error log that log is cosmetic. But my site want to don't see this log from router log. I already create tcl script for filter it out. Ok script can work fine but it more work. It filter other message not just ipsec log out. I check cisco device that support script. How can I fix this problem.
    See my detail of script and ios version of router :
    script :
    # VPN_Error.tcl  This script deletes all log messages about VPN error messages
    # The script will filter by combination between facility-serverity and mnemonic      
    # Created on 05-Oct-2012.
    set msgs [list {CRYPTO-4-RECVD_PKT_MAC_ERR} {VPN_HW-1-PACKET_ERROR} {CRYPTO-4-RECVD_PKT_NOT_IPSEC} {CRYPTO-4-PKT_REPLAY_ERR}]
    set fac_sev_mnem "${::facility}-${::severity}-${::mnemonic}"
    foreach msg $msgs {
        if { $msg == $fac_sev_mnem } {
        return ""
    return $::orig_msg
    ios router version :
    : c2800nm-adventerprisek9-mz.124-25f.bin
    : c2800nm-adventerprisek9-mz.124-7b.bin
    log information and configuration
    When I applied command:
    logging filter flash:VPN_Filter2.tcl
    logging buffered filtered 4096 debugging
    show log file:
    router#sh logg
    Syslog logging: enabled (11 messages dropped, 1 messages rate-limited,
                    0 flushes, 0 overruns, xml disabled, filtering enabled)
        Console logging: level debugging, 18145 messages logged, xml disabled,
                         filtering disabled
        Monitor logging: level debugging, 428 messages logged, xml disabled,
                         filtering disabled
            Logging to: vty322(2)
        Buffer logging: level debugging, 0 messages logged, xml disabled,
                        filtering enabled (0 messages logged)
        Logging Exception size (4096 bytes)
        Count and timestamp logging messages: disabled
    Filter modules:
        flash:VPN_Filter2.tcl  
        Trap logging: level informational, 47011 message lines logged
            Logging to 10.145.0.25 (udp port 514, audit disabled, link up), 47011 message lines logged, xml disabled,
                   filtering disabled
            Logging to 10.247.17.41 (udp port 514, audit disabled, link up), 47011 message lines logged, xml disabled,
                   filtering disabled
            Logging to 10.247.17.45 (udp port 514, audit disabled, link up), 47011 message lines logged, xml disabled,
                   filtering disabled
    --More--                          
    Log Buffer (4096 bytes):
    router#
    If you have some more information. Please tell me.
    Thank you for your advice

    It looks like your script has an error.  You have an extra '}'.  It should be:
    # VPN_Error.tcl  This script deletes all log messages about VPN error messages# The script will filter by combination between facility-serverity and mnemonic       # Created on 05-Oct-2012.#set msgs [list {CRYPTO-4-RECVD_PKT_MAC_ERR} {VPN_HW-1-PACKET_ERROR} {CRYPTO-4-RECVD_PKT_NOT_IPSEC} {CRYPTO-4-PKT_REPLAY_ERR}]set fac_sev_mnem "${::facility}-${::severity}-${::mnemonic}"foreach msg $msgs {    if { $msg == $fac_sev_mnem } {        return ""    } } return $::orig_msg

  • ODBC mapping in asp script

    How do I code for oracle database in asp to interact with
    database? I know I may sound stupid in this.
    DSN:
    Set Conn = server.createobject("ADODB.Connection")
    Conn.Open "dsn=oradb;uid=test;pwd=test"
    Set Res = Server.CreateObject("ADODB.RecordSet")
    above is mapping to microsoft or oracle drivers? How about
    DSNless? like Driver or Provider?
    I'm still confused abt oracle ODBC mapping. I don't know how to
    write oracle DB connectivity for asp scripts.
    I'm grateful if anyone can help me in this.

    1) Are you sure that you get no results? It sounds like you are having name resolution issues, which would imply that you should be getting an ORA-00942 error indicating that the table doesn't exist (or that you don't have access to the table). If you are not seeing this error, I would tend to suspect an overzealous exception handler.
    2) What database account owns the table? What database account is your ASP.Net application using to connect? Assuming these two accounts are different, your application would either have to
    - Explicitly prefix the table name with the schema name
    - Have a public or private synonym that maps the table name to the fully qualified identifier schema_name.table_name
    - Issue the command ALTER SESSION SET CURRENT_SCHEMA = <<schema name>> in each session, in which case all queries in the session would use the specified schema name as the default if no schema name is prefixed.
    Justin

  • Script for CS3 won't work in CS2

    Hello all,
    I am new to scripting and trying to get a script written for CS3 to work in CS2. The script was given to me a participant in the InDesign forum. At any rate, here is the script:
    for (n=0; n<app.selection.length; n++) {
    app.selection[n].move([23.44, 100.05]);
    I get an error messsage that says
    error #19
    error string "bad argument move"
    Line: 2
    Source: "app.selection[n].move([23.44, 100.0});"
    Offending text: "100.0"
    As i said I am new to scripting and have been perusing the scripting manual but cannot gather what my error was, and I am trying to meet a deadline.
    Cheers in advance!

    Ok, me again.
    I got it working - well, it moves the text boxes I select - but for some reason the Y variable isn't coming out correctly.
    For example, if I use the coordinates 32.385, 16.231 in a script, it moves it to the correct spot on the X axis, but the coordinate for the Y will be off. Further, depending on what text box I select to move, it will vary (by 1-5 mm) along the Y axis. Different text boxes go to different areas along the Y axis, but never far from the script coordinate.
    So I guess there does need to be some alteration made? I'll post this in the script forum too, not really sure where it belongs with this particular problem.
    Bleah.

  • Cisco UT Lite script for windows 2012

    Hi;
    Will Cisco UT Lite script (for Prime LMS 4.2.4) will support with windows Active directory and domain controller on Windows 2012?
    If yes can you please share Link, I try to search but unfortunitly I counldn't found. All document refere till Windows 2003.
    Thanks for your cooperation.
    Best regards;
    Shoaib

    Hi Shoaib,
    there is no workaround. utlite script is supported on below platform only.
    •Windows 2008
    •Windows XP with SP2 or SP3
    •Windows Vista
    Thanks-
    Afroz
    [Do rate the useful post]

  • Apple Script For Opening External EML File With Apple Mail

    Hi folks,
    

 I am working with Apple Script for implementing numerous function related to Mail App.
    

I am using the following Apple Script lines for opening the mails which are in Mail app for each modes.
    

View Mode : open theMsg

    Reply View Mode : reply theMsg opening window yes

    Reply All Mode : reply theMsg opening window yes reply to all yes

    Forward Mode : forward theMsg opening window yes



    I want to know how we can open external eml file in different view modes (View, Reply, Reply All and Forward) using Apple Script or Apple Event programmatically with a similar mechanism available through script in Mail App.

    
Thanks in advance.

Regards
    
Nisar

    I'm not sure what you're doing here, but this isn't anything I recognize as compilable applescript. what is this 'mode' thing you're talking about.
    at any rate, if you have a loose emlx file sitting around somewhere you can simply open it in mail (use the 'open' command and the file specification for the emlx file) and work with it appropriately. if you're talking about an actual eml file (e.g. from Outlook Express) you'd have to GUI script Mail's 'import mailbox' command (the applescript handler for importing mail only works with Mail.app mailboxes)

  • ASP script help please

    need an asp script that could send the sentence "lights ON" to an ip address x.x.x.x

    Najib-
    Cisco Support Forums are centered around assistance with the products and technologies that we support.  We kindly request that the information within these threads are relevant to our products and services to keep the forums clean and easy to search.
    That said -
    There is quite a bit more to your question than you may realize.  Scripting engines utilize different methods to communicate with external resources (i.e. PHP can make socket call vs. making ASP making full HTTP request)  What you would use depends largely on how the recieving device needs to recieve information and what your scripting language can send.  As far as I know, ASP is limited to HTTP requests.
    I would go poking around on goole for socket open/close/sending or HTTP reqeust/response if your end device supports it.  Don't forget with fsock to make sure your outbound data is correctly formatted for what the recieving device understands (use urlencode, etc so the character set is correct.)
    HTTP example:
    http://arstechnica.com/civis/viewtopic.php?f=20&t=884487
    HTTP information:
    http://msdn.microsoft.com/en-us/library/5t9y35bd(vs.71).aspx
    Regards,
    Chris

  • Need Function Module for Printing Rates,Discounts and Taxes in Invoice.

    Hi All,
    For our Invoice printing I need to get a function module which will provide me the rates,discounts and taxes against each item line of the Invoice No.
    Finall it will be printed accordingly.
    Can anyone help me regarding this with input parameter example.
    Thx in Adv.

    Hi,
    As far as I know there is no fun module to print all this stuff.
    You have to get this data from KONV table by passing the VBRK table KNUMV field.
    Then check for all the Rates and amount KBETR and KWERT fields for the respective condition Types.
    You have to loop the KONV internal table and write all the condition rates and amounts in the script driver program.
    see any Std script for this.
    Regards,
    Anji

  • UPS Rates interface

    //After a long and frustrating try and mistake week, I got to
    get the naughty UPS Rate system to talk to my flex application; I
    tough someone will appreciate to have it ready to go...
    // the request:
    private function builtXMLRates():void
    var toSend:String='';
    toSend='<?xml version="1.0"?>';
    toSend+="<AccessRequest xml:lang='en-US'>";
    // remove the square brackets
    toSend+='<AccessLicenseNumber>[ NOT THE DEVELOPPER
    KEY!!! ]</AccessLicenseNumber>';
    toSend+='<UserId>[ YOUR UPS ID ]</UserId>';
    toSend+='<Password>[YOUR UPS PASS ]</Password>';
    toSend+='</AccessRequest>';
    toSend+='<?xml version="1.0"?>';
    toSend+="<RatingServiceSelectionRequest
    xml:lang='en-US'>";
    toSend+='<Request>';
    toSend+='<TransactionReference>';
    toSend+='<CustomerContext>Rating and
    Service</CustomerContext>';
    toSend+='<XpciVersion>1.0</XpciVersion>';
    toSend+='</TransactionReference>';
    toSend+='<RequestAction>Rate</RequestAction>';
    toSend+='<RequestOption>Shop</RequestOption>';
    toSend+='</Request>';
    toSend+='<PickupType>';
    toSend+='<Code>07</Code>';
    toSend+='<Description>Rate</Description>';
    toSend+='</PickupType>';
    toSend+='<Shipment>';
    toSend+='<Description>Rate
    Description</Description>';
    toSend+='<Shipper>';
    toSend+='<Name>Name</Name>';
    toSend+='<PhoneNumber>1234567890</PhoneNumber>';
    toSend+='<ShipperNumber>Ship
    Number</ShipperNumber>';
    toSend+='<Address>';
    toSend+='<AddressLine1>Address
    Line</AddressLine1>';
    toSend+='<City>City</City>';
    toSend+='<StateProvinceCode>NJ</StateProvinceCode>';
    toSend+='<PostalCode>07430</PostalCode>';
    toSend+='<CountryCode>US</CountryCode>';
    toSend+='</Address>';
    toSend+='</Shipper>';
    toSend+='<ShipTo>';
    toSend+='<CompanyName>Company
    Name</CompanyName>';
    toSend+='<PhoneNumber>1234567890</PhoneNumber>';
    toSend+='<Address>';
    toSend+='<AddressLine1>Address
    Line</AddressLine1>';
    toSend+='<City>Corado</City>';
    toSend+='<PostalCode>00646</PostalCode>';
    toSend+='<CountryCode>PR</CountryCode>';
    toSend+='</Address>';
    toSend+='</ShipTo>';
    toSend+='<ShipFrom>';
    toSend+='<CompanyName>Company
    Name</CompanyName>';
    toSend+='<AttentionName>Attention
    Name</AttentionName>';
    toSend+='<PhoneNumber>1234567890</PhoneNumber>';
    toSend+='<FaxNumber>1234567890</FaxNumber>';
    toSend+='<Address>';
    toSend+='<AddressLine1>Address
    Line</AddressLine1>';
    toSend+='<City>Boca Raton</City>';
    toSend+='<StateProvinceCode>FL</StateProvinceCode>';
    toSend+='<PostalCode>33434</PostalCode>';
    toSend+='<CountryCode>US</CountryCode>';
    toSend+='</Address>';
    toSend+='</ShipFrom>';
    toSend+='<Service>';
    toSend+='<Code>03</Code>';
    toSend+='</Service>';
    toSend+='<PaymentInformation>';
    toSend+='<Prepaid>';
    toSend+='<BillShipper>';
    toSend+='<AccountNumber>Ship
    Number</AccountNumber>';
    toSend+='</BillShipper>';
    toSend+='</Prepaid>';
    toSend+='</PaymentInformation>';
    toSend+='<Package>';
    toSend+='<PackagingType>';
    toSend+='<Code>02</Code>';
    toSend+='<Description>Customer
    Supplied</Description>';
    toSend+='</PackagingType>';
    toSend+='<Description>Rate</Description>';
    toSend+='<PackageWeight>';
    toSend+='<UnitOfMeasurement>';
    toSend+='<Code>LBS</Code>';
    toSend+='</UnitOfMeasurement>';
    toSend+='<Weight>10</Weight>';
    toSend+='</PackageWeight>';
    toSend+='</Package>';
    toSend+='<ShipmentServiceOptions>';
    toSend+='<OnCallAir>';
    toSend+='<Schedule>';
    toSend+='<PickupDay>02</PickupDay>';
    toSend+='<Method>02</Method>';
    toSend+='</Schedule>';
    toSend+='</OnCallAir>';
    toSend+='</ShipmentServiceOptions>';
    toSend+='</Shipment>';
    toSend+='</RatingServiceSelectionRequest>';
    sendUPSRequest(toSend);}
    //SEND THE REQUEST
    public function sendUPSRequest(toSend:String) {
    var loader:URLLoader = new URLLoader();
    configureListeners(loader);
    //now the ups test server url, change this to :
    https://onlinetools.ups.com/ups.app/xml/Rate
    // when you get everything working fine
    var request:URLRequest = new
    URLRequest("https://wwwcie.ups.com/ups.app/xml/Rate");
    request.data = toSend;
    request.method = URLRequestMethod.POST;
    try {
    loader.load(request);
    } catch (error:Error)
    trace("Unable to load requested document.");
    private function
    configureListeners(dispatcher:IEventDispatcher):void
    dispatcher.addEventListener(Event.COMPLETE,
    getUpsListHandler);
    dispatcher.addEventListener(Event.OPEN, openHandler);
    dispatcher.addEventListener(ProgressEvent.PROGRESS,
    progressHandler);
    dispatcher.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    securityErrorHandler);
    dispatcher.addEventListener(HTTPStatusEvent.HTTP_STATUS,
    httpStatusHandler);
    dispatcher.addEventListener(IOErrorEvent.IO_ERROR,
    ioErrorHandler);
    //UPS response:
    private function getUpsListHandler(event:Event):void {
    var UPSRatesArray:ArrayCollection = new ArrayCollection()
    var results:XML = new XML(event.currentTarget.data);
    trace(results.RatedShipment);
    if(results.Response.ResponseStatusCode == '1')
    for each(var UPS:XML in results.RatedShipment)
    // NOTE: I ADDED THE UpsObj at the end of this post
    var upsObj:UpsObj = new UpsObj( 'ups',
    UPS.Service.Code,
    UPS.RatedShipmentWarning,
    UPS.BillingWeight.Weight,
    UPS.TransportationCharges.MonetaryValue,
    UPS.ServiceOptionsCharges.MonetaryValue,
    UPS.TotalCharges.MonetaryValue,
    UPS.RatedPackage.TransportationCharges.MonetaryValue,
    UPS.RatedPackage.ServiceOptionsCharges.MonetaryValue,
    UPS.RatedPackage.TotalCharges.MonetaryValue);
    UPSRatesArray.addItem(upsObj);
    dispatchEventX('ratesIn',UPSRatesArray)
    else
    dispatchEventX('fault',UPS.ResponseStatusDescription);
    private function faultHandler(event:FaultEvent):void
    trace(event.fault.faultDetail);
    private function completeHandler(event:Event):void {
    var loader:URLLoader = URLLoader(event.target);
    trace("completeHandler: " + loader.data);
    private function openHandler(event:Event):void {
    trace("openHandler: " + event);
    private function progressHandler(event:ProgressEvent):void {
    trace("progressHandler loaded:" + event.bytesLoaded + "
    total: " + event.bytesTotal);
    private function
    securityErrorHandler(event:SecurityErrorEvent):void {
    trace("securityErrorHandler: " + event);
    private function
    httpStatusHandler(event:HTTPStatusEvent):void {
    trace("httpStatusHandler: " + event);
    private function ioErrorHandler(event:IOErrorEvent):void {
    trace("ioErrorHandler: " + event);
    // NOW THE UpsObj OBJECT:
    package classes
    import mx.rpc.events.ResultEvent;
    public class UpsObj
    import classes.CustomerRegistrationObj
    public var deliveryCompanyName:String = 'Ups';
    public var Service:String;
    public var RatedShipmentWarning:String;
    public var BillingWeightWeight:String;
    public var TransportationChargesMonetaryValue:String;
    public var ServiceOptionsChargesMonetaryValue:String;
    public var TotalChargesMonetaryValue:String;
    public var
    RatedPackageTransportationChargesMonetaryValue:String;
    public var
    RatedPackageServiceOptionsChargesMonetaryValue:String;
    public var RatedPackageTotalChargesMonetaryValue:String;
    public var deliveryCustomer:CustomerRegistrationObj;
    public var description:String;
    public function UpsObj( _deliveryCompanyName:String='UPS',
    _Service:String='',
    _RatedShipmentWarning:String='',
    _BillingWeightWeight:String='',
    _TransportationChargesMonetaryValue:String='',
    _ServiceOptionsChargesMonetaryValue:String='',
    _TotalChargesMonetaryValue:String='',
    _RatedPackageTransportationChargesMonetaryValue:String='',
    _RatedPackageServiceOptionsChargesMonetaryValue:String='',
    _RatedPackageTotalChargesMonetaryValue:String=''):void
    deliveryCompanyName= _deliveryCompanyName;
    Service= _Service;
    setDescription(Service);
    RatedShipmentWarning= _RatedShipmentWarning;
    BillingWeightWeight= _BillingWeightWeight;
    TransportationChargesMonetaryValue=
    _TransportationChargesMonetaryValue;
    ServiceOptionsChargesMonetaryValue=
    _ServiceOptionsChargesMonetaryValue;
    TotalChargesMonetaryValue= _TotalChargesMonetaryValue;
    RatedPackageTransportationChargesMonetaryValue=
    _RatedPackageTransportationChargesMonetaryValue;
    RatedPackageServiceOptionsChargesMonetaryValue=
    _RatedPackageServiceOptionsChargesMonetaryValue;
    RatedPackageTotalChargesMonetaryValue=
    _RatedPackageTotalChargesMonetaryValue;
    deliveryCustomer= _deliveryCustomer;
    }

    Hello,
    There is a WebEx on 12/13/2006 & 12/15/2006 @ 8:00 AM PST (California Time Zone).
    Agenda:
    Enteprise Centralized Shipping (ECS) For SAP   With out middleware.
    Descripotion of ECS: ECS eliminates Black-box systems. Eliminates interfaces. Processweaver Solutions are developed based on ABAP and Netweaver platform.
    DATE: Wednesday, December 13, 2006
    TIME: 8:00 am, Pacific Standard Time (GMT -08:00, San Francisco ) .
    MEETING NUMBER: 804 681 562
    PASSWORD: weaver3
    Call-in number (US/Canada): 650-429-3300
    https://processweaver.webex.com/processweaver/j.php?ED=91808247&UID=52406287
    more information: email to [email protected]
    This is a greate WebEx to know more know more about SAP Enteprise Centralized Shipping (ECS)
    Thank You,

  • TcL Scripting for Cisco IOS,

    anyone has idea how useful this book
    TcL Scripting for Cisco IOS,
    http://www.ciscopress.com/bookstore/product.asp?isbn=1587059541
    thank you

    Hi Joe
    it is interesting that you are the technical reviewer of this book
    i was think to get mid level in Tcl scripting with EEM to give me the ability to  implement some automated things
    i am good with EEM but Tcl not
    will this book take the reader from scratch to tcl scripting ?
    thank you and happy new year
    Marwan

  • Cranpkg - script for installing R libraries

    Hi everyone,
    I have created a script for installing R libraries using pacman.  You can download it at http://allan.mcrae.googlepages.com/cranpkg (currently v0.3.0).
    For example, the "genetics" library is installed using
    > cranpkg -i genetics
    CRANPKG v0.2
    Copyright (C) 2007 Allan McRae
    Examining R installation...
    Installing package genetics...
    Downloading package information...
    Version: 1.3.0
    Dependancies: combinat gdata gtools MASS mvtnorm
    Resolving dependancies...
    Installing combinat...
    Installing gdata...
    Installing mvtnorm...
    Downloading package source...
    Building package...
    Installing package...
    Done
    > pacman -Qs cran
    local/cran-combinat 0.0.6-1
    R library - combinat. Built with cranpkg
    local/cran-gdata 2.3.1-1
    R library - gdata. Built with cranpkg
    local/cran-genetics 1.3.0-1
    R library - genetics. Built with cranpkg
    local/cran-gtools 2.4.0-1
    R library - gtools. Built with cranpkg
    local/cran-mvtnorm 0.8.1-1
    R library - mvtnorm. Built with cranpkg
    This should be fairly robust against failures and leave log files in /tmp/cranpkg if anything fails.  Please let me know if you run into trouble with this.
    There a a few variables that you may need to modify at the top of the script.  For example, the mirror you wish to download from.
    Wget is used by default for the downloading and package installation is done with a "sudo pacman" command.
    Any problems/success please let me know.
    Last edited by Allan (2007-12-31 04:51:27)

    Here is some information on cranpkg status at v0.2:
    Installs and loads fine in R:
    adegenet, allelic, ape, bayesSurv, classifly, coda, combinat, e1071, gdata, gee, genetics, glpk, gstat, gtools, HardyWeinberg, kinship, mcmc, mvtnorm, nortest, qtl, reshape, RGtk2, smoothSurv, sp, tree.
    Installs but fails to load in R:
    graph, rggobi
    Thats greater than 90% success rate...  The packages that fail to load have no files in them (pacman -Ql <pkg> returns nothing).
    Update:  graph requires R>=2.6.0 (latest) which hasn't made it to Arch yet.  rggobi require external software called ggobi so fails.  These errors are caught in v0.2.1.
    Last edited by Allan (2007-10-20 15:13:57)

Maybe you are looking for

  • FrameMaker 8 Memory Issues

    Hi,       Working with FrameMaker 8, I've been finding that after opening and closing structured files, (either through the UI or through the FDK) the memory usage of Frame seems to noticable increase. This doesnt seem to happen with unstructured doc

  • Installing 9i on OSX.2 Server

    I've gotten to the point where I am trying to execute ./createDB >& dblogs. The logs I get are not even close to what I'm seeing in the samples. The logs I get back are peppered with : ORA-12546: TNS:permission denied and SP2-0640: Not connected I'm

  • RCA for VAR

    Hello Gurus I have an issue I hope you can help me with. My company is a VAR for SAP and we have several customers that we all access using saprouter. Now I want to setup RCA for these customers. I have installed the agents on client side. To get the

  • Field code

    I'm using an old Pages Document with a field code. But now with the new version I can't update the field code, or apply a new one. Can somebody help please?

  • Why we maintain the profit centre in MM module?

    Hello, I want know, why we maintain the profit centre in MM module? Ram Rathode.