AddressingFeature addressing = getAddressingFeature();
if (addressing == null) {
return;
}
if (addressing.isEnabled()) {
WSAddressingFeature feature = getWSAddressingFeature();
if (feature == null) {
feature = new WSAddressingFeature();
addAddressingFeature(feature);
}
feature.setAddressingRequired(addressing.isRequired());
if (ProviderImpl.isJaxWs22()) {
try {
Class<?> addrClass = ClassLoaderUtils.loadClass("javax.xml.ws.soap.AddressingFeature",
ProviderImpl.class);
Method responsesMethod = addrClass.getMethod("getResponses", new Class[] {});
Object responses = responsesMethod.invoke(addressing, new Object[] {});
feature.setResponses(responses.toString());
} catch (Exception e) {
// ignore
}
}
} else {