Codeunit to return specific XMLport (Webservice)

v4liumv4lium Member Posts: 2
edited 2011-04-01 in NAV Three Tier
Hello all,
I already know how to publish a XMLport as Webservice via a Codeunit. I would like to have a function whose "XMLport ID"-Parameter specifies which XMLport to publish. Is there a possiblity to realize that?
GetStaticXMLport(VAR xml : XMLport StaticXMLPort)

GetXMLportDYNAMIC(XMLportID : Integer)
  ...

The reason is, that I do not want to change the Codeunit and add a function each time a new XMLport is created!

Comments

  • deV.chdeV.ch Member Posts: 543
    Yes you can but that way you only get the generated xml as text. You need a parameter of type BigText as VAR, and save the generated xml in that bigtext.
Sign In or Register to comment.