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.  Converting STRING to OBJECT

    Posted Thu March 23, 2006 07:39 PM

    Hi ,

    Is there any service that convert String to Object .,

    I appretiate your help

    Thanks,
    raj


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


  • 2.  RE: Converting STRING to OBJECT

    Posted Thu March 23, 2006 10:05 PM


  • 3.  RE: Converting STRING to OBJECT

    Posted Fri March 31, 2006 07:34 AM

    Every String is an Object, so you may use it as an input, where input type is Object.

    In other words - if you have service, that have on input object, it means that it may be anything - string, document, etc.


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


  • 4.  RE: Converting STRING to OBJECT

    Posted Tue April 04, 2006 07:58 PM

    IDataCursor idc = pipeline.getCursor();
    idc.first();
    Object value = idc.getValue();
    if (value!=null) idc.insertAfter(“str”, value.toString());
    idc.destroy();


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


  • 5.  RE: Converting STRING to OBJECT

    Posted Tue April 04, 2006 08:47 PM

    raj,

    which object datatype are you looking?

    you can use pub.string:stringTobytes(this converts to datatype bytes object) also see pub.io services for converting to Stream object.

    HTH,
    RMG


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