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
  • 1.  Java service not working as expectd

    Posted 06/26/19 11:36 AM

    Hi,

    I wrote java service with two inputs (documentList1 and documentList2 with same variable)

    Service will find any new values are exist in documentList2 by comparing documentList1.

    (Ex: documentList1 {1,2,3} and documentList1 {1,2,3,4,5})

    If I run this java service by giving input values then I am getting correct output, no issue with java service.
    Result: {4,5}

    But when I map documentList1 and documentList2 with source document
    OR
    when I hard code documentList1 and documentList2 then it is behaving differently, it is just returning all documentList2 values.
    Result:{1,2,3,4,5}

    Can any one has idea, why this behaviour?
    Appreciate your help!

    Thanks
    Ravi.


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


  • 2.  RE: Java service not working as expectd

    Posted 06/26/19 11:40 AM

    (Ex: documentList1 {1,2,3} and documentList2 {1,2,3,4,5})


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


  • 3.  RE: Java service not working as expectd

    Posted 06/26/19 10:00 PM

    The issue you see might be due to the “Copying By Reference” you can find this details in 10-3_Service_Development_Help.pdf

    What is your inputs and expected output, we can try with a java service and share you one? Instead of DocumentList can StringList be as input?

    documentList1 ? - Structure with data
    documentList2 ? - Structure with data

    Output ? - Sturcutre with data


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


  • 4.  RE: Java service not working as expectd

    Posted 06/28/19 06:46 AM

    Thanks Mahesh for your Reply and help.

    In my java service I have used different names instead documentList1 & documentList2 . for easy understand I was mention like that.
    Anyhow I able to fix this issue.

    Thank you
    Ravi.


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


  • 5.  RE: Java service not working as expectd

    Posted 06/30/19 03:36 AM

    Great that you resolved, can you share us what was wrong and how did you resolve it.


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