Webservice does not work with Codeunit that use OCX Function

jaja_bings
Member Posts: 16
Hi,
we want to archive already as PDF printed documents in our Document Management System (DMS).
For this we are using in the codeunit that is called by the published web service, some OCX-Functions that is provided by the DMS.
If I start the codeunit from the classic client it runs fine. No pop-up or similar is shown.
If I start the codeunit by calling the web service, i get the error message
"Callback functions are not allowed."
Now I searched already the mibuso board and recognize that I have to check for any UI Interaction like here described.
To ensure that, I comment all lines out until my web service is working. After that I test for comment each line in step by step, if it is still working.
I recognize that the first line where I use the OCX from the DMS, the (first?) error raised, that I get the "Callback..." exception.
What I have to do, that i get it working? Any suggestions? Are there any known problems using OCX in codeunits that are called by web services?
We use NAV2009 R2- build 32012.
Thanks in advance for your comments.
Kind regards,
jaja_bings
we want to archive already as PDF printed documents in our Document Management System (DMS).
For this we are using in the codeunit that is called by the published web service, some OCX-Functions that is provided by the DMS.
If I start the codeunit from the classic client it runs fine. No pop-up or similar is shown.
If I start the codeunit by calling the web service, i get the error message
"Callback functions are not allowed."
Now I searched already the mibuso board and recognize that I have to check for any UI Interaction like here described.
To ensure that, I comment all lines out until my web service is working. After that I test for comment each line in step by step, if it is still working.
I recognize that the first line where I use the OCX from the DMS, the (first?) error raised, that I get the "Callback..." exception.
What I have to do, that i get it working? Any suggestions? Are there any known problems using OCX in codeunits that are called by web services?
We use NAV2009 R2- build 32012.
Thanks in advance for your comments.
Kind regards,
jaja_bings
0
Answers
-
Can you run your code from RTC?0
-
Never tried OCX on middle tier, but most of the automations works just fine. Are you sure your OCX have no UI?
You can create a simple page to call you ocx codeunit from RTC and debug it with visual studio. I have a feeling that this OCX just invoking some UI method, which is not allowed on middle tier.0 -
Dear Rashed and ppavuk,
thank you for your replys.
I pointed out that the OCX calls the DMS Cliens and therefore also opens for a very short moment the UI of this client.
](*,)
So it seems to me that this IS the issue, that we could not prevent.
The solution with web services will not work, right?
Kind regards,
Jaja_Bings0 -
If it opens the UI, then it's not possible.0
-
Thank you for your reply. It seems to me that we need a new OCX :-k0
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