Hello,
I'm using Axis 1.3.
I'm using a module with several custom handlers. Everything is working fine
when the module is engaged at service level.
I'm now trying to engage the same module but at operation level (for the
same previous reason - no validation required for the Ping operation).
In order to perfom that, I modified my service.xml in order to regsiter my
module for one particular operation:
<operation name="Ping" mep="http://www.w3.org/ns/wsdl/in-out">
<actionMapping>ping</actionMapping>
<outputActionMapping>http://wsdl.notary.be/QueryPhysicalPersonService/QueryPhysicalPersonService/PingResponse</outputActionMapping>
<faultActionMapping
faultName="NotaryFault">urn:PingNotaryFault</faultActionMapping>
<faultActionMapping
faultName="FaultName">http://wsdl.notary.be/QueryPhysicalPersonService/QueryPhysicalPersonService/Ping/Fault/FaultName</faultActionMapping>
</operation>
<operation name="QueryOnNationalNumber"
mep="http://www.w3.org/ns/wsdl/in-out">
<module ref="enotaryModule"/>
<actionMapping>QueryOnNationalNumber</actionMapping>
<outputActionMapping>http://wsdl.notary.be/QueryPhysicalPersonService/QueryPhysicalPersonService/QueryOnNationalNumberResponse</outputActionMapping>
<faultActionMapping
faultName="NotaryFault">urn:QueryOnNationalNumberNotaryFault</faultActionMapping>
<faultActionMapping
faultName="FaultName">http://wsdl.notary.be/QueryPhysicalPersonService/QueryPhysicalPersonService/QueryOnNationalNumber/Fault/FaultName</faultActionMapping>
</operation>
Problem, the module is still engaged at service level !!!!!! and not only
for the "QueryOnNationalNumber" operation.
I also tried to engage the module dynamically using the ServiceLifeCycle
(startUp event). But at this stage the AxisService is not yet fully
configured and does not contain any AxisOperation (service.getOperations
empty)
Thanks
Grégory
Amila Suriarachchi wrote:
>
> On Fri, Jul 18, 2008 at 11:25 PM, Jack Sprat <[EMAIL PROTECTED]>
> wrote:
>
>> Hello.
>>
>> Is there a way to add handlers only for specific operations in a service
>> and not for all?
>> For example, I'd like to validate the user/password in the SOAP header on
>> all operations except the simple echo operation. I have a handler set in
>> the axis2.xml confg. file but that applies to all operations.
>
>
> you have to write a module using including your handlers see following
> links. And engaged the module at operation level.
>
> thanks,
> Amila.
>
> [1]http://ws.apache.org/axis2/1_4/modules.html
> [2]http://www.developer.com/java/web/article.php/10935_3529321_1
>
>
>
>>
>>
>> Thanks,
>> T
>>
>>
>>
>
>
> --
> Amila Suriarachchi,
> WSO2 Inc.
>
>
--
View this message in context:
http://www.nabble.com/-Axis2--handlers-per-operation-tp18534755p18651345.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]