Well Mike, its not exactly XML I am after, I rather need it to be in Json format.
However, I went on and tried your solution (mostly out of curiosity on how it works), I generated the stub classes as demonstrated in http://www.entityspaces.net/blog/2007/11/10/EntitySpacesPureWCFClientSideProxies.aspx. Below goes my code, and the outuput (the packet content)...
Code:
Cliente cliente = new Cliente();
if (cliente.LoadByPrimaryKey(idCliente))
{
ClienteProxyStub clienteProxyStub = new ClienteProxyStub();
XmlSerializer sf = new XmlSerializer(typeof(ClienteProxyStub));
StringWriter sw = new StringWriter();
sf.Serialize(sw, clienteProxyStub);
packet = sw.ToString();
}
Code:
<ClienteProxyStub xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<IdCliente xsi:nil="true" />
<esRowState>Added</esRowState>
</ClienteProxyStub>
So if I am not mistaken, shoudnt it spit out my table data? I guess I missed something...
Anyhow, as I stated before, even after creating a fine XML, I dont quite see this as a solution for my Json format issue...it was good, though, to get a little expertise on how stub classes work...