3

I implemented a web service which is available under some https url. The client (a console app) calls it, but the following error is thrown:

The provided URI scheme 'https' is invalid; expected 'http'.

I searched that in the net, but I am not really sure how to solve it? Is this solved by adding some code to the web service?

Thanks :-)

2

1 Answer 1

2

You have <security mode="Transport"> on the binding. This means it uses https. Change the <endpoint address=...> to agree, or change to a non-transport-security http binding.

Was this svcutil-generated (Add Web Referenc) config? What does the server config look like? It is surprising to generate 'inconsistent' config like this from the metadata.

Regards

Karan Shah

Sign up to request clarification or add additional context in comments.

1 Comment

Your answer didn't make sense, since you had tags inline in your text, and those get treated as tags, by default. I've marked them up as code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.