Hi Sukie;
pls see my comment blow;
蘇 軼(CEC) wrote:
>hi Chinthaka,
>
>Thank you for your help !
>
>Please let me ask tow more question :
>
>1. If I don't use RawXMLINOutMessageReceiver, I can't
> process headers in service method?
>
>
If you use any of the default message receivers in Axis2 you can get
access to OperationContext , only requirement is to have
setOperationContext method in service impl class.
>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.
>Thank you !
>
>- sukie
>
>
>----- Original Message -----
>From: "Eran Chinthaka" <[EMAIL PROTECTED]>
>To: <[email protected]>
>Sent: Wednesday, May 24, 2006 6:35 PM
>Subject: Re: [Axis2]How to process SOAP header in service class? or handler
>class?
>
>
>
>---------------------------------------------------------------------
>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]