Webservice

clemboclembo Member Posts: 122
Hi,

I need to publish (Nav 2016) a function in a code unit that use recordset customer like parameter.
But when I publish CU WSDL don't show method. If I remove this parameter and replace it with a dummy parameter (integer type) it work!
So every time I try to use record like parameter function WSDL not show method..

This not happen in Nav 2013.

Someone knows reason?

Answers

  • RockWithNAVRockWithNAV Member Posts: 1,139
    Hey Clembo,

    Webservice will never allow you to expose if it has a parameter as records like customer vendor or anything. And yes it will do work if you replace it will other data types, so I believe what you have to do is to replace customer with Customer No as code data type or whatever are the individual parameters you are getting.
  • vaprogvaprog Member Posts: 1,140
    edited 2016-04-20
    If you want to have a table as a web service parameter, you may use an XMLPort as a parameter to the Codeunit function.
  • clemboclembo Member Posts: 122
    Yes I need to use xmlport :-)
Sign In or Register to comment.