IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Can I create a Document Reference List instance inside a Java Service ?

  • 1.  Can I create a Document Reference List instance inside a Java Service ?

    Posted 02/10/12 07:25 AM

    Hi guys … I want to create a document reference list instance inside a Java service that I’m writing …

    That is to say, Software AG has a package named WmTaskClient, within which there’s a document type named ‘TaskSearchQueryTerm’ … I want to create an instance of this document type inside a Java service … And then I want to return this as a Document Reference Type …

    Is this possible ?


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Can I create a Document Reference List instance inside a Java Service ?

    Posted 02/10/12 03:37 PM

    Yes. You’d create an array of IData objects. Review the API documentation for the IData* classes.

    You can use Developer to create the Java service skeleton. Define an output parameter for the service, referencing the TaskSearchQueryTerm document type. Save the service (empty body). Then select Tools | Generate Code. This will create Java code in the clipboard. Paste it to the service body. Edit the code to create the query terms. Be sure to make the array large enough and call IDataFactory.create to create an object in each array position.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods