[
https://jira.jboss.org/browse/JBWS-3158?page=com.atlassian.jira.plugin.sy...
]
Jim Ma commented on JBWS-3158:
------------------------------
I wrote the wrong JIRA No. in the commit log . Here is the commit log belongs to this
JIRA:
Author: jim.ma
Date: 2010-11-16 06:05:12 -0500 (Tue, 16 Nov 2010)
New Revision: 13258
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java
Log:
[JBWS-3185]:ServiceDelegateImpl. getPort(Class<T> seiClass) does not respect the
WebServiceFeatures to create Service
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java 2010-11-15
08:46:55 UTC (rev 13257)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java 2010-11-16
11:05:12 UTC (rev 13258)
@@ -121,9 +121,9 @@
private List<QName> annotatedPorts = new ArrayList<QName>();
public ServiceDelegateImpl(URL wsdlURL, QName serviceName, Class serviceClass,
WebServiceFeature[] features)
- {
+ {
this(wsdlURL, serviceName, serviceClass);
- this.features = features;
+ this.features = features;
}
public ServiceDelegateImpl(URL wsdlURL, QName serviceName, Class serviceClass)
@@ -247,6 +247,12 @@
initAddressingProperties((BindingProvider)port, epr);
}
initWebserviceFeatures(port, epMetaData.getFeatures().getFeatures());
+
+ //initialize webserviceFeature in service for getPort(Class<T> seiClass) and
getPort(QName portName, Class<T> seiClass)
+ // This will override the features from policy
+
+ initWebserviceFeatures(port, this.features);
+
return port;
}
@@ -520,7 +526,6 @@
{
T port = getPort(sei);
initAddressingProperties((BindingProvider)port, epr);
- initWebserviceFeatures(port, this.features);
initWebserviceFeatures(port, features);
return port;
}
@@ -529,7 +534,6 @@
public <T> T getPort(Class<T> sei, WebServiceFeature... features)
{
T port = getPort(sei);
- initWebserviceFeatures(port, this.features);
initWebserviceFeatures(port, features);
return port;
}
@@ -559,7 +563,7 @@
QName portType = getPortTypeName(seiClass);
epMetaData = new ClientEndpointMetaData(serviceMetaData, portName, portType,
Type.JAXWS);
}
-
+
String seiClassName = seiClass.getName();
epMetaData.setServiceEndpointInterfaceName(seiClassName);
Native ServiceDelegateImpl. getPort(Class<T> seiClass) does not
respect the WebServiceFeatures to create Service
----------------------------------------------------------------------------------------------------------------
Key: JBWS-3158
URL:
https://jira.jboss.org/browse/JBWS-3158
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-native
Affects Versions: jbossws-native-3.4.0.CR1
Reporter: Jim Ma
Assignee: Jim Ma
Fix For: jbossws-native-3.4.0
The WebServiceFeature used to create service does not work for this case :
Service service = Service.create(wsdlURL, serviceQName, features);
Endpoint port = service.getPort(Endpint.class);
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira