hi Sukie; Sorry for late reply; >From the operationContext you can get the corresponding AxisOperation and name of the axis operation will be the method name that the client is trying to invoke.
蘇 軼(CEC) wrote: >hi deepal, > >Thank you very much for your help and sorry for late reply. > >I have understood the usage of the setOperationContext() method, >but I means how to know which method (echo() or add()) the client >is invoking in setOperationContext() method? For example, process >the WSSE header when client invokes add() method but do nothing >when client invokes echo() method? > >In fact, could I program like below? > >public void setOperationContext (OperationConetxt opctx) { > if (XxxClass.getCurrentInvokedMethodName().equals("add")) { > // process WSSE header > } else { > // do nothing > } >} > >Thanks again ! > >- sukie > > > > >>>2. The setOperationContext(...) method is ONE method, >>> what could I do when I want to deal headers in different >>> way because client calls different method? >>> >>> >>> >>> >>I think you are missing smt , say your service impl class is as follows >> >>class MyService { >>public void setOperationContext (OperationConetxt opctx) { >>} >> >>public String echo(String val){ >>return val; >>} >> >>public int add(int a , int b){ >>return a + b; >>} >>} >> >>So client can call either add or echo but not the setOperationContex , >>coz that method is not visible to him. If he call either add or echo >>setOperationConetxt method will be called. When there is a req for ur >>service and if the service has setOperationConetxt method then first it >>will called setOperationContext and then it will called the actual java >>method client want to invoke. >> >> > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] > > > > > -- Thanks, Deepal ................................................................ ~Future is Open~ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]