Multi-dimensional arrays are not supported

F

Fayez Al-Naddaf

I got this message when I tried to browse my web service
"Multi-dimensional arrays are not supported. Use a jagged
array instead"
Can someone told me why?
 
N

Nicholas Paldino [.NET/C# MVP]

Fayez,

I think that it has to do with the fact that the WSDL returned really
doesn't know what the dimensions on the array are. With the way that XML is
structured, representing jagged arrays is easy (you increase the bounds by
adding more elements), but since you don't know the bounds on a
multi-dimensional array at compile time (when returned from a method), it
can't really determine what the size should be, and the runtime on the
client side would not know how to reconstruct it.

Hope this helps.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top