Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Hi!!

 

Yesterday I find out that two dimensional arrays are not supported by

webservices.

 

:(

 

Can someone tell me how I can anyway use two dimensional arrays and web

services?!

 

 

 

regards,

 

 

gicio

Posted

Depending on how you're using your services (ie which platforms you want to support - java, .net, etc), you could try to use a dataset for your return and just create a datatable of your 2d array info.

 

Another approach, to keep with standard data-types, would be to use a string and use two delimiters to determine what was a column and what was a row - say the column delimiter is "," and row delimiter is ";":

value1, value2, value3; value1, value2, value3;

 

Then your caller would have to use a Join function to reassemble your strings into an array, but at least this is a supported type for web-services to return.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...