cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liucong <liucon...@gmail.com>
Subject Properties Overriding in WSDL usage
Date Fri, 03 Jul 2009 15:59:16 GMT
Hi all,

In the
SOAP/JMS(http://www.w3.org/TR/2008/WD-soapjms-20081121/#wsdl-11-properties).
If a property is specified at multiple levels, the most specific setting
will take precedence (port first, then service, then binding).

But I invetigate the code of CXF. I find someting int
org.apache.cxf.service.model.EndpointInfo.getTraversedExtensor(T
defaultValue, Class<T> type):
@Override
public <T> T getTraversedExtensor(T defaultValue, Class<T> type) {
T value = getExtensor(type);

if (value == null) {
if (value == null && binding != null) {
value = binding.getExtensor(type);
}

if (service != null && value == null) {
value = service.getExtensor(type);
}

if (value == null) {
value = defaultValue;
}
}

return value;
}

The code shou that:port first, then binding, then service.

Now. Which is right?

thanks.

Mime
View raw message