[ServiceContract]
public interface IEventDismiss
{
[OperationContract]
[return:MessageParameter(Name="response")]
[XmlSerializerFormat]
Response EventDismissRequest(Request request);
}
[DataContract(Namespace = "")]
[Serializable]
public sealed class Request
{
[DataMember]
public string EventID { get; set; }
}
Above is my definition of the WCF service I'm trying to run, with the above I would get the following request structure in my SOAPUI
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:EventDismissRequest>
<!--Optional:-->
<tem:request>
<!--Optional:-->
<tem:EventID>?</tem:EventID>
</tem:request>
</tem:EventDismissRequest>
</soapenv:Body>
</soapenv:Envelope>
Is there a way I can get rid of the namespace tem under request and EventID but leave it on EventDismissRequest? so that my reqeuest data structure would look something like below:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header/>
<soapenv:Body>
<tem:EventDismissRequest>
<request>
<EventID>?</EventID>
</request>
</tem:EventDismissRequest>
</soapenv:Body>
</soapenv:Envelope>