別のプロジェクトで ASP.NET Web サービスを呼び出す WCF クライアントがあります。次のエラー メッセージが表示されます。
System.Web.Services.Protocols.SoapException: サーバーは HTTP ヘッダー SOAPAction http://localhost/IMyWebService/MeMethodの値を認識しませんでした
Web サービス コード:
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[System.ComponentModel.ToolboxItem(false)]
[System.Web.Script.Services.ScriptService]
public class MyWebService : System.Web.Services.WebService, IMyWebService
{
[WebMethod]
public string MyMethod() {return "";}
}
public interface IMyWebService
{
string MyMethod();
}
WCF クライアント コード:
[ServiceContract]
public interface IMyWCFService
{
[OperationContractAttribute(Action = "http://localhost/IMyWebService/MeMethod")]
string MyMethod();
}
誰が問題が何であるかを知っていますか。
ありがとう