OK, course I figured this out (I think) as soon as I posted the message.
I need to do this
<handlerChains>
<chain runAt="server" roles="
http://kevinj.develop.com urn:uri" >
<handler className="com.develop.SimpleHandler"
headers="ns1:SomeActorHeader"
xmlns:ns1="
http://echoservice.develop.com/types">
</handler>
</chain>
If that is correct, how do I associate a chain with no actor (ultimate
recipient)?
Thanks,
Kevin Jones
Developmentor
www.develop.com
> -----Original Message-----
> From: Public discussion on JAX-RPC
> [mailto:JAXRPC-INTEREST_at_JAVA.SUN.COM] On Behalf Of Kevin Jones
> Sent: 02 October 2003 14:10
> To: JAXRPC-INTEREST_at_JAVA.SUN.COM
> Subject: Handler Chain weirdness
>
>
> I'm trying to configure two handler chains for the same endpoint for
> different actors and I'm seeing weird behaviour.
>
> I have this:
>
> <handlerChains>
> <chain runAt="server" roles="http://kevinj.develop.com">
>
> <handler className="com.develop.SimpleHandler"
> headers="ns1:SomeActorHeader"
> xmlns:ns1="http://echoservice.develop.com/types">
> </handler>
>
> </chain>
>
> <chain runAt="server" roles="urn:someuri">
> <handler className="com.develop.SimpleHandler2"
> headers="ns1:SomeHeader"
> xmlns:ns1="http://echoservice.develop.com/types">
> <property name="name" value="server2"/>
> </handler>
> </chain>
> </handlerChains>
>
> So, I have two handler classes and two chains. If I send a
> SOAP message
> that looks like this
>
> <env:Envelope xmlns:ns0="http://echoservice.develop.com/types">
> <env:Header>
> <ns0:SomeActorHeader env:actor="http://kevinj.develop.com"
> env:mustUnderstand="1"/>
>
> then *only* the *second* handler gets called (SimpleHandler2), even
> though it is configured for urn:someuri and even though it doesn't
> return the QName of the SomeActorHeader. In fact I don't see
> SimpleHandler1 called at all so the runtime can't even know that
> SomeActorHeader (which is a mustUnderstand header) will be processed
> somewhere.
>
> Should multiple handler chains work? (this is in the 1.2 JWSDP BTW),
>
> Kevin Jones
> Developmentor
> www.develop.com
>