Being my first WCF project, I am getting confused and need some clarification. I want to use WCF to build a web service that accepts an XML string inside a SOAP protocol.
<ITEM_SEND xml:lang="en-US">
<T_ID>1368</T_ID>
<PART>8058</PART>
</ITEM_SEND>
So, I am thinking that I need to do the following for my interface:
[ServiceContract]
public interface IInvService
{
[OperationContract]
XmlDocument GetInventory(XmlDocument query);
}
Then for my actual method I believe I would do the following:
public XmlDocument GetInventory(XmlDocument query)
{
XmlDocument xmlDoc = new XmlDocument();
//... do stuff and return xml
return xmlDoc;
}
Am I on the right track with using XmlDocument type for this or is there another data type I should be using for the XML string?