Author: thomas.diesler(a)jboss.com
Date: 2008-02-28 03:47:52 -0500 (Thu, 28 Feb 2008)
New Revision: 5834
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java
Log:
[JBWS-1844] Implement Provider.createW3CEndpointReference
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java
===================================================================
---
stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java 2008-02-28
08:31:23 UTC (rev 5833)
+++
stack/native/trunk/src/main/java/org/jboss/ws/core/jaxws/spi/ServiceDelegateImpl.java 2008-02-28
08:47:52 UTC (rev 5834)
@@ -482,7 +482,9 @@
W3CEndpointReference w3c = (W3CEndpointReference)epr;
portName = w3c.getEndpointName();
}
+
Dispatch<T> dispatch = createDispatch(portName, type, mode);
+ initAddressingProperties(dispatch, epr);
return dispatch;
}
@@ -510,6 +512,7 @@
}
Dispatch<Object> dispatch = createDispatch(portName, context, mode);
+ initAddressingProperties(dispatch, epr);
return dispatch;
}
@@ -530,7 +533,7 @@
log.warn("WebServiceFeature not implemented");
T port = getPort(sei);
- initAddressingProperties(port, epr);
+ initAddressingProperties((BindingProvider)port, epr);
return port;
}
@@ -545,9 +548,9 @@
}
// Workaround for [JBWS-2015] Modify addressing handlers to work with the JAXWS-2.1
API
- private <T> void initAddressingProperties(T port, EndpointReference epr)
+ private void initAddressingProperties(BindingProvider bindingProvider,
EndpointReference epr)
{
- Map<String, Object> reqContext =
((BindingProvider)port).getRequestContext();
+ Map<String, Object> reqContext = bindingProvider.getRequestContext();
AddressingBuilder builder = AddressingBuilder.getAddressingBuilder();
AddressingProperties addrProps = builder.newAddressingProperties();
reqContext.put(JAXWSAConstants.CLIENT_ADDRESSING_PROPERTIES_OUTBOUND, addrProps);
Show replies by date