Home

Linqpad adding /$metadata to my WCF URI

Has anyone else run across this? When I type in URI and attempt to test the connection to my webservice I get a 400 bad request error.

Using fiddler2 I have managed to identify the problem. This is the request sent out by linqpad:
GET https://<server>.ca/<Service>.svc/$metadata HTTP/1.1
Authorization: Basic <encrypted token>
Host: <server>.ca
Using Fiddler 2, when I modify the request to the following - it works fine.
GET https://<server>.ca/<Service>.svc/ HTTP/1.1
Authorization: Basic <encrypted token>
Host: <server>.ca
The /$metadata at the end of the URI in the first request was added by fiddler even though it isn't needed in my case.

Also, I have a hunch that linqpad SHOULD actually be connecting to this URI

https://<server>.ca/.svc?wsdl

However linqpad doesn't like the ?wsdl and won't even let me enter that as a value.

Any thoughts?
Sign In or Register to comment.