kylewest / DotNetShipping

UPS, FedEx, USPS shipping rate calculators for .NET
MIT License
78 stars 66 forks source link

use latest UPS web services #2

Closed kylewest closed 9 years ago

QueenBee1961 commented 11 years ago

If I can get this code to work, it will be great. I've wasted too much precious time trying to implement shipping rate calculators for my site. But still trying to get the "working" sample to work. Is there a way to get some support for this NuGet?

kylewest commented 11 years ago

You should be able to build and run the SampleApp (in this repository) and get rates for UPS, USPS, and FedEx. You'll need to replace the placeholders with your credentials from UPS, USPS, and FedEx. The SampleApp works for me and this code has been in production use at RPMWare for several years.

If that doesn't work please let me know specifically what you need help with.

Kyle

QueenBee1961 commented 11 years ago

In all honesty, the main problem is that I am fairly new to web development and totally clueless about web services. Your example is such that you assume the user knows exactly what to do with the supplied code.

For instance, your "how to build" code:

git clone https://github.com/kylewest/DotNetShipping.git cd DotNetShipping ./build.bat I haven't a CLUE where to put that or how to use it. I tried using it in the NuGet console, but it didn't work. I have installed NuGet packages before and was never required to "build" anything after it was installed so I need a little more detailed instruction here.

Next, your "how to use" code: NameValueCollection appSettings = ConfigurationManager.AppSettings;

// You will need a license #, userid and password to utilize the UPS provider. string upsLicenseNumber = appSettings["UPSLicenseNumber"]; string upsUserId = appSettings["UPSUserId"]; string upsPassword = appSettings["UPSPassword"];......etc.

You don't say where it goes. Do I put it in global.asax? Do I need to make a class module?

If you could give me some guidance here, I would truly appreciate it.

Thanks!

Beryl Small

On Fri, Mar 8, 2013 at 9:03 AM, Kyle West notifications@github.com wrote:

You should be able to build and run the SampleApp (in this repository) and get rates for UPS, USPS, and FedEx. You'll need to replace the placeholders with your credentials from UPS, USPS, and FedEx. The SampleApp works for me and this code has been in production use at RPMWare http://rpmware.comfor several years.

If that doesn't work please let me know specifically what you need help with.

Kyle

— Reply to this email directly or view it on GitHubhttps://github.com/kylewest/DotNetShipping/issues/2#issuecomment-14624510 .

QueenBee1961 commented 11 years ago

One other thing. There are no web pages in the Sample App so I am unsure how to test or use it. When I click on Sample App in Visual Studio and just click Start/Run, I get a build error:

Error 1 Source file '..\AssemblyInfo.cs' could not be found C:\Users\Beryl\Downloads\DotNetShipping-master\DotNetShipping-master\src\dotNETShipping\CSC DotNetShipping

On Fri, Mar 8, 2013 at 9:59 AM, Beryl Small berryboo223@gmail.com wrote:

In all honesty, the main problem is that I am fairly new to web development and totally clueless about web services. Your example is such that you assume the user knows exactly what to do with the supplied code.

For instance, your "how to build" code:

git clone https://github.com/kylewest/DotNetShipping.git cd DotNetShipping ./build.bat I haven't a CLUE where to put that or how to use it. I tried using it in the NuGet console, but it didn't work. I have installed NuGet packages before and was never required to "build" anything after it was installed so I need a little more detailed instruction here.

Next, your "how to use" code: NameValueCollection appSettings = ConfigurationManager.AppSettings;

// You will need a license #, userid and password to utilize the UPS provider. string upsLicenseNumber = appSettings["UPSLicenseNumber"]; string upsUserId = appSettings["UPSUserId"]; string upsPassword = appSettings["UPSPassword"];......etc.

You don't say where it goes. Do I put it in global.asax? Do I need to make a class module?

If you could give me some guidance here, I would truly appreciate it.

Thanks!

Beryl Small

On Fri, Mar 8, 2013 at 9:03 AM, Kyle West notifications@github.comwrote:

You should be able to build and run the SampleApp (in this repository) and get rates for UPS, USPS, and FedEx. You'll need to replace the placeholders with your credentials from UPS, USPS, and FedEx. The SampleApp works for me and this code has been in production use at RPMWarehttp://rpmware.comfor several years.

If that doesn't work please let me know specifically what you need help with.

Kyle

— Reply to this email directly or view it on GitHubhttps://github.com/kylewest/DotNetShipping/issues/2#issuecomment-14624510 .

kylewest commented 11 years ago

Do you still need help with this? The general answer is that this isn't a website, it's meant to be used by code you write in your web project.