SOAP Service give wrong output in https

the_b1ackfox used Ask the Experts™
Hello Experts!

How do you configure a C# soap service to handle https? When I use a url like this: [ ] 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,

Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Distinguished Expert 2018

Does the other end support HTTPS?
@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.


Thank you both for your help.  We were able to get the soap going and then found other issues with the wasdl.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial