Newbie sort of question (webservices)

Posts   
 
    
Phil
User
Posts: 9
Joined: 01-Apr-2005
# Posted on: 18-May-2005 15:49:36   

Hi -

This question is likely to make me for the newbie I truly am.

I'm trying to write a set of webservices. What I'm trying to avoid is having to recompile or modify webservice consumers when the service evolves. Consquently I'm versioning the messages using different sets of WDSL's.

Using LLBLGEN as the backend DAL layer I've created some structs to represent my data structures within the webservice. Currently I'm manually assigning the entity properties to the struct before passing this back to the consumer. This protects the consumer from DAL changes but does make it rather dull work coding. Is there a way of casting the entity against the struct or something similar? As the entity changes (say a new field is added) the original struct will not change, which works if you do it manually but may throw a spanner in the works if there is a way to cast between types.

It maybe a silly question I know, but I have no morals. simple_smile

Thanks for any advice you can give.

Phil.