SOAP Service give wrong output in https

Hello Experts!

How do you configure a C# soap service to handle https? When I use a url like this: [ http://myservice.mydomain.com/service.svc?wsdl ] it works fine and returns xml as expected. But when I use the same url, but with https instead of http, I get a web page (html) response from the web service. This must be a web.config service endpoint binding issue, I think? Can you tell me how to get the xml output while using the https?

Thank you,

Fox
LVL 9
the_b1ackfoxCIOAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

girionisCommented:
Does the other end support HTTPS?
0
Omer RasheedCommented:
@the_b1ackfox :  In configuration file,  change binding from baseHttp to WsHttp binding of the web service. Also add https port in IIS and configure configure service with that as well.

Let me know in case of any confusion.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
the_b1ackfoxCIOAuthor Commented:
Thank you both for your help.  We were able to get the soap going and then found other issues with the wasdl.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
iis8

From novice to tech pro — start learning today.