Re: Retrieving unnecessary data



On 2008-02-14 14:52:24 -0600, ShaneLM <shane.niebergall@xxxxxxxx> said:

I didn't mention that these methods and objects are being
returned via a web service so the classes can't have functionality
associated with it.

Then they aren't classes. Classes expose behavior and hide data. What your web services are returning are *data structures* not classes.

You can hide data structures behind classes. You can make classes that fetch data using web services. So you can still do what you want to do. You can have a Car class that has a method to return the stats and another method to return the passengers. Each of those can be implemented with separate web services.

--
Robert C. Martin (Uncle Bob)  | email: unclebob@xxxxxxxxxxxxxxxx
Object Mentor Inc.            | blog:  www.butunclebob.com
The Agile Transition Experts  | web:   www.objectmentor.com
800-338-6716                  |



.



Relevant Pages

  • Re: SOA and its real state of the art
    ... function and some parameter data in an xml document and fire it off ... It's important to realize that Web Services and SOA are not ... Functionality is exposed as a set of services. ...
    (comp.object)
  • Shall I implement this in javascript?
    ... Hi all, I need to add a new functionality to our product, where I need ... to access some web services. ... the user interface. ... I'm new to javascript so I'm not sure if this is ...
    (comp.lang.javascript)
  • Adding project reference of CF class library to web service
    ... I want to expose some of the functionality from my CF class library via ... connection functionality from the SqlServerCE namespace. ... does not match the assembly reference. ... this an ok process of exposing a device class library via web services? ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to distinguish WinForms from ASP .NET?
    ... various application from asp pages, web services to winforms and windows services. ... some of the functionality in my libarary is dependent on where it is ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Server Side Scripting
    ... > functionality, right? ... You can still get data from SharePoint using web services ... or the URL Protocol from your application. ...
    (microsoft.public.sharepoint.windowsservices)