on 04-30-2007 6:08 AM
Hi,
These days I got a task to call a web service by VBA in Excel, but faced the following two problems about empty complex array.
<b>1. When the returned value of a web service contains empty array, it crashed with "SoapMapper: array dimensions do not match definition"</b>
Another guy faced the same question with me, detail at http://www.topxml.com/SOAPToolkit/rn-246726_SoapMapper-array-dimensions-do-not-match-definition.aspx
<b>2. When the input parameter contains empty array, it crashed with "Operation Not Supported"</b>
Dim arrayStudent() As Student
Call webservice.DoThings( arrayStudent )
Use dummy row to avoid empty array.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
we have faced the same Problem in our PHP / Typo3 solution. We used this switch:
$object_array = array();
if (is_object($salesorders->SALES_ORDERS_HEAD->item)) {
$object_array[] = $salesorders->SALES_ORDERS_HEAD->item;
} else {
$object_array = $salesorders->SALES_ORDERS_HEAD->item;
}
Best regards
Gregor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.