etechpartner wrote:
According to the docs in LLBLGen I should be able to do this:
[WebMethod]
public bool SaveCustomer(CustomerEntity toSave)
{
using(DataAccessAdapter adapter = new DataAccessAdapter())
{
return adapter.SaveEntity(toSave);
}
}
That's what my question was about.
There are a dozen ways to skin a cat, and this is one way. The way .NET converts an object into XML is through Serialization. The problems that occur with clients not being able to consume web services, in my experience, occur because the tools we use lean towards a certain platform.
The promise of web services (cross platform software as a service) is really only realized when you use a "contract first" approach. This means creating an XSD Schema for the expected request and response documents, then creating a service that exposes these operations as a web service. Under the hood you can transform the request (XSLT) into a serialized LLBLGen object, then deserialize and process the object as desired (i.e. call the Save method or whatever the operation should do), and finally send back the response doc with the results.