1

I got this error. That's why I can't add a reference to my project.

Cœur
  • 37,241
  • 25
  • 195
  • 267

2 Answers2

0

You need to have a valid WSDL for your WebService. (WSDL Documentation)

Try accessing the WebService's url with ?wsdl in the end. Example:

http://my.url.com/webServiceFile.aspx becomes http://my.url.com/webServiceFile.aspx?wsdl

You should see something like this. If you get an error message, then the WebService you're trying to access is not valid.

EDIT: I just realised that the URL field in your screenshot was blank because you did not enter anything in there. You need to know the URL of your WebService and then insert it into that field, making sure you have ?wsdl at the end.

It needs to be something like:

http://<your domain>.com/<WebService file>.aspx?wsdl
cassi.lup
  • 1,261
  • 7
  • 23
0

Try to add:

header("Content-Type: text/xml");

before you print your wsdl.

chechopeefe
  • 178
  • 9