WCF サービスに外部 WSDL ファイルを使用しています。
<wsdl:service n<wsdl:service name="CommonService">
<wsdl:port name="BasicHttpBinding_ICommonService" binding="tns:BasicHttpBinding_ICommonService">
<soap:address location="http://localhost:1371/CommonService.wsdl"/>
</wsdl:port>
</wsdl:service>
このサービスへのサービス参照を追加すると、クライアントでメソッドが許可されていないというエラーが表示されます。
しかし、上記のコードを WSDL ファイルから削除してこれに置き換えると、正常に動作します。どうしたの。誰でもこの背後にある理由を特定できますか。
<wsdl:service name="CommonService">
<wsdl:port name="BasicHttpBinding_ICommonService" binding="tns:BasicHttpBinding_ICommonService">
<soap:address location="http://localhost:1371/Service.svc"/>
</wsdl:port>
</wsdl:service>