COM and Automation Not supported error When Run Back Ground Job to call external web services .

vinceliu666
Member Posts: 51
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...
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...
0
Best Answers
-
Use Dotnet if your process is running on the service tier.5
-
Hello @vinceliu666 ,
How do you create the Automation, like this ?CREATE(AutomationControl, FALSE, TRUE);
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.
5
Answers
-
Use Dotnet if your process is running on the service tier.5
-
Hello @vinceliu666 ,
How do you create the Automation, like this ?CREATE(AutomationControl, FALSE, TRUE);
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.
5 -
Hi ftornero:
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 .0 -
Hi Vapro:
Your suggestion is right. Thanks a lot.0 -
HI ftornero
how could i catch the soapexception from web service when web service raise soapexception in navision codeunit?0 -
Hello @vinceliu666 ,
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
Regards0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions