My customer gave me a .wsdl file to access their webservices. Using VS2008 I can create a project, but I don’t know how to use the .wsdl file in it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You don’t invoke WSDL file, you add service reference from the file.
To add reference, right click on the project, select
Add Service Reference. Paste path to your wsdl file and hitGo.If you want to use legacy Web Service client, select
Add Web Referenceand paste path to the wsdl file from there.I recommend to use WCF (Add Service Reference option).
To use the service reference add code like this:
You also need to update config file with the server URL that you customer should provide you with: