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!