Author: richard.opalka(a)jboss.com
Date: 2009-09-17 06:37:02 -0400 (Thu, 17 Sep 2009)
New Revision: 10710
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ProviderImpl.java
Log:
[JBWS-2741] fixing TCK5 regression
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ProviderImpl.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ProviderImpl.java 2009-09-17
10:04:11 UTC (rev 10709)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/jaxws/spi/ProviderImpl.java 2009-09-17
10:37:02 UTC (rev 10710)
@@ -27,6 +27,7 @@
import javax.xml.namespace.QName;
import javax.xml.transform.Source;
+import javax.xml.ws.BindingType;
import javax.xml.ws.Endpoint;
import javax.xml.ws.EndpointReference;
import javax.xml.ws.Service;
@@ -68,7 +69,14 @@
@Override
public Endpoint createEndpoint(String bindingId, Object implementor)
{
- return new EndpointImpl(bindingId == null ? SOAPBinding.SOAP11HTTP_BINDING :
bindingId, implementor);
+ String realBindingId = bindingId;
+ if (realBindingId == null)
+ {
+ BindingType anBindingType =
implementor.getClass().getAnnotation(BindingType.class);
+ realBindingId = (anBindingType != null) ? anBindingType.value() :
SOAPBinding.SOAP11HTTP_BINDING;
+ }
+
+ return new EndpointImpl(realBindingId, implementor);
}
@Override
Show replies by date