Author: alessio.soldano(a)jboss.com
Date: 2010-05-04 10:58:54 -0400 (Tue, 04 May 2010)
New Revision: 12158
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/client/NativeServiceRefBinderJAXWS.java
Log:
[JBWS-3015] wsdlLocation attribute from @WebServiceClient not considered when building up
webservicerefs
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/client/NativeServiceRefBinderJAXWS.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/client/NativeServiceRefBinderJAXWS.java 2010-05-04
14:51:33 UTC (rev 12157)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/client/NativeServiceRefBinderJAXWS.java 2010-05-04
14:58:54 UTC (rev 12158)
@@ -192,6 +192,11 @@
{
WebServiceClient clientDecl =
(WebServiceClient)serviceClass.getAnnotation(WebServiceClient.class);
serviceRef.setServiceQName(new QName(clientDecl.targetNamespace(),
clientDecl.name()));
+ //use the @WebServiceClien(wsdlLocation=...) if the service ref wsdl
location returned at this time would be null
+ if (clientDecl.wsdlLocation().length() > 0 &&
serviceRef.getWsdlLocation() == null)
+ {
+ serviceRef.setWsdlOverride(clientDecl.wsdlLocation());
+ }
}
}
catch (ClassNotFoundException e)