webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  wm.server.services:serviceInfo and comments

    Posted Fri September 13, 2019 04:26 AM

    Hello,
    I try to use wm.server.services:serviceInfo in order to retrieve its comments (text from the “Comments” tab)
    but when I do the “comment” String output of serviceInfo is null (I use it on a service that has Comments saved)
    Does anyone know if I do something wrong ?
    Is there another way to retrieve the comments of a service ?

    Thanks in advance for your answers, regards, brgr


    #webMethods
    #webMethods-General
    #Integration-Server-and-ESB


  • 2.  RE: wm.server.services:serviceInfo and comments

    Posted Fri September 13, 2019 12:39 PM

    Hi,

    I have checked same thing with serviceInfo service and comment is coming as null for those services which are having comments. I have also tried to add comments using serviceInfoSet service (for flow & java) but in that case also, no comments retrieved.

    One more thing to add, In IS admin page we are supposed to get comment of service (defined in dsp page) in package details page but there also i am not able to see any comments.

    So if you badly want to get the service level comment, then i think you need to read it from node.ndf file.

    Thanks,
    Yogesh


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-General


  • 3.  RE: wm.server.services:serviceInfo and comments

    Posted Sun September 15, 2019 02:10 AM

    I have a written a java service class to get the node data which inculdes the comments also, check the service attached in this post.

    GetNodeData:getNodeData

    Note: This service uses the class pub.doc.NSNodeHelper; which is already embeded in the package (GetNodeData\code\classes\pub\doc) if you intend to copy the service to another package or create one on your own, copy the class NSNodeHelper.class as-is in the path \pub\doc\

    Let me know if you have any questions.


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: wm.server.services:serviceInfo and comments



  • 5.  RE: wm.server.services:serviceInfo and comments

    Posted Sun September 15, 2019 10:16 AM

    The problem might be that, even if the result of a call to ‘serviceInfo’ is displayed as a document in Designer, it is really some Java object (not an IData) which Designer is capable to display. Hence you see the result in Designer, but mapping of a field does not work because it works only if the object is an IData.

    You’ll probably have to write a java service to get the values returned by serviceInfo.


    #webMethods-General
    #webMethods
    #Integration-Server-and-ESB