私には独特の問題があります。wsHttpBinding を使用して WCF サービスをホストしました。バインディング構成を含む server.config ファイルを以下に示します。
<system.serviceModel>
<services>
<service behaviorConfiguration="SafeSerice.ServiceBehavior" name="NEPLANWEBV18.1.Services.External.NeplanService">
<endpoint address="" binding="wsHttpBinding" contract="NEPLANWEBV18.1.External.INeplanService" bindingConfiguration="SafeServiceConf">
</endpoint>
<endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="SafeServiceConf" closeTimeout="00:05:00" openTimeout="00:10:00" receiveTimeout="01:20:00" sendTimeout="01:20:00" maxReceivedMessageSize="2147483647">
<security mode="TransportWithMessageCredential">
<message clientCredentialType="UserName" />
</security>
<readerQuotas maxArrayLength="2147483646" maxBytesPerRead="65536" maxStringContentLength="2147483646" />
</binding>
</wsHttpBinding>
</bindings>
ただし、IIS 7.0 でホストした後、WSDL を参照して表示すると、バインディングは次のようになります。
<wsdl:binding name="BasicHttpBinding_NeplanService" type="i0:NeplanService">
私はどこで間違いを犯していますか?このサービスには wsHttpBinding が必要です。誰かがこの問題に光を当てることができれば、本当に感謝しています.