Hi there,
i have created a Web Service in .Net which has two methods
1) This method returns the Employee name when you pass the Employee ID.
2) This methods will retrieve all the Employee ID's.
When i am trying to consume the service the first method is working fine, but the second method gives me error i.e:
"Object 'CLRObject' could not be created"
Here is the Job Code which i wrote to get all the IDs
static void om_testConsum_empIds(Args _args)
{
InteropPermission interopPermission = new InteropPermission(InteropKind::ClrInterop);
IISService.IISServiceReference1.MySqlServiceSoapClient _client;
System.Exception ex;
System.Array resutArray;
int empid;
interopPermission.assert();
try
{
_client = new IISService.IISServiceReference1.MySqlServiceSoapClient();
startLengthyOperation();
resutArray = _client.getEmployeeIDs();
endLengthyOperation();
empid = CLRInterop::getType(resutArray.GetValue(0));
info(strFmt(int2str(empid)));
}
catch(Exception::CLRError)
{
ex = CLRInterop::getLastException();
info(ex.ToString());
}
}
Can you please guide me how to consume the above method.
Thanks
Regards