Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / November 2005

Tip: Looking for answers? Try searching our database.

Using a Class Factory to Return a Web Service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
johntallon - 17 Nov 2005 15:23 GMT
Hi People,

I have a question regarding Web Service and Class Factories.

I have a Collection of Web Services that do specific jobs. There are
about 15 in all. These services are in one VS.NET project.

I have created a Base Web Service Class, that implements Authenticate,
Exception Handling and a few other common functions.

My Other Web Service Classes inherit this Base web service, as well as
add there own specific functionality, such as Login, Updates, and some
other functionality.

What I would like to do is use a Factory to Create the Appropreate Web
Service by using a Parameter in the Factory.Create Class eg:

BaseService Factory.Create(string ServiceName)
{
          if(ServiceName == "User")
                return new UserService();

          if(ServiceName == "Lists")
                return new ListService();

          if(ServiceName == "Payments")
                return new PaymentsService();
}

Now I know that this code is not exactly right for WebServices, but I
want to use the same Pattern.

Is there a way I can call a factory to Create a Service which is
derived from the baseService Web Service?

Any Ideas would be great...

Thanks
Vishakha - 21 Nov 2005 10:15 GMT
Hi Johntallon!

I want a list of web services which do some specific job for creating some
forms in XSN.
 I would b very grateful if u send me the list of web services in u'r
collection.

Thanks,
Vishu

> Hi People,
>
[quoted text clipped - 34 lines]
>
> Thanks

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.