Author: jim.ma
Date: 2010-03-23 02:06:47 -0400 (Tue, 23 Mar 2010)
New Revision: 11847
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/CommonBindingProvider.java
Log:
[JBPAPP-3962]:Throw WebSeriveException when the clazz is not assignableFrom
W3CEndpointReference
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/CommonBindingProvider.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/CommonBindingProvider.java 2010-03-22
18:21:26 UTC (rev 11846)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/CommonBindingProvider.java 2010-03-23
06:06:47 UTC (rev 11847)
@@ -24,6 +24,7 @@
import java.util.Observable;
import javax.xml.ws.EndpointReference;
+import javax.xml.ws.WebServiceException;
import javax.xml.ws.http.HTTPBinding;
import javax.xml.ws.soap.SOAPBinding;
import javax.xml.ws.wsaddressing.W3CEndpointReference;
@@ -128,6 +129,10 @@
{
throw new UnsupportedOperationException("Cannot get epr for BindingProvider
instances using the XML/HTTP binding");
}
+ if (!clazz.isAssignableFrom(W3CEndpointReference.class))
+ {
+ throw new WebServiceException("Unknow EndpointRefrence class : " +
clazz.getClass());
+ }
W3CEndpointReferenceBuilder builder = new W3CEndpointReferenceBuilder();
if (epMetaData != null)
{