How to consume https wcf service?

Omer K

There is a https wcf service I need to consume. Its url is like: https://www.abxyz.com:8082/MasterPassPspUi/PspUiService.svc

I have created a project and configured web.config like:

<bindings>
  <basicHttpBinding>
    <binding name="BasicHttpBinding_IPspUiService"
      <security mode="Transport">
        <transport clientCredentialType="None" />
      </security>
    </binding>
  </basicHttpBinding>
</bindings>
<client>
  <endpoint address="https://www.abxyz.com:8082/MasterPassPspUi/PspUiService.svc"
            binding="basicHttpBinding"
            bindingConfiguration="BasicHttpBinding_IPspUiService"
            contract="PspUiService.IPspUiService" 
            behaviorConfiguration="SoapInspector" 
            name="BasicHttpBinding_IPspUiService" />
</client>

When I call the service it returns

There was no endpoint listening at https://www.abxyz.com:8082/MasterPassPspUi/PspUiService.svc that could accept the message. This is often caused by an incorrect address or SOAP action.

When I change url to dns address like:

https:/212.2.245.34:8082/MasterPassPspUi/PspUiService.svc

Could not establish trust relationship for the SSL/TLS secure channel with authority '212.2.245.34:8082'

Actually I can access the service using web browser, but could you please help me how can I consume this wcf service over https.

naro

The first error it looks like you can’t connect the service, with the name. Can you open the address https://www.abxyz.com:8082/MasterPassPspUi/PspUiService.svc in your browser? If you can’t open but you can open https:/212.2.245.34:8082/MasterPassPspUi/PspUiService.svc adress, then I think it is a problem with the system configuration. Is it the right domain?

By the second error, you come on the server, but you get a security error. Do you have a valid certificate in your IIS? - You can call a web service with a not valid certificate, if the IIS and the client are on the same server. -

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to enable HTTPS in WCF service

From Dev

How to enable HTTPS on WCF RESTful Service?

From Dev

How to consume WCF Service with net tcp binding and without mex binding

From Dev

Consume SOAP based web service with https

From Dev

WCF Service configuration HTTPS with CustomBinding

From Dev

How to Consume an RPC-Style Web Service with a WCF Service Reference?

From Dev

How to consume third party https wsdl web service in c#

From Dev

webHttpBinding WCF service responds over HTTP but not HTTPS

From Dev

Consume WCF service in Xamarin Cross Platform Application

From Dev

Consume wcf service using HttpWebRequest c#

From Dev

How to consume post/put WCF RestFul Service

From Dev

Consume WCF Restful service with datacontract

From Dev

How to consume duplex wcf service in Windows Universal App

From Dev

How to consume WCF service by dynamically creating client proxy

From Dev

Unable to consume WCF service (hosted in IIS )

From Dev

how to consume wcf service hosted by windows service using java script

From Dev

How to consume WCF Data Service from Controller (MVC5, EF6, WCF 5.6)

From Dev

Configurating WCF service with HTTPS

From Dev

HTTPS-enabled, IIS hosted WCF service, How to secure it?

From Dev

How to consume WCF service methods by ajax getJSON?

From Dev

Cannot consume WCF service in desktop application

From Dev

Consume wcf service using HttpWebRequest c#

From Dev

Consume WCF service using jQuery

From Dev

Consume WCF service in winform, how to dynamically set Endpoint element and contract

From Dev

Xamarin Forms how to consume a wcf service

From Dev

Could not find endpoint element when consume WCF service

From Dev

How to consume WCF service in ASP.NET Core 1 adn VSCode editor?

From Dev

How to consume non rest wcf service using Jquery?

From Dev

Consume WCF service in Xamarin Cross Platform Application (Shared Project)

Related Related

  1. 1

    How to enable HTTPS in WCF service

  2. 2

    How to enable HTTPS on WCF RESTful Service?

  3. 3

    How to consume WCF Service with net tcp binding and without mex binding

  4. 4

    Consume SOAP based web service with https

  5. 5

    WCF Service configuration HTTPS with CustomBinding

  6. 6

    How to Consume an RPC-Style Web Service with a WCF Service Reference?

  7. 7

    How to consume third party https wsdl web service in c#

  8. 8

    webHttpBinding WCF service responds over HTTP but not HTTPS

  9. 9

    Consume WCF service in Xamarin Cross Platform Application

  10. 10

    Consume wcf service using HttpWebRequest c#

  11. 11

    How to consume post/put WCF RestFul Service

  12. 12

    Consume WCF Restful service with datacontract

  13. 13

    How to consume duplex wcf service in Windows Universal App

  14. 14

    How to consume WCF service by dynamically creating client proxy

  15. 15

    Unable to consume WCF service (hosted in IIS )

  16. 16

    how to consume wcf service hosted by windows service using java script

  17. 17

    How to consume WCF Data Service from Controller (MVC5, EF6, WCF 5.6)

  18. 18

    Configurating WCF service with HTTPS

  19. 19

    HTTPS-enabled, IIS hosted WCF service, How to secure it?

  20. 20

    How to consume WCF service methods by ajax getJSON?

  21. 21

    Cannot consume WCF service in desktop application

  22. 22

    Consume wcf service using HttpWebRequest c#

  23. 23

    Consume WCF service using jQuery

  24. 24

    Consume WCF service in winform, how to dynamically set Endpoint element and contract

  25. 25

    Xamarin Forms how to consume a wcf service

  26. 26

    Could not find endpoint element when consume WCF service

  27. 27

    How to consume WCF service in ASP.NET Core 1 adn VSCode editor?

  28. 28

    How to consume non rest wcf service using Jquery?

  29. 29

    Consume WCF service in Xamarin Cross Platform Application (Shared Project)

HotTag

Archive