473,499 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

UPS says invalid licence code

86 New Member
Hi friends,
i am progamming to generate UPS labels in asp.net 2.0

when i sent the follwoing xml request to UPS development server,
it say invalid licence code.
But indeed mine is original licence and it has worked fine with address validation perfectly, but why do i face problem doing access request.

Expand|Select|Wrap|Line Numbers
  1. <?xml version='1.0'?>
  2. <AccessRequest xml:lang='en-US'>
  3.     <AccessLicenseNumber>Licence number here</AccessLicenseNumber>           <UserId>bwahoff</UserId>
  4. <Password>password here</Password>
  5. </AccessRequest>
  6. <?xml version="1.0"?>
  7. <ShipmentConfirmRequest>
  8.   <Request>
  9.     <TransactionReference>
  10.       <CustomerContext>ShipConfirmUS</CustomerContext>
  11.       <XpciVersion>1.0001</XpciVersion>
  12.     </TransactionReference>
  13.     <RequestAction>ShipConfirm</RequestAction>
  14.     <RequestOption>nonvalidate</RequestOption>
  15.   </Request>
  16.   <LabelSpecification>
  17.     <LabelPrintMethod>
  18.       <Code>GIF</Code>
  19.     </LabelPrintMethod>
  20.     <LabelImageFormat>
  21.       <Code>GIF</Code>
  22.     </LabelImageFormat>
  23.     <LabelStockSize>
  24.       <Height>4</Height>
  25.       <Width>6</Width>
  26.     </LabelStockSize>
  27.   </LabelSpecification>
  28.   <Shipment>
  29.     <Shipper>
  30.       <Name>vdap.com</Name>
  31.       <AttentionName>Nhat Ho</AttentionName>
  32.       <PhoneNumber>111-111-1111</PhoneNumber>
  33.       <ShipperNumber>671173</ShipperNumber>
  34.       <Address>
  35.         <AddressLine1>12331 Ninth street</AddressLine1>
  36.         <City>Garden Grove</City>
  37.         <StateProvinceCode>CA</StateProvinceCode>
  38.         <PostalCode>92840</PostalCode>
  39.         <CountryCode>US</CountryCode>
  40.       </Address>
  41.     </Shipper>
  42.     <ShipFrom>
  43.       <CompanyName>vdap</CompanyName>
  44.       <AttentionName>Nhat Ho</AttentionName>
  45.       <PhoneNumber>111-111-1111</PhoneNumber>
  46.       <Address>
  47.         <AddressLine1>12331 Ninth street</AddressLine1>
  48.         <AddressLine2>
  49.         </AddressLine2>
  50.         <City>Garden Grove</City>
  51.         <StateProvinceCode>CA</StateProvinceCode>
  52.         <PostalCode>92840</PostalCode>
  53.         <CountryCode>US</CountryCode>
  54.       </Address>
  55.     </ShipFrom>
  56.     <ShipTo>
  57.       <CompanyName>An mai</CompanyName>
  58.       <AttentionName>An</AttentionName>
  59.       <PhoneNumber>111-111-1111</PhoneNumber>
  60.       <Address>
  61.         <AddressLine1>851 Redondo dr west</AddressLine1>
  62.         <City>Anahiem</City>
  63.         <StateProvinceCode>CA</StateProvinceCode>
  64.         <PostalCode>92801</PostalCode>
  65.         <CountryCode>US</CountryCode>
  66.       </Address>
  67.     </ShipTo>
  68.     <PaymentInformation>
  69.       <Prepaid>
  70.         <BillShipper>
  71.           <AccountNumber>671173</AccountNumber>
  72.         </BillShipper>
  73.       </Prepaid>
  74.     </PaymentInformation>
  75.     <Service>
  76.       <Code>03</Code>
  77.       <Description>Ground</Description>
  78.     </Service>
  79.     <ShipmentServiceOptions>
  80.       <ShipmentNotification>
  81.         <EMailMessage>
  82.           <EMailAddress>email@email.com</EMailAddress>
  83.           <Memo>UPS Label Testing</Memo>
  84.         </EMailMessage>
  85.       </ShipmentNotification>
  86.     </ShipmentServiceOptions>
  87.     <Package>
  88.       <Description>asdfads</Description>
  89.       <PackagingType>
  90.         <Code>02</Code>
  91.       </PackagingType>
  92.       <ReferenceNumber>
  93.         <Code>9V</Code>
  94.         <Value>asdfads</Value>
  95.       </ReferenceNumber>
  96.       <PackageWeight>
  97.         <UnitOfMeasurement>
  98.           <UnitOfMeasurement>LBS</UnitOfMeasurement>
  99.         </UnitOfMeasurement>
  100.         <Weight>20</Weight>
  101.       </PackageWeight>
  102.       <PackageServiceOptions>
  103.         <CurrencyCode>US</CurrencyCode>
  104.         <MonetaryValue>130</MonetaryValue>
  105.       </PackageServiceOptions>
  106.     </Package>
  107.   </Shipment>
  108. </ShipmentConfirmRequest>
  109.  
  110.  
