Integrating with Navision : Complex data type as response

razelssrazelss Member Posts: 1
edited 2017-05-31 in NAV Three Tier
Hi,

First of all, I am not really familiar with Navision as my company don't really use it. But I am working on a project that needs to integrate with Navision which our client uses. So I'm sorry if I get some of the concepts wrong.

I am calling a web service which i believe is a code unit function from a .net application. Now the web service function returns only string but I am expecting the service response to be an array of objects ( complexType).

My question is, is complex type allowed as a response?

Answers

  • allenyyzhouallenyyzhou Member Posts: 142
    Also want to know the answer.
    But one solution is sure OK, that is you ask NAV side to put all return value to a table.
    Another possible solution is adding a "byval parameter" in the codeunit function, and put all return value to that parameter, but I have never tried that.
  • vaprogvaprog Member Posts: 1,144
    Yes, it is possible, with some restriction to the structure of the SOAP body. The NAV side must use an XMLPort as a parameter to achieve this.
  • krikikriki Member, Moderator Posts: 9,115
    [Topic moved from 'General Chat' forum to 'NAV Three Tier' forum]

    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.