ignore client proxies for export
This commit is contained in:
parent
3cfac84bff
commit
59d9f73f46
|
|
@ -110,23 +110,25 @@ public abstract class AbstractJaxWsServiceExporter implements BeanFactoryAware,
|
|||
for (String beanName : beanNames) {
|
||||
try {
|
||||
Class<?> type = this.beanFactory.getType(beanName);
|
||||
WebService wsAnnotation = type.getAnnotation(WebService.class);
|
||||
WebServiceProvider wsProviderAnnotation = type.getAnnotation(WebServiceProvider.class);
|
||||
if (wsAnnotation != null || wsProviderAnnotation != null) {
|
||||
Endpoint endpoint = Endpoint.create(this.beanFactory.getBean(beanName));
|
||||
if (this.endpointProperties != null) {
|
||||
endpoint.setProperties(this.endpointProperties);
|
||||
if (type != null && !type.isInterface()) {
|
||||
WebService wsAnnotation = type.getAnnotation(WebService.class);
|
||||
WebServiceProvider wsProviderAnnotation = type.getAnnotation(WebServiceProvider.class);
|
||||
if (wsAnnotation != null || wsProviderAnnotation != null) {
|
||||
Endpoint endpoint = Endpoint.create(this.beanFactory.getBean(beanName));
|
||||
if (this.endpointProperties != null) {
|
||||
endpoint.setProperties(this.endpointProperties);
|
||||
}
|
||||
if (this.executor != null) {
|
||||
endpoint.setExecutor(this.executor);
|
||||
}
|
||||
if (wsAnnotation != null) {
|
||||
publishEndpoint(endpoint, wsAnnotation);
|
||||
}
|
||||
else {
|
||||
publishEndpoint(endpoint, wsProviderAnnotation);
|
||||
}
|
||||
this.publishedEndpoints.add(endpoint);
|
||||
}
|
||||
if (this.executor != null) {
|
||||
endpoint.setExecutor(this.executor);
|
||||
}
|
||||
if (wsAnnotation != null) {
|
||||
publishEndpoint(endpoint, wsAnnotation);
|
||||
}
|
||||
else {
|
||||
publishEndpoint(endpoint, wsProviderAnnotation);
|
||||
}
|
||||
this.publishedEndpoints.add(endpoint);
|
||||
}
|
||||
}
|
||||
catch (CannotLoadBeanClassException ex) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue