Help working with Royal Mail wsdl file

ross13
ross13 used Ask the Experts™
on
Issue adding a local wsdl file for royal mail to visual stusio 2017 in c#.
Print screen f error attached. Invalid URI.
Royal-Mail-API-Shipping-V2--28SOAP-2.zip
error.jpg
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Kyle SantosSoftware Test Analyst I at Dassault Systemes

Commented:
Hi,

I am here to help you with your open question.  Do you still need help?  I have the ability to alert more experts if you still need help.

If you solved the problem on your own, would you please post the solution here in case others have the same problem?

If you need me to delete this question just say "Delete."

Thank you for using Experts Exchange.

Regards,

Kyle Santos
Customer Relations

Author

Commented:
Still needing help
Gary PattersonVP Technology / Senior Consultant

Commented:
E:\royalmail...  is a local path or drive mapping, not a URI.  VS is expecting a reference to the location where you downloaded the wsdl.  It is going to start with http or https.
HI,

To create it via the command line:

Open a VS Command Prompt (Programs -> Visual Studio  -> Visual Studio Tools)
Then execute:

WSDL /verbose C:\path\to\wsdl
WSDL.exe will then output a .cs file for your consumption.

If you have other dependencies that you received with the file, such as xsd's, add those to the argument list:

WSDL /verbose C:\path\to\wsdl C:\path\to\some\xsd C:\path\to\some\xsd

If you need VB output, use /language:VB in addition to the /verbose.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial