c# - How can I enable both http and https endpoint? -
I am accessing the service whose installation is in the WAS server
Allow both http and https How do I modify endpoint access in my app.config file?
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Configuration & gt; & Lt; AppSettings & gt; & Lt; Add key = "WebServiceUrl1" value = "http: // vissvc- test.e.corpintra.net/VisSvcNative/VisService"/> & Lt; Add key = "LogoutUrl" value = "http://login.e.corpintra.net/internal/logout" /> & Lt; / AppSettings & gt; & Lt; System.net & gt; & Lt; DefaultProxy & gt; & Lt; Proxy Autocumentate = "True" /> & Lt; / DefaultProxy & gt; & Lt; /system.net> & Lt; System.serviceModel & gt; & Lt; Binding & gt; & Lt; Custombinding & gt; & Lt; Bond name = "soap off" & gt; & Lt; Custom Text Message Encoding = "UTF-8" MessageSuggestions = "SOAP 11" /> & Lt; HttpTransport / & gt; & Lt; / Binding & gt; & Lt; / CustomBinding & gt; & Lt; / Binding & gt; & Lt; Customers & gt; & Lt; Endpoint address = "http://vissvc-test.e.corpintra.net/VisSvcNative/VisService" binding = "custombinding" binding configuration = "soapbinding" contract = "servicerifference1wceseverporttype" name = "wysseva" behavioral problem = "behavior "/ & Gt; & Lt; / Customer & gt; & Lt; /system.serviceModel> & Lt; / Configuration & gt;
I am using .NET c # 4.0
You may need to for more information on Also note that these binding names must be matched to that server configuration. & lt; HttpsTransport & gt; Under
the & lt; HttpTransport & gt;
& lt; HttpsTransport & gt; See
tags: Edit: What do I mean & lt; HttpsTransport & gt; There should be another binding configuration for
, for example:
& lt; Bindings & gt; & Lt; Custombinding & gt; & Lt; Bond name = "soap off" & gt; & Lt; HttpTransport / & gt; & Lt; / Binding & gt; & Lt; Binding name = "hpsps binding" & gt; & Lt; HttpsTransport / & gt; & Lt; / Binding & gt; & Lt; / CustomBinding & gt; & Lt; / Binding & gt;
Comments
Post a Comment