Conversion of string to integer

Hi Team,

Can you please let me know to convert string values to integer in webMethods.

We have few values in string that have to be passed in the table as an integer.

This is urgent.

Kindly help.


Hi Priyanka,

please download the WmTransformationServices package from the Community download section and install it to your IS.

This package has a service for your need.

As an alternative you can write your own transfromation service to accomplish this task.


Can you please help me know how to download the WMTransformationServices package ?


You can create a java service which does the String to Int conversion.

Int IntValue = Integer.parseInt(“StringValue”);

It seems you are trying to insert into database table. if database column type in integer then in the adapter template you can specify string as input. While calling the adapter service you can map the string values.

1 Like

Naga is right.

In this case the JDBC AdapterService will do the conversion from String to INTEGER internally.


For conversion, you can use this pub.math:toNumber

WmTransformations package is not part of Product Suite however you can find them on tech community and internet.

Hi Mahesh,

unfortunately, this package can not be found in the community anymore.
I tried that last week.

Sure, it is not part of the official produt suite, but as it follows the reserved naming conventions it should be supported by GCS/PS somehow.

I have found an older thread where this package was attached, but it was removed by admins.