我正在访问已在WAS服务器中设置的服务,其中如何启用http和https端点?
允许http和https端点访问。我如何修改我的app.config文件中的相同内容?
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="WebServiceUrl1" value="http://vissvc- test.e.corpintra.net/VisSvcNative/VisService"/>
<add key="LogoutUrl" value="http://login.e.corpintra.net/internal/logout"/>
</appSettings>
<system.net>
<defaultProxy >
<proxy autoDetect ="True" />
</defaultProxy>
</system.net>
<system.serviceModel>
<bindings>
<customBinding>
<binding name="SoapBinding">
<customTextMessageEncoding encoding="UTF-8" messageVersion="Soap11" />
<httpTransport/>
</binding>
</customBinding>
</bindings>
<client>
<endpoint address="http://vissvc-test.e.corpintra.net/VisSvcNative/VisService"
binding="customBinding" bindingConfiguration="SoapBinding" contract="ServiceReference1.VisServicePortType" name="VisService" behaviorConfiguration="behavior" />
</client>
</system.serviceModel>
</configuration>
我使用.NET C#4.0
与论坛网站不同,我们不使用“谢谢”或“任何帮助表示赞赏”,或在[so]上签名。请参阅“[应该'嗨','谢谢',标语和致敬从帖子中删除?](http://meta.stackexchange.com/questions/2950/should-hi-thanks-taglines-and-salutations-be -removed-from-posts) –
你正在使用的服务是公开HTTP? –
@ MilanRaval-它既有http也有https,https://vissvc-int.e.corpintra.net/VisSvcNative/VisService。我想包括三个端点,一个端点和http,另外两个使用https。是在app.config中配置的一个是HTTP。 –