AX 2012, I have this code that returns catches any error during a web request:
try{ httpWebResponse = webRequest.GetResponse(); } catch (Exception::CLRError) { ex = ClrInterop::getLastException(); if (ex != null) { ex = ex.get_InnerException(); if (ex != null) { error(ex.ToString()); } } return; }
/*
Also tried
*/
So this is working OK, but I'm justing getting something generic like "server returned error 500"
Is there any way I can get the full XML Response from the web service I'm calling. The thing is that the exact detailed error will be in the full response body.
Any ideas?
*This post is locked for comments