Reputation: 93
I am trying to write a simple web form in .net that checks UPS tracking status.
I downloaded the API and example from UPS< I was able to run the example and get response.
The issue is that the example is written as a console C# program and not as a web page, so I created a new web site, and copied the code. I added the WSDL, but i am still receiving: "The type or namespace name 'TrackWebReference' does not exist in the namespace 'TrackWSSample' (are you missing an assembly reference?)"
I cant find any info about how to import this namespace, and I cant find anything in the example that give me a clue.
Upvotes: 2
Views: 1774
Reputation: 536
The error was caused by wrong Web Reference Url that points to the Track.wsdl file. You need to update the path to the right file and update the Web Reference in Visual Studio.
To update the path for the web reference URL, do these steps:
Now you should have your problem resolved.
Upvotes: 8