Click here to Skip to main content
16,013,465 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Dynamic Filter Form Function Pin
allia24-Nov-03 12:54
allia24-Nov-03 12:54 
Questionuploading files, ASP? Pin
allia23-Nov-03 13:10
allia23-Nov-03 13:10 
AnswerRe: uploading files, ASP? Pin
alex.barylski23-Nov-03 18:45
alex.barylski23-Nov-03 18:45 
GeneralRe: uploading files, ASP? Pin
allia24-Nov-03 13:01
allia24-Nov-03 13:01 
AnswerRe: uploading files, ASP? Pin
Populate1233-Dec-03 22:17
Populate1233-Dec-03 22:17 
GeneralHierachical DropDownList Controls Q. Pin
xpurt21-Nov-03 20:15
xpurt21-Nov-03 20:15 
GeneralWebservices and Custom Type Objects Pin
JoostV21-Nov-03 9:30
JoostV21-Nov-03 9:30 
GeneralRe: Webservices and Custom Type Objects Pin
Heath Stewart22-Nov-03 5:11
protectorHeath Stewart22-Nov-03 5:11 
First, the method attributed with WebMethodAttribute must be on the server-side. You use the WSDL (contract) for the WebService to create a proxy object (i.e., an object that the client uses to proxy calls to the WebService).

As far as serialization goes, there is an example in your .NET Framework SDK. See <SDK>v1.0\Samples\Technologies\Serialization. You should also take a look at the System.Xml.Serialization. Many of the classes and methods in that namespace have example source code. It's just another way to control serialization that's designed more for XML. Just attributed classes and properties with various XML serialization attributes and have a public default constructor (a public constructor with no parameters).

Ultimately, serialization will get you farther (like with remoting), but I thought I'd mention XML serialization as an alternative when using WebServices (also handy to persist application settings and documents that you want other applications to be able to read easily).

Whichever way, just create an class that is attributed with SerializableAttribute (and optionally implements ISerializable, or that uses the attributes in System.Xml.Serialization. Pass that type as a parameter (or as a return value) in your WebService method and that's really all you need to do.

 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: Webservices and Custom Type Objects Pin
JoostV23-Nov-03 1:11
JoostV23-Nov-03 1:11 
GeneralRe: Webservices and Custom Type Objects Pin
Heath Stewart24-Nov-03 4:19
protectorHeath Stewart24-Nov-03 4:19 
GeneralCSS Help Needed - Clickable Table Cell Pin
BrianReeve21-Nov-03 9:11
BrianReeve21-Nov-03 9:11 
GeneralRe: CSS Help Needed - Clickable Table Cell Pin
Ian Darling21-Nov-03 9:33
Ian Darling21-Nov-03 9:33 
GeneralRe: CSS Help Needed - Clickable Table Cell Pin
Roger Wright21-Nov-03 9:37
professionalRoger Wright21-Nov-03 9:37 
GeneralRe: CSS Help Needed - Clickable Table Cell Pin
Rohit  Sinha21-Nov-03 10:42
Rohit  Sinha21-Nov-03 10:42 
GeneralHelp! Connection String Pin
CillyMe21-Nov-03 3:02
CillyMe21-Nov-03 3:02 
GeneralRe: Help! Connection String Pin
Terry O'Nolley23-Nov-03 18:11
Terry O'Nolley23-Nov-03 18:11 
GeneralRe: Help! Connection String Pin
Populate1233-Dec-03 22:29
Populate1233-Dec-03 22:29 
GeneralUnable to browse asp.net code Pin
okoji Cyril20-Nov-03 21:00
okoji Cyril20-Nov-03 21:00 
GeneralRe: Unable to browse asp.net code Pin
Paul Watson20-Nov-03 21:25
sitebuilderPaul Watson20-Nov-03 21:25 
Generalidiot question... Pin
l a u r e n20-Nov-03 8:36
l a u r e n20-Nov-03 8:36 
GeneralRe: idiot question... Pin
allia20-Nov-03 8:56
allia20-Nov-03 8:56 
GeneralRe: idiot question... Pin
l a u r e n20-Nov-03 9:04
l a u r e n20-Nov-03 9:04 
GeneralRe: idiot question... Pin
l a u r e n20-Nov-03 9:29
l a u r e n20-Nov-03 9:29 
GeneralRe: idiot question... Pin
allia20-Nov-03 10:21
allia20-Nov-03 10:21 
GeneralResizeable iframe Pin
Jim Taylor20-Nov-03 8:25
Jim Taylor20-Nov-03 8:25 

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.