View Single Post
Old June 10th, 2008, 05:35 AM
robzyc robzyc is offline
Friend of Wrox
Join Date: Mar 2007
Location: Hampshire, United Kingdom.
Posts: 432
Thanks: 0
Thanked 1 Time in 1 Post

OK, looks like I was completely going at this from the wrong angle!

I have now ditched the interfaces and simply created a method within the web app to convert to the appropriate type.
I did this because:

• The web reference will change in each subsequent web app, meaning the "type" will change.
• I didn't like having interfaces all those interfaces.
• It just made sense and made me feel stupid :D

Still have a few little bits to iron out, but I can actually get the return data from the web service now and pass it to the control.

It would be nice if I could create some sort of generic for this, but would need to utilise some grey matter for that :)