Hi All:
I just want to call an external web service .For the propose , I create an Code Unite and add an action on the page .It works fine on the page.
I try to schedule it to be a back ground job .By testing , it return an error as:
Microsoft Dynamics NAV Server attempted to issue a client callback to create an Automation object: f9d12f16-9c23-13d2-b32e-00c04f991bb6 (CodeUnit 80011 BackJobFun). Client callbacks are not supported on Microsoft Dynamics NAV Server.
and i found the website ..
https://docs.microsoft.com/en-us/dynamics-nav/feature-limitations-of-the-microsoft-dynamics-nav-web-client
COM and Automation Not supported. If a Dynamics NAV object implements Automation (objects and servers), then an error occurs when the object is run in Microsoft Dynamics NAV Web client.
how could i do it ? i just want to schedule it to call a external web service, why it so... hard...
Answers
How do you create the Automation, like this ?
And here you have an little example of calling a WS using dotNet.
https://forum.mibuso.com/discussion/72089/call-an-asmx-web-service-from-nav
Regards.
Yeap, I use the CREATE(AutomationControl, FALSE, TRUE); and it don't work with ERROR . But I use your example by using dotNet, it works very fine. Thanks for your GREAT help .
Your suggestion is right. Thanks a lot.
how could i catch the soapexception from web service when web service raise soapexception in navision codeunit?
I already answered your question here:
https://forum.mibuso.com/discussion/74259/how-could-i-catch-the-soapexception-from-web-service-when-web-service-raise-soapexception#latest
Regards