Click here to Skip to main content
15,887,746 members
Home / Discussions / C#
   

C#

 
QuestionWebService not returning Color Pin
Luc Pattyn24-Sep-10 10:26
sitebuilderLuc Pattyn24-Sep-10 10:26 
AnswerRe: WebService not returning Color Pin
PIEBALDconsult24-Sep-10 12:19
mvePIEBALDconsult24-Sep-10 12:19 
GeneralRe: WebService not returning Color [modified] Pin
Luc Pattyn24-Sep-10 12:32
sitebuilderLuc Pattyn24-Sep-10 12:32 
GeneralRe: WebService not returning Color Pin
PIEBALDconsult24-Sep-10 13:28
mvePIEBALDconsult24-Sep-10 13:28 
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 
The XML you transfer in web service calls are pretty much just bags of data that allow you to populate objects at either end. Unfortunately this is hidden from the outset in the .net framework tools. For example, you can create a "proper" object with methods, but these are lost on the client side if you just use the generated proxy classes the messages are deserialized into (at least not without extra developer jiggery-pokery).

Web services should theoretically be interoperable (e.g. a Java/ C++ clients should be able to call a .net web-service) if the Color object was directly serializable across the web service it would break this pattern as it is specific to .net. You have two [easy] ways to handle your problem: send the hex colour value as a string or (better) convert it to an integer. Obviously this will involve a little work to re-create the System.Color value.

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 
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 

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.