SgDotNet
Singapore Professional .NET User Group -For Cool Developers

Service Factory

Latest post 09-01-2006 11:05 AM by kitkai. 6 replies.
  • 08-30-2006 5:12 PM

    Service Factory

    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)

  • 08-31-2006 12:33 PM In reply to

    Re: Service Factory

    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.

    Software development made easy with Paladin RAD Framework. Save some trees, use Stickies.NET
  • 08-31-2006 3:27 PM In reply to

    Re: Service Factory

    :( 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...

    Best Regards, Kit Kai, MVP (SharePoint Portal Server)

  • 08-31-2006 5:39 PM In reply to

    Re: Service Factory

    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... :(

    Best Regards, Kit Kai, MVP (SharePoint Portal Server)

  • 08-31-2006 10:43 PM In reply to

    Re: Service Factory

    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. 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... :(

    Now do you understand why I said I should be doing more .NET architecture instead of SharePoint? Stick out tongue

    Software development made easy with Paladin RAD Framework. Save some trees, use Stickies.NET
  • 08-31-2006 11:21 PM In reply to

    Re: Service Factory

    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.

     

    Best Regards, Kit Kai, MVP (SharePoint Portal Server)

  • 09-01-2006 11:05 AM In reply to

    Re: Service Factory

    Finally got it working... So now i know the parameter, databasename in the repository class constructor is actually refering to the connection string name in the web.config, not the name of the database.

    Best Regards, Kit Kai, MVP (SharePoint Portal Server)

Page 1 of 1 (7 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems