RE: Basic question about creating/setting up webservices
From: Dan Rogers (danro_at_microsoft.com)
Date: 12/01/04
- Next message: Dan Rogers: "RE: error deploying web service"
- Previous message: Dan Rogers: "RE: Custom classes with web services"
- In reply to: news.microsoft.com: "Basic question about creating/setting up webservices"
- Next in thread: Sanjay Pais: "Re: Basic question about creating/setting up webservices"
- Reply: Sanjay Pais: "Re: Basic question about creating/setting up webservices"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 01 Dec 2004 19:45:12 GMT
Hi Sanjay,
Is the reason you want to refactor your application related to wanting to
share out all of the logic your web site uses to outside parties? If not,
then perhaps you want to think about what specific facades on your internal
logic you want to expose.
When you say you have existing classes, is it safe for me to assume that
your current web service code creates instances of these classes and then
uses them for types (data) and for the methods that operate on them? In
general, there is a quite a bit of work to do to make these refactored to a
web service due to issues with state-vs-statelessness, chatty versus chunky
designs, coupling etc, so without far more knowledge of the way your
current applications work, it is hard to say you could be successful at
just turning all of your methods and classes into web services.
Moving over to a service orientation requires some thoughts about making
the caller as independent as possible - and using the service side as a
gateway to application functionality, rather than a normal tightly coupled
object based system that lets setters and getters and methods all be mixed
together. In general, if your objects have business logic on your property
setters, or allow the caller to make assumptions about statefulness in the
managed code objects, there is a poor web service match and a lot of
refactoring for "very long distance (e.g. disconnected), stateless
behaviors" . Think of a web service based caller as being able to safely
assume that you connect and then dispose of your object references on each
use of a service (method).
I hope this helps
Dan Rogers
Microsoft Corporation
--------------------
>From: "news.microsoft.com" <spais@marketlinksolutions.com>
>Subject: Basic question about creating/setting up webservices
>Date: Wed, 1 Dec 2004 12:56:14 -0500
>Lines: 14
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
>X-RFC2646: Format=Flowed; Original
>Message-ID: <uToZS881EHA.3504@TK2MSFTNGP12.phx.gbl>
>Newsgroups:
microsoft.public.dotnet.framework.aspnet.webservices,microsoft.public.dotnet
framework.webservices,microsoft.public.dotnet.framework.webservices.enhance
ments
>NNTP-Posting-Host: 199.243.212.34
>Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
phx.gbl
>Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.webservices:7726
microsoft.public.dotnet.framework.webservices.enhancements:4971
microsoft.public.dotnet.framework.aspnet.webservices:26942
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservices
>
>I have been looking around at the documentation and have come across a lot
>about how to create webservices and consume them.
>
>I have a fairly large 3 tier application with a ton of classes in c# that
>are currently being used by the website. Is there a quick/ rad tool that
can
>take a c# class and generate a webservice proxy/asmx file? Any suggestions
>that does not involve writing the guts of the code from scratch :) would
be
>really helpful.
>
>Thanks in advance
>
>Sanjay
>
>
>
- Next message: Dan Rogers: "RE: error deploying web service"
- Previous message: Dan Rogers: "RE: Custom classes with web services"
- In reply to: news.microsoft.com: "Basic question about creating/setting up webservices"
- Next in thread: Sanjay Pais: "Re: Basic question about creating/setting up webservices"
- Reply: Sanjay Pais: "Re: Basic question about creating/setting up webservices"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|