Web Services - Client callback Error

gandhi_nklgandhi_nkl Posts: 42Member
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 Posts: 9,147Member
    Try it in 2013 and turn on the debugger and debug the webservice.
  • arindomarindom Posts: 52Member
    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 Posts: 42Member
    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 Posts: 8Member
    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.