Hitting dynamics nav breakpoint from web services??

tiagofrancis
Member Posts: 48
Hi folks, I need some help regarding the dynamics nav web services. I've having trouble with this error 'Callback functions are no allowed'. I know why this happends, but i'm having trouble to detect which code is throwing this message. There are lots of objects and code upon this web service call.
So, i ask, does anyone know if it is possible to hit a breakpoint in a codeunit from the web service call? Kind alike NAS debug or something?
I've tried to attach proccesses and so on, but nothing. The breakpoint doesn't get hit.
Thank you loads!
So, i ask, does anyone know if it is possible to hit a breakpoint in a codeunit from the web service call? Kind alike NAS debug or something?
I've tried to attach proccesses and so on, but nothing. The breakpoint doesn't get hit.
Thank you loads!
0
Comments
-
Since the web service is simply a codeunit you should be able to create another codeunit to call that trigger and even have a debugger running at the same time.________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0 -
You need to use the NST Debugging - enable debugging on the NST and use Visual Studio to connect to the NST and debug it. See the blog articles or MSDN pages for how to debug NST (RTC).0
-
thegunzo, thanks for replying.
The thing is that i only get this message 'Callback functions are no allowed' when i'm not using the nav client. Are you familiar with GUIALLOWED? I need to star the debugger from the web service call. What you've suggested will not give me the error because calling from another codeunit would be a GUIALLOWED action.0 -
Tiago, then just use NAS to start what you need with the debugger active.________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
Dynamics NAV MVP
http://www.dynamics.is
http://Objects4NAV.com0 -
Because we are in NAV Three Tier forum, I expect you are using NAV 2009 webservices. Thus it have NOTHING common with NAS and standard NAV debugger. You need to use Visual Studio to debug the problem.0
-
Gunnar, thanks for replying.
That is a good sugestion, that crossed my mind. I think that NAS and the WS's have to respect the same rules regarding the consuming of dynamics nav objects. But i don't know if this is in fact all true. I think i'll give a try.
@Samil, i will look for it. This is a very good thing to know of. By the way, what dos NST stands for?0 -
NAV Service Tier - the mid-tier of the three tier design. Sometimes named as NAV Server (but not NAV DB Server, it is something else...).0
-
Kamil, thanks. Tomorow i'll be at my customer and i'll try out all the suggestions offered here. I'll then give you guys feedback.
Keep up.0 -
Hi,
here is the procedure to debug/remote debug the middle-tier services: http://blogs.msdn.com/b/nav/archive/200 ... -2009.aspx
It might help0
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