Author: alessio.soldano(a)jboss.com
Date: 2010-05-04 10:51:33 -0400 (Tue, 04 May 2010)
New Revision: 12157
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ServiceRefBinderJAXWS.java
Log:
[JBWS-3015] considering @WebServiceClient wsdlLocation attribute when building
webserviceref
Modified:
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ServiceRefBinderJAXWS.java
===================================================================
---
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ServiceRefBinderJAXWS.java 2010-05-04
10:10:12 UTC (rev 12156)
+++
stack/cxf/trunk/modules/client/src/main/java/org/jboss/wsf/stack/cxf/client/ServiceRefBinderJAXWS.java 2010-05-04
14:51:33 UTC (rev 12157)
@@ -185,11 +185,16 @@
{
try
{
- Class serviceClass = loader.loadClass(serviceImplClass);
+ Class<?> serviceClass = loader.loadClass(serviceImplClass);
if (serviceClass.getAnnotation(WebServiceClient.class) != null)
{
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)
Show replies by date