Anyone tried the service factory? They got so many things inside that I already forgot what they were talking about at the beginning when I'm watching to the middle of the webcast...
Steps in using Service Factory seems to be
1. Create the data type
2. Create the message type
3. Forgot
I can understand what is datatype. But when I create message type, I'm lost. What is it for actually? Is it for the payload for each webmethod? And why do I have to define request type and response type when I don't know what method it is for??
Where is paladin 2.0?? :(
Best Regards, Kit Kai, MVP (SharePoint Portal Server)
Hi KitKai,
There are some Hands-on-labs for it that you may want to explore. You can get it from their workspace (http://practices.gotdotnet.com/svcfactory)
Hope it helps.
:( The hands on lab only teaches you how to do things... It doesn't teach you why you need to define those stuff.
Now i realise the factory does not allow you to do anything if you don't create those stored procedures... I.e. If I want to use sql statements in my data access layer, it doesn't allow you to create the business entity classes....
I'm going to give up soon, as this is a simple project. I tot simple project would be easy to learn enterprise library, but it seems that I'm wrong. It's too complicated...
so many things i dun understand... They generated a GetAllFrom[BusinessEntity]() method for me to get all the business entity, yet they don't generate a GetOne method for me. Nevermind
I found a FindOne mehod in the data access layer, which needs me to supply a ISelectionFactory. Yet, looking at the GetAllFrom[BusinessEntity] method, they use the GetAllFrom[BusinessEntity]SelectionFactory method to get the ISelectionFactory object, yet that method is marked as internal...
Experience aien't good. I was telling one of my client that MS developers are a spoilt lot, but seems that I'm proven wrong... :(
kitkai: so many things i dun understand... They generated a GetAllFrom[BusinessEntity]() method for me to get all the business entity, yet they don't generate a GetOne method for me. NevermindI found a FindOne mehod in the data access layer, which needs me to supply a ISelectionFactory. Yet, looking at the GetAllFrom[BusinessEntity] method, they use the GetAllFrom[BusinessEntity]SelectionFactory method to get the ISelectionFactory object, yet that method is marked as internal... Experience aien't good. I was telling one of my client that MS developers are a spoilt lot, but seems that I'm proven wrong... :(
Now do you understand why I said I should be doing more .NET architecture instead of SharePoint?
Then anti climax. When I finally get the whole project to compile, after adding all the crud logic, plus the GetOneEntity method into the data access layer, business logic, when i try to retrieve all the records, I got some configuration error with the data access block. No idea where to do the configuration, and too tired to try now. Wondering why the service factory don't configure that portion for me, or why the documentation didn't at least point me to where I can find it.