Author: alessio.soldano(a)jboss.com
Date: 2009-01-22 09:43:14 -0500 (Thu, 22 Jan 2009)
New Revision: 9093
Modified:
stack/native/branches/jaxws21/modules/core/src/main/java/org/jboss/ws/core/CommonBindingProvider.java
Log:
[JBWS-2468] Adding comment
Modified:
stack/native/branches/jaxws21/modules/core/src/main/java/org/jboss/ws/core/CommonBindingProvider.java
===================================================================
---
stack/native/branches/jaxws21/modules/core/src/main/java/org/jboss/ws/core/CommonBindingProvider.java 2009-01-22
14:41:38 UTC (rev 9092)
+++
stack/native/branches/jaxws21/modules/core/src/main/java/org/jboss/ws/core/CommonBindingProvider.java 2009-01-22
14:43:14 UTC (rev 9093)
@@ -118,6 +118,12 @@
public <T extends EndpointReference> T getEndpointReference(Class<T>
clazz)
{
+ // Conformance 4.5 (javax.xml.ws.BindingProvider.getEndpointReference): An
implementation
+ // MUST be able to return an javax.xml.ws.EndpointReference for the target endpoint
if a SOAP binding
+ // is being used. If the BindingProvider instance has a binding that is either SOAP
1.1/HTTP or
+ // SOAP 1.2/HTTP, then a W3CEndpointReference MUST be returned. If the binding is
XML/HTTP an
+ // java.lang.UnsupportedOperationExceptionMUST be thrown.
+
if (binding instanceof HTTPBinding )
{
throw new UnsupportedOperationException("Cannot get epr for BindingProvider
instances using the XML/HTTP binding");