i have searched on many of the similar post, but i am unable to accomplish it.
any help?
thank you
Jun 1 '09 #1
9 2882
tlhintoq
3,525 Recognized Expert Specialist
Are you really sure you want to be posting that information so others can see all your account numbers? Doesn't that give rise to people shipping on your account?
Jun 1 '09 #2
ravindarjobs
86 New Member
Thank you tlhintoq,

you are right,
but those are dummy values, those does'nt work for real work.

that is a dummy data.


thank you
Ravindar
Jun 2 '09 #3
ravindarjobs
86 New Member
i think that is not a correct practice to post even those dummy values too.

So how do i edit that post now?
any help?


thank you
Ravindar
Jun 2 '09 #4
tlhintoq
3,525 Recognized Expert Specialist
@ravindarjobs
View the post.
Hit the big "edit" button. The one with the scissors icon
Jun 3 '09 #5
ravindarjobs
86 New Member
I think that edit button will appear for only some period of time.
Each time when i create a post, i am able to see the edit button.
But after some period, i dont get the edit option.


thank you
Ravindar
Jun 3 '09 #6
Frinavale
9,735 Recognized Expert Moderator Expert
You're right, for regular members the editing window is only a short while.
I've removed more data from what was posted for you...if you see anything that you want changed just say so :)
Jun 3 '09 #7
JamieHowarth0
533 Recognized Expert Contributor
Hi ravindarjobs,

How are you transmitting this - in a SOAP envelope, via HTTP GET/POST, or XMLRPC?
My first suggestion would be to use a tool like Fiddler2 to manually test that the above XML data a) passes over to the UPS endpoint successfully, and b) you are getting some kind of request back.

By manually creating and testing the web request you are more likely to be able to see what is going wrong with the request, and subsequently why UPS is retuning a license error.

Hope this helps.

codegecko
Jun 3 '09 #8
ravindarjobs
86 New Member
Hi codegecko, thanks for the reply,

i have contacted the UPS team and they resolved my issue.
As i was using dummy values, it was giving that invalid licence error.
I have resolved that error and,i am at next step of creating a shipper.

I am getting going for now as that issue resoved.

You have mentioned a tool for xml, thank you for that one.
I can work more smoothly with it.


thank you
Ravindar
Jun 4 '09 #9
JamieHowarth0
533 Recognized Expert Contributor
Hi Ravindar,

Glad to hear you got it sorted.

codegecko
Jun 6 '09 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2447
by: Jakov | last post by:
Ok there are some issues about LGPL licence. I am not a lawyer, and reading LGPL licence is making me confused. This is my problem. I have woking on some commercial application, all the software...
17
2034
by: Laszlo Zsolt Nagy | last post by:
Hi All! I know there has been a post about Python licencing but I have different questions. I tried to Google for "Python Licence" and "Python Licencing" but I could not find the answer. Is...
2
8276
by: Dave | last post by:
Hi, Can anyone suggest a way to generate a licence key from C/C++ program? I want to create a licence file include an encrypted text and an expiry date. The private key is hard coded in the...
3
1478
by: DD | last post by:
I am after help in generating the code... The end user enters a licence no in the software to use the software as you do with Microsoft products. Can anyone help Regards DD
2
2545
by: JezB | last post by:
I have a windows application that I'd like to sell eventually. What's the simplest way to provide a secure licensing mechanism ? I'd prefer to have a licence key that can't simply be distributed...
3
5242
by: Frank Perry | last post by:
Howdy, I'm trying to write data out the com port. I have taken the code from the sample on the MSDN Library CD and used the parts that seem relevant. I can open the com port with CreateFile...
6
1889
by: Hani Atassi | last post by:
If i am using a form type authintication, do I need a licence for each logged in user? The application maintain their own user list and they are not Windows accounts. If I am using SQL Server...
84
6445
by: John Perks and Sarah Mount | last post by:
we have some Python code we're planning to GPL. However, bits of it were cut&pasted from some wxPython-licenced code to use as a starting point for implementation. It is possible that some...
1
1974
by: IanWright | last post by:
I'm trying to think of a suitable licence model for a toolkit that I'm designing, and have come up with the following, and would like thoughts / opinions or suggestions that people can offer. The...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7223
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.