Dave Balzer

Confessions of a Webgypsy

<November 2008>
SuMoTuWeThFrSa
2627282930311
2345678
9101112131415
16171819202122
23242526272829
30123456


Navigation

Blog Roll

Subscriptions

Post Categories



WebServices Architecture

The company I'm working for is moving toward a WebServices Architecture and the project I'm doing has been tapped as the first to implement our new strategy.  I have done webservices in the past, but only from a very limited perspective and never using an object oriented model.  Now that I've jumped the fence to OOP, I'm not going back.  The issue I see in reading up on webservices (and the material may be out of date) is that you can only return primative types or user defined types (as long as they only implement primitive types).  What that boils down to is you can return a class from your webservice if it's built something like this:

Public Class MyPerson

  Public ID as Integer
  Public Name as String
  Public Address as String

End Class

You cannot, however, return a class that uses get/set properties and private internal variables such as:

Public Class MyPerson

  private _id as Integer

  Public Property ID() As Integer
    Get
      Return _id 
    End Get
    Set(ByVal Value As Integer)
      _id = Value
    End Set
  End Property

End Class

This is a departure from the development style that I've grown accustom to.  I am hoping someone can offer some advice in effectively architecting a webservices solution utilizing OOP.  Give me your experiences and pitfalls to avoid. 

posted on Thursday, May 19, 2005 12:42 PM by dbalzer





Powered by Dot Net Junkies, by Telligent Systems