Hitting dynamics nav breakpoint from web services??

tiagofrancistiagofrancis Member Posts: 48
edited 2012-05-12 in NAV Three Tier
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!

Comments

  • thegunzothegunzo Member Posts: 274
    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.com
  • kinekine Member Posts: 12,562
    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).
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • tiagofrancistiagofrancis Member Posts: 48
    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.
  • thegunzothegunzo Member Posts: 274
    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.com
  • kinekine Member Posts: 12,562
    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.
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • tiagofrancistiagofrancis Member Posts: 48
    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?
  • kinekine Member Posts: 12,562
    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...).
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • tiagofrancistiagofrancis Member Posts: 48
    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.
  • Dan77Dan77 Member Posts: 17
    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 help
Sign In or Register to comment.