Author: alessio.soldano(a)jboss.com
Date: 2010-05-04 11:54:07 -0400 (Tue, 04 May 2010)
New Revision: 12159
Modified:
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/client/ServiceRefBinderJAXWS.java
Log:
[JBWS-3015] wsdlLocation attribute from @WebServiceClient not considered when building up
webservicerefs
Modified:
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/client/ServiceRefBinderJAXWS.java
===================================================================
---
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/client/ServiceRefBinderJAXWS.java 2010-05-04
14:58:54 UTC (rev 12158)
+++
stack/metro/trunk/modules/client/src/main/java/org/jboss/wsf/stack/metro/client/ServiceRefBinderJAXWS.java 2010-05-04
15:54:07 UTC (rev 12159)
@@ -193,6 +193,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)
Show replies by date