TestService.javaAPI DocApache Axis 1.41231Sat Apr 22 18:57:26 BST 2006test.soap


public class TestService extends Object
Trivial test service.

Fields Summary
Constructors Summary
Methods Summary
public intcountChars(java.lang.String str)
Calculate and return the length of the passed String. If a MessageContext property indicates that we've received a particular header, then double the result before returning it.

        int ret = str.length();
        MessageContext mc = MessageContext.getCurrentContext();
        if (mc.isPropertyTrue(TestHeaderAttrs.PROP_DOUBLEIT)) {
            ret = ret * 2;
        return ret;