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
Expand all | Collapse all

How to convert Integer to String

  • 1.  How to convert Integer to String

    Posted Tue September 27, 2005 11:37 AM

    Please guide me how to convert Integer to String???


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


  • 2.  RE: How to convert Integer to String

    Posted Tue September 27, 2005 12:49 PM

    Pankaj,
    You can write a simple java service to convert it.You can use that service as Transformer in the flow step.

    Thanks,
    Puneet Verma


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


  • 3.  RE: How to convert Integer to String

    Posted Tue September 27, 2005 02:46 PM

    Pankaj,

    This is a java service which converts the integer to string.
    input for the service should be iVal(Object and set the java wrapper type to integer under the properties) and output should be siVal(string)

    IDataCursor cursor = pipeline.getCursor();
    int i = IDataUtil.getInt(cursor,“iVal”,0);
    String s = String.valueOf(i);
    IDataUtil.put(cursor,“siVal”,s);
    cursor.destroy();

    hope this helps.

    ramesh.


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