Link to home
Start Free TrialLog in
Avatar of ExpressMan1
ExpressMan1Flag for Canada

asked on

FedEx Web Services. What is correct procedure to add to .net website. Access denied C:\

Hello,
I have obtained my developer key, password, testing acct number, and meter number from FedEx. I downloaded a wsdl file "RateService_v14.wsdl from the FedEx Developer center. I would like to add a new page to my website where users can view FedEx rates.

Using VS 2010 VB.Net

How do I add this to my project? I tried right clicking on my project in Solution Explorer then "Add Service Reference / Advanced / Add Web Reference"  
 
Then in the URL:  C:\FedEx Web Services\RateService_v14.wsdl

Then in the box on the right "Web Services at this address I get the error:

   There was an error downloading 'C:\FedEx Web Services'.
Access to the path 'C:\FedEx Web Services' is denied.

I have changed permissions to full for all users for this file.

I read the FedEx pdf and googled but no luck.

Can someone point me in the right direction. Thanks.
Avatar of kaufmed
kaufmed
Flag of United States of America image

Try putting quotation marks around the path when you add the reference. (It shouldn't have mattered, but that looks to be what you're running in to.)

e.g.

"C:\FedEx Web Services\RateService_v14.wsdl"

I don't really think you need to do the "Web Reference", though. The Service Reference *should* accomplish the same thing. If not, then I would fall back to the Web Reference.
Avatar of ExpressMan1

ASKER

Tried the quotation marks in web reference and did not get "Access is denied" message in the box on the right titled "Web Services at this URL", which is now clear,  but instead "This program cannot display the web page" "Most likely causes you are not connected to the internet" etc.

Tried just the service reference and got "An error occurred while attempting to start services at "C:\FedEx Web Services\RateService_v14.wsdl"
Details:   Invalid URI: The URI scheme is not valid.
Can you open up the WSDL file in a text editor? Does it look similar to the one found here:

https://github.com/jzempel/fedex/blob/master/fedex/wsdls/RateService_v14.wsdl

In other words, can you confirm that it is in fact a WSDL file?
I just tried the one that I linked to above, and it appears to work correctly, so I'm wondering if your file is corrupted.
I opened it in notepad and it looks the same.

I don't see where I am supposed to enter the fedex key, password, and meter number in this file though. Is there another file I need for this to work?
Don't know if this helps but if I click on the RateService_v14.wsdl file it opens in a new file in vs 2010.
ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank You.  

The add service reference worked. I will need to keep working on learning the rest though.