A
Ayoa
I am attempting to call a web service from Access 2003 (using the built-in
web services reference tool). The web service should return an array of
integers.
Example web method (C#)
[WebMethod]
public int[] GetIntArray()
{
int[] a = new int[5];
for (int i = 0; i < 5; i++)
a = i * 10;
return a;
}
However at the client side (Access VBA) I am getting the Type Mismatch
error.
This is the function (auto-generated by the web services reference tool ) in
VBA that gives the error.
Public Function wsm_GetIntArray() As Variant
'Error Trap
On Error GoTo wsm_GetIntArrayTrap
wsm_GetIntArray = sc_GuidelinesService.GetIntArray()
Exit Function
wsm_GetIntArrayTrap:
GuidelinesServiceErrorHandler "wsm_GetIntArray"
End Function
When i call my web method from a c# client, it works Ok.
Any suggestion how how to fix this is welcome?
web services reference tool). The web service should return an array of
integers.
Example web method (C#)
[WebMethod]
public int[] GetIntArray()
{
int[] a = new int[5];
for (int i = 0; i < 5; i++)
a = i * 10;
return a;
}
However at the client side (Access VBA) I am getting the Type Mismatch
error.
This is the function (auto-generated by the web services reference tool ) in
VBA that gives the error.
Public Function wsm_GetIntArray() As Variant
'Error Trap
On Error GoTo wsm_GetIntArrayTrap
wsm_GetIntArray = sc_GuidelinesService.GetIntArray()
Exit Function
wsm_GetIntArrayTrap:
GuidelinesServiceErrorHandler "wsm_GetIntArray"
End Function
When i call my web method from a c# client, it works Ok.
Any suggestion how how to fix this is welcome?