How do i add namespace to the SearchSchemes ? The following is the soap request and
The current output is as follows .
<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>
And I want the output like the following
<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>
And The following is my WCF interface , where I have added namespace at the sSeerviceContract , But I couldnt add namespace to 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);
}