名前空間を SearchSchemes に追加するにはどうすればよいですか? 以下は SOAP 要求で
、現在の出力は次のとおりです。
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:com="CompareYourTravelInsurance.Services">
<soapenv:Header/>
<soapenv:Body>
<com:SearchSchemes>
</com:SearchSchemes>
</soapenv:Body>
</soapenv:Envelope>
そして、次のような出力が必要です
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >
<soapenv:Header/>
<soapenv:Body>
<com:SearchSchemes xmlns="CompareYourTravelInsurance.Services">
</com:SearchSchemes>
</soapenv:Body>
</soapenv:Envelope>
そして、以下は、sSeerviceContract に名前空間を追加した私の WCF インターフェイスですが、OperationContract に名前空間を追加できませんでした。
[ServiceContract(Namespace = "CompareYourTravelInsurance.Services")]
public interface IMSMWcf
{
[OperationContract(
Action = "CompareYourTravelInsurance.Services/SearchSchemes",
Name = "SearchSchemes",
ReplyAction = "CompareYourTravelInsurance.Services/SearchSchemes",
Namespace="dddd"
), XmlSerializerFormat]
List<QuoteResult> SearchSchemes();
[OperationContract(
Action = "CompareYourTravelInsurance.Services/SaveTravellerInformation",
Name = "SaveTravellerInformation"
), XmlSerializerFormat]
void SaveTravellerInformation();
[OperationContract(
Action = "CompareYourTravelInsurance.Services/SendData",
Name = "SendData",
ReplyAction = "CompareYourTravelInsurance.Services/SendData"
)]
MsmData SendData(string QuoteDetailsRef);
}