Search code examples
c#asp.netwsdlfedex

Adding wsdl Fedex file to c# .Net


I am trying to get started using FedEx webservice and I downloaded the wsdl file. I can not figure out how to add this to the project. MSDN is no help at all. If I try to "add reference" it will not allow .wsdl files , and if I try to "add service reference" it will also not allow .wsdl files. I am trying to just get VS to find the wsdl so that I can start to write SOAP call to the webservice using intellisense. I have seen the answers to other questions were to simply "add web reference" but that will not allow a wsdl file either.

I know there is a way to convert the .wsdl file into a c# class , but don't know how to do that either.


Solution

  • Add web reference is just that though. It read the wsdl & generates the stub classes

    I've just tried this in VS2010. Saved the WSDL for a java web service to disk. Added Service Reference, then clicked Advanced, then Add Web Reference.

    In the box that appears type file:// then click then green arrow & bingo, web service found & added.

    Perhaps the WSDL is not valid if Visual Studio won't recognise it?