Sonia
Sonia

Reputation: 31

Unable to create service reference for wsdl file

I have wsdl file and xsd files at my local machine. I want to add service reference in project. I don't have web service I only have wsdl file.

I'm getting the following error:

The document was understood, but it could not be processed.
  - The WSDL document contains links that could not be resolved.
  - There was an error downloading 'http://localhost/DService/AllService.svc?xsd=xsd0'.
  - The request failed with HTTP status 404: Not Found. 

Upvotes: 3

Views: 7081

Answers (1)

Olorunfemi Davis
Olorunfemi Davis

Reputation: 1090

Your setup is complete with a wsdl file and a couple of xsd files. The reason you're having that problem is because the link 'http://localhost/DService/AllService.svc?xsd=xsd0'. is broken.

The solution is to search the folder that has the xsd files for AllService . To make it easier, place all the files in a single folder. Next is that you copy the absolute path to the file that contain the search phrase AllService, replace the localhost url with the absolute path to the file.

Run the command again and watch it work.

Note: Do not remove the url as this is essential in making your complete proxy.

Upvotes: 2

Related Questions