FileDocCategorySizeDatePackage
ServiceHandler.javaAPI DocApache Axis 1.41710Sat Apr 22 18:57:28 BST 2006test.outparams

ServiceHandler

public class ServiceHandler extends org.apache.axis.handlers.BasicHandler

Fields Summary
public static final String
OUTPARAM1
public static final Float
OUTPARAM2
public static final Integer
RESPONSE
Constructors Summary
Methods Summary
public voidinvoke(org.apache.axis.MessageContext msgContext)


          
        SOAPEnvelope env = new SOAPEnvelope();

        RPCParam retVal = new RPCParam("return", RESPONSE);
        RPCParam outParam1 = new RPCParam("out1", OUTPARAM1);
        RPCParam outParam2 = new RPCParam("out2", OUTPARAM2);

        RPCElement rpc = new RPCElement("namespace", "response", new Object []
                            { retVal, outParam1, outParam2 });

        env.addBodyElement(rpc);

        msgContext.setResponseMessage(new Message(env));