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

C#

 
AnswerRe: how to pass optional parameter in function Pin
PhilDanger7-Aug-07 3:37
PhilDanger7-Aug-07 3:37 
GeneralRe: how to pass optional parameter in function Pin
imranafsari7-Aug-07 3:56
imranafsari7-Aug-07 3:56 
GeneralRe: how to pass optional parameter in function Pin
PhilDanger7-Aug-07 4:04
PhilDanger7-Aug-07 4:04 
GeneralRe: how to pass optional parameter in function Pin
imranafsari7-Aug-07 4:29
imranafsari7-Aug-07 4:29 
GeneralRe: how to pass optional parameter in function Pin
Tristan Rhodes7-Aug-07 6:17
Tristan Rhodes7-Aug-07 6:17 
AnswerRe: how to pass optional parameter in function Pin
Guffa7-Aug-07 4:29
Guffa7-Aug-07 4:29 
GeneralRe: how to pass optional parameter in function Pin
Scott Dorman7-Aug-07 14:33
professionalScott Dorman7-Aug-07 14:33 
QuestionWebservice XMLSerialization Question Pin
matthias s.7-Aug-07 3:19
matthias s.7-Aug-07 3:19 
hi there,

I'm currently building a webservice and I've got three questions: is there anything special i need to know about the returned xml? right now, I just return an object (for expample an instance of my Vehicle class) from the WebMethod and this looks fine to me.

The second question is, if I use the automated xml serialization with a class which is derived from a base class I defined (e.g. I've got a Car class which derives from the Vehicle class), the properties of the baseclass are not serialized. Properties of the derived class look fine. Why is that?

Last but not least: What is the correct way to return an error from a WebMethod if, for example the expected parameters are invalid or an exception occured.

thanks a lot!



/matthias


I love deadlines. I like the whooshing sound they make as they fly by.
[Douglas Adams]

AnswerRe: Webservice XMLSerialization Question Pin
Pete O'Hanlon7-Aug-07 3:50
mvePete O'Hanlon7-Aug-07 3:50 
GeneralRe: Webservice XMLSerialization Question Pin
matthias s.7-Aug-07 4:07
matthias s.7-Aug-07 4:07 
QuestionMaxLength Property Pin
Eugene4127-Aug-07 3:16
Eugene4127-Aug-07 3:16 
AnswerRe: MaxLength Property Pin
snorkie7-Aug-07 3:22
professionalsnorkie7-Aug-07 3:22 
AnswerRe: MaxLength Property Pin
Pete O'Hanlon7-Aug-07 3:23
mvePete O'Hanlon7-Aug-07 3:23 
AnswerRe: MaxLength Property Pin
Giorgi Dalakishvili7-Aug-07 3:46
mentorGiorgi Dalakishvili7-Aug-07 3:46 
QuestionRegular expressions Pin
Lutosław7-Aug-07 2:50
Lutosław7-Aug-07 2:50 
AnswerRe: Regular expressions Pin
snorkie7-Aug-07 3:30
professionalsnorkie7-Aug-07 3:30 
AnswerRe: Regular expressions Pin
Hessam Jalali7-Aug-07 3:35
Hessam Jalali7-Aug-07 3:35 
GeneralRe: Regular expressions Pin
Lutosław7-Aug-07 4:09
Lutosław7-Aug-07 4:09 
AnswerRe: Regular expressions Pin
Malcolm Smart7-Aug-07 3:44
Malcolm Smart7-Aug-07 3:44 
AnswerRe: Regular expressions Pin
PhilDanger7-Aug-07 3:58
PhilDanger7-Aug-07 3:58 
GeneralRe: Regular expressions Pin
Lutosław7-Aug-07 4:13
Lutosław7-Aug-07 4:13 
AnswerThanks, problem solved Pin
Lutosław7-Aug-07 4:24
Lutosław7-Aug-07 4:24 
QuestionMultithreading question Pin
Stevo Z7-Aug-07 2:07
Stevo Z7-Aug-07 2:07 
AnswerRe: Multithreading question Pin
il_masacratore7-Aug-07 2:51
il_masacratore7-Aug-07 2:51 
GeneralRe: Multithreading question Pin
Stevo Z7-Aug-07 2:58
Stevo Z7-Aug-07 2:58 

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.