Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing arrays of objects to and from webservices...

Status
Not open for further replies.

msteggo

Programmer
Oct 27, 2000
52
0
0
US
I am using .NET 2003 and the c# standalone language to develop a pocket PC application and I make calls to a middleware server through webservices made from the same language. My question is simple...How do I pass arrays of Objects to and from the webservice?

Mike

Lost and loving it...
 
Doing this (IMO) falls into the category of "Yes you can, but you probably shouldn't". If I were to need to pass an array of objects to a webservice, I would serialize my array into an XML representation first. Because it's a string (aka simple datatype), any webservice should be able to handle it.

Chip H.


If you want to get the best response to a question, please check out FAQ222-2244 first
 
You can pass only array of the primitive types and not other Object type. As chiph said , in this case you have serialize the array into a XML representation.
-obislavu-

 
Thanks all for your replies. I will heed your advice and send up xml...
Mike

Lost, but happy in the bliss...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top