Click here to Skip to main content
16,010,334 members
Home / Discussions / C#
   

C#

 
GeneralRe: WebService not returning Color Pin
Luc Pattyn24-Sep-10 14:27
sitebuilderLuc Pattyn24-Sep-10 14:27 
GeneralRe: WebService not returning Color Pin
PIEBALDconsult24-Sep-10 22:07
mvePIEBALDconsult24-Sep-10 22:07 
GeneralRe: WebService not returning Color Pin
Luc Pattyn25-Sep-10 4:55
sitebuilderLuc Pattyn25-Sep-10 4:55 
GeneralRe: WebService not returning Color Pin
Keith Barrow25-Sep-10 1:34
professionalKeith Barrow25-Sep-10 1:34 
GeneralRe: WebService not returning Color [modified] Pin
PIEBALDconsult25-Sep-10 4:19
mvePIEBALDconsult25-Sep-10 4:19 
GeneralRe: WebService not returning Color Pin
Luc Pattyn25-Sep-10 4:49
sitebuilderLuc Pattyn25-Sep-10 4:49 
GeneralRe: WebService not returning Color Pin
PIEBALDconsult25-Sep-10 6:58
mvePIEBALDconsult25-Sep-10 6:58 
GeneralRe: WebService not returning Color Pin
Luc Pattyn25-Sep-10 7:39
sitebuilderLuc Pattyn25-Sep-10 7:39 
OK, let me provide some context. I'm preparing a proposal specification for a CodeProject Web Service, something that would provide information about members, articles, messages, etc, so several existing and future applications (such as CP Vanity) could use it to their advantage, which would be much preferred over fetching web pages and scraping HTML. The proposal would be discussed amongst interested members before Chris might commit to it and implement it.

I expect the CP data model (as well as the subset we want access to) will evolve just like anything else, and I do want future old clients not to break under future new service versions. So I'm looking for a simple data model and a reliable communication protocol. I'm rather pleased with what IIS and WSDL are offering, as it works perfectly for basic types such as int, float, bool, string, as well as DateTime; it works pretty well for Size too.
FYI: WSDL.EXE is a utility that interrogates the service (using WSDL, an XML-based language) and creates a proxy class to be used by the client.

I mainly see two shortcomings:

1.
Color does not get through by default; it needs extra code at both ends. The extra code (e.g. client-side deserialization) cannot be transmitted automatically by WSDL, so there is a risk for future compatibility problems.
Color sure isn't the only type that wouldn't get across, however from the types I think we need, it is the only one that fails.

2.
Everything that was a class or struct at the server side becomes a class (never a struct) of a different type at the client. So one can send a System.Graphics.Size without any problem, but one gets a lookalike class instance at the client, so when a real System.Graphics.Size is required, one must recreate it. No big deal, just not very elegant.

I welcome your thoughts.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: WebService not returning Color Pin
PIEBALDconsult25-Sep-10 9:18
mvePIEBALDconsult25-Sep-10 9:18 
GeneralRe: WebService not returning Color Pin
Luc Pattyn25-Sep-10 9:34
sitebuilderLuc Pattyn25-Sep-10 9:34 
GeneralRe: WebService not returning Color Pin
PIEBALDconsult25-Sep-10 9:52
mvePIEBALDconsult25-Sep-10 9:52 
GeneralRe: WebService not returning Color Pin
Luc Pattyn25-Sep-10 9:54
sitebuilderLuc Pattyn25-Sep-10 9:54 
GeneralRe: WebService not returning Color Pin
PIEBALDconsult25-Sep-10 12:46
mvePIEBALDconsult25-Sep-10 12:46 
GeneralRe: WebService not returning Color Pin
Luc Pattyn25-Sep-10 13:03
sitebuilderLuc Pattyn25-Sep-10 13:03 
GeneralRe: WebService not returning Color Pin
PIEBALDconsult25-Sep-10 13:53
mvePIEBALDconsult25-Sep-10 13:53 
GeneralRe: WebService not returning Color Pin
Keith Barrow25-Sep-10 12:08
professionalKeith Barrow25-Sep-10 12:08 
GeneralRe: WebService not returning Color Pin
Luc Pattyn25-Sep-10 12:51
sitebuilderLuc Pattyn25-Sep-10 12:51 
GeneralRe: WebService not returning Color Pin
PIEBALDconsult25-Sep-10 14:00
mvePIEBALDconsult25-Sep-10 14:00 
GeneralRe: WebService not returning Color Pin
Luc Pattyn25-Sep-10 14:18
sitebuilderLuc Pattyn25-Sep-10 14:18 
GeneralRe: WebService not returning Color Pin
PIEBALDconsult25-Sep-10 15:16
mvePIEBALDconsult25-Sep-10 15:16 
GeneralRe: WebService not returning Color Pin
Luc Pattyn25-Sep-10 15:26
sitebuilderLuc Pattyn25-Sep-10 15:26 
GeneralRe: WebService not returning Color Pin
PIEBALDconsult25-Sep-10 16:20
mvePIEBALDconsult25-Sep-10 16:20 
GeneralRe: WebService not returning Color Pin
Luc Pattyn25-Sep-10 17:26
sitebuilderLuc Pattyn25-Sep-10 17:26 
AnswerRe: WebService not returning Color Pin
PIEBALDconsult25-Sep-10 17:34
mvePIEBALDconsult25-Sep-10 17:34 
GeneralRe: WebService not returning Color Pin
Luc Pattyn25-Sep-10 17:44
sitebuilderLuc Pattyn25-Sep-10 17:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.