Hi Martin,
Below is the implementation of sendRequest()
str sendRequest(XML _xml)
{
str ret;
System.Exception ex;
Microsoft.Dynamics.Ax.Tms.API.TmsService tmsService = new Microsoft.Dynamics.Ax.Tms.API.TmsService();
perm.assert();
try
{
ret = tmsService.ExecuteTransaction(_xml);
}
catch (Exception::CLRError)
{
// BP Deviation Documented
ex = ClrInterop::getLastException();
if (ex != null)
{
ex = ex.get_InnerException();
}
}
catch (Exception::Internal)
{
// BP Deviation Documented
ex = ClrInterop::getLastException();
if (ex != null)
{
ex = ex.get_InnerException();
}
}
if (ex != null)
{
TMSErrorLog::createLogEntry(ex);
throw error(ex.get_Message());
}
CodeAccessPermission::revertAssert();
return ret;
}
Below are the errors that I am getting in the Visual studio while debugging
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'Ax32Serv.exe' (CLR v4.0.30319: X++ IL App Domain): Loaded 'Microsoft.GeneratedCode'.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'Ax32Serv.exe' (CLR v4.0.30319: X++ IL App Domain): Loaded 'Microsoft.GeneratedCode'.
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
A first chance exception of type 'System.IO.FileNotFoundException' occurred in mscorlib.dll
'Ax32Serv.exe' (CLR v4.0.30319: X++ IL App Domain): Loaded 'Microsoft.GeneratedCode'.
A first chance exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll
A first chance exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll
A first chance exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll
A first chance exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll
A first chance exception of type 'System.Web.Services.Protocols.SoapException' occurred in System.Web.Services.dll
'Ax32Serv.exe' (CLR v4.0.30319: X++ IL App Domain): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.SqlXml\v4.0_4.0.0.0__b77a5c561934e089\System.Data.SqlXml.dll'. Cannot find or open the PDB file.
A first chance exception of type 'System.FormatException' occurred in mscorlib.dll
A first chance exception of type 'System.FormatException' occurred in mscorlib.dll