RE: Basic question about creating/setting up webservices

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dan Rogers (danro_at_microsoft.com)
Date: 12/01/04


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
>
>
>



Relevant Pages

  • Re: WebService Windows Authentication ASP.NET 2.0
    ... If I have to use Dominicks solution I have ... to refactor my web service, but that is of course an option. ... I'm not a big fan of using the PrincipalPermission as it generally ...
    (microsoft.public.dotnet.security)
  • RE: Recommendations for securing a local webservice.
    ... You seem to be trying to secure a web service interface to only those ... protocol that was intended to be caller agnostic to implement a caller ... Install a special certificate as part of the ... Combine #2 with token based security. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: The underlying connection was closed: An unexpected error occurred on a receive
    ... down thru the thread tells me that you know your web service logic is ... the server timeout logic does what it is designed to do ... Each request is allocated to ... you can log the batch and relate it to the caller assigned ID. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Web Service randomly hangs when being called from SOAP::Lite
    ... to be returned to the caller. ... So, at max, is web service gets 3 hits per minutes. ... editing the timeout for the web service from the calling script. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Problem in passing encoding information to WebServices
    ... I found that the data type of this parameter in ... the name of my web service). ... In caller application: ... Dim blnBoolean As Boolean ...
    (microsoft.public.dotnet.framework.webservices)