passing multi-dimensional arrays to web service

V

volx

Hello all:

What is the proper way to implement in MC++ a web service which accepts
a multi dimensional array as a parameter to one of its methods?

This does compile:

[System::Web::Services::WebMethod(Description="Test 2D arrays")]
double pass2DArray(Double array __gc[,]);

but accessing the .asmx servcie produces:

"System.InvalidOperationException: Multi-dimensional arrays are not
supported. Use a jagged array instead."

Trying to use jagged array like this:

[System::Web::Services::WebMethod(Description="Test 2D arrays")]
double pass2DArray(Double array __gc[][]);

results in compilation error:
"error C2691: 'double __gc[]' : invalid type for __gc array element".

I am using this together with the MS WebServices Toolkit 2.01 hence
cross posting to the VBA group.
Microsoft Visual C++ .NET 69462-005-7997287-18829

Thanks,

V.
 

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