mibuso.com

Microsoft Business Solutions online community
It is currently Tue May 21, 2013 11:41 pm

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Hitting dynamics nav breakpoint from web services??
PostPosted: Wed May 09, 2012 4:00 pm 
Offline

Joined: Tue Oct 09, 2007 12:33 pm
Posts: 46
Location: Portugal
Country: Portugal (pt)
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!


Top
 Profile  
 
 Post subject: Re: Hitting dynamics nav breakpoint from web services??
PostPosted: Wed May 09, 2012 4:14 pm 
Offline

Joined: Mon Apr 04, 2005 3:49 pm
Posts: 66
Location: Sauðárkrókur
Country: Iceland (is)
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
http://www.dynamics.is


Top
 Profile E-mail WWW  
 
 Post subject: Re: Hitting dynamics nav breakpoint from web services??
PostPosted: Wed May 09, 2012 4:19 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
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.


Top
 Profile E-mail WWW  
 
 Post subject: Re: Hitting dynamics nav breakpoint from web services??
PostPosted: Wed May 09, 2012 4:21 pm 
Offline

Joined: Tue Oct 09, 2007 12:33 pm
Posts: 46
Location: Portugal
Country: Portugal (pt)
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.


Top
 Profile  
 
 Post subject: Re: Hitting dynamics nav breakpoint from web services??
PostPosted: Wed May 09, 2012 4:29 pm 
Offline

Joined: Mon Apr 04, 2005 3:49 pm
Posts: 66
Location: Sauðárkrókur
Country: Iceland (is)
Tiago, then just use NAS to start what you need with the debugger active.

_________________
________________________________
Gunnar Gestsson
Microsoft Certified IT Professional
http://www.dynamics.is


Top
 Profile E-mail WWW  
 
 Post subject: Re: Hitting dynamics nav breakpoint from web services??
PostPosted: Wed May 09, 2012 4:33 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
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.


Top
 Profile E-mail WWW  
 
 Post subject: Re: Hitting dynamics nav breakpoint from web services??
PostPosted: Wed May 09, 2012 4:36 pm 
Offline

Joined: Tue Oct 09, 2007 12:33 pm
Posts: 46
Location: Portugal
Country: Portugal (pt)
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?


Top
 Profile  
 
 Post subject: Re: Hitting dynamics nav breakpoint from web services??
PostPosted: Wed May 09, 2012 4:52 pm 
Offline
MVP Microsoft Dynamics NAV
NAV TechDays 2013 attendee

Joined: Thu Oct 16, 2003 8:50 am
Posts: 12265
Location: Brno
Country: Czech Republic (cz)
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.


Top
 Profile E-mail WWW  
 
 Post subject: Re: Hitting dynamics nav breakpoint from web services??
PostPosted: Wed May 09, 2012 5:02 pm 
Offline

Joined: Tue Oct 09, 2007 12:33 pm
Posts: 46
Location: Portugal
Country: Portugal (pt)
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.


Top
 Profile  
 
 Post subject: Re: Hitting dynamics nav breakpoint from web services??
PostPosted: Sat May 12, 2012 2:51 pm 
Offline

Joined: Fri Jul 08, 2011 10:20 am
Posts: 16
Country: Switzerland (ch)
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


Top
 Profile E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: mathieuk, NavDave and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum


Search for:
Jump to: