Can I ask you a question? Have you checked out our 500+ page manual? Most of your questions are in there, like this one. (Using the generated code -> Adapter -> Distributed systems -> XML webservices )
I am reading & going through it. This is the understanding of how it works I have as of now.
Obviously I haven't mastered it or ignore my lack of understanding & knowledge, lead me there of, your pointer to help file infact did help.
I was looking in the forum, I last the thread id, but the summary of it was somebody was trying to create a DataAccessAdapter for webservice & it was told that webservice cannot be perceived as a DataAccessAdapter.
Let me explain my scenario I have & what I am planning to do.
I have an application where I want it to work with a direct database (when it is available to connect directly) or to a web service.
I am requiring to write a generic code so that I don't have to do custom logic in every place to put a switch if connected to database or web service.
So the approach one would do is as follows.
I create a webservice specific code in a project as follows in the client side.
MyProjectDataAccess.Update(UnitOfWork2 uow)
{
If connecting to Database Then
//using new adapter: uow.Commit(adapter,true)
else
uow.GetObjectData
myCommonWebservice.Update(serializeddata)
on the webservice side
Update(UnitofWork2 uow)
{
try
{
using adapter, uow.Commit(adapter, true)
}
catch
{
process error message
}
}
The pieces I am in process to learn is how to make it use binary for WCF communication. & if this approach is correct?
Thanks