Web Services - Client callback Error

gandhi_nklgandhi_nkl Member Posts: 44
edited 2012-08-14 in NAV Three Tier
Hi,

I have published Contact Page in NAV and I am trying to create Contact using .net with help .net guys. It works fine.
But my problem is that, same like contact I am publishing customer page and trying to create customer from .net but getting following error.

Exception:

SoapException was unhandled by th euser code:

Client callback (such as showing Pages) is not supported when executing custom Web services. ENU=No. Series



Tried solution myself: searched dialog and strmenu function using code coverage while creating customer from NAV and added GUIALLOWED.

But still not solved.

Anyone help me out from this.
Thanks & Regards,
Muthu

Answers

  • ara3nara3n Member Posts: 9,256
    Try it in 2013 and turn on the debugger and debug the webservice.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • arindomarindom Member Posts: 52
    When you create customer through .net write code in .net for generating customer no. than assign the same in navison through webservice.
  • gandhi_nklgandhi_nkl Member Posts: 44
    arindom wrote:
    When you create customer through .net write code in .net for generating customer no. than assign the same in navison through webservice.

    But, How contact web services working?
    Thanks & Regards,
    Muthu
  • TiniusTinius Member Posts: 8
    Hi,
    I received the same error, and it turns out, that the problem was that NAV tried showing request form, when executing WS;

    I assume you might have some similar problem..

    My code in WebService Codeunit was:
    CalcProfitability() : Text[30]
    ProfitabilityReport.SetRepParams(TRUE,FALSE,FALSE,FALSE,TRUE);
    ProfitabilityReport.RUN;
    EXIT('success');
    

    This is just a test code of course;

    And adding the line 'CurrReport.USEREQUESTFORM(GUIALLOWED);' to OnInit of the report solved the problem;
Sign In or Register to comment.