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.