cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aki Yoshida <elak...@googlemail.com>
Subject Re: WsAddressing
Date Thu, 03 May 2012 09:29:10 GMT
Hi,
which CXF version are you using?

The default setting of the ws-addressing feature should allow a
request without the ws-addr header to reach the service. So, your
approach should work.

regards, aki

2012/5/2 hterelle <hugoterelle@gmail.com>:
> Hello all,
>
> I created a webservice server and adding to a MultipleEndpointObserver the
> WsAddressingFeature in order to support the "MustUnderstand" property in
> soap headers.
> I works fine with some clients (to explain the context, it's ONVIF client),
> but serveral clients do not use WSAddressing, so my service throws an
> exception.
>
> Is there a way to support both technics: with and without addressing?  I
> also tried the "setAddressingRequired" and "setUsingAddressingAdvisory" with
> true or false, but it doesn't change anything.
>
> The following code works for the client supporting WS-Addressing, but not
> for the others:
>
> for (int i = 0; i < myArray.length; i++) {
>        String s = myArray[i];
>        ep[i] = (EndpointImpl) Endpoint.create(createObject(s));
> *       WSAddressingFeature af = new WSAddressingFeature();
>        af.setAddressingRequired(false);
>        af.setUsingAddressingAdvisory(false);
>        ep[i].getFeatures().add(af);*
>        ep[i].publish(eventAddress);
>        ep[i].getServer().getEndpoint().put("name", s);
>        if (i == 0) {
>                LOG.info("Allow multiple endpoint");
>                ep[i].getServer().getEndpoint().put("allow-multiplex-endpoint",
> Boolean.TRUE);
>        }
>        replaceSoapFaultHandler(ep[i]);
> }
>
>
> Greetings,
> Hugo Terelle
>
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/WsAddressing-tp5680028.html
> Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message