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.

 View Only

array of custom java objects in webservices

  • 1.  array of custom java objects in webservices

    Posted Wed September 21, 2011 10:12 AM

    Have created a custom java object by copying the .class of that object into the classes folder. Its a simple value object.

    Then created a java service with input as String and output as Objects List.
    In the java service created an array of this custom object and returning that array object:

    Finally exposed this java service as a WSD.

    Now we are trying use this WSD from an external java application - the java service is getting invoked and results are returned, but not as array of UserVo objects but as string array - string representation of the UserVo objects.

    Can anyone please let us know on what needs to be done on webMethods side to return the actual objects to the consumer of this service

    We have just started exploring webMethods, so please correct if we are doing anything wrong. Thanks.


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