tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scottk...@apache.org
Subject svn commit: r1210051 - /tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java
Date Sun, 04 Dec 2011 05:23:03 GMT
Author: scottkurz
Date: Sun Dec  4 05:23:03 2011
New Revision: 1210051

URL: http://svn.apache.org/viewvc?rev=1210051&view=rev
Log:
Throw SRE on ref-side for rpc/encoded, doc-encoded WSDLS.

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java?rev=1210051&r1=1210050&r2=1210051&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-jaxws/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/JAXWSBindingInvoker.java
Sun Dec  4 05:23:03 2011
@@ -299,7 +299,11 @@ public class JAXWSBindingInvoker impleme
                 rpcOperationWrapper.appendChild(nextImported);    
             }            
             body.appendChild(rpcOperationWrapper);
-        } else {
+        }  else if (wsBinding.isRpcEncoded()) {
+            throw new ServiceRuntimeException("rpc/encoded WSDL style not supported for endpoint
reference " + endpointReference);
+        } else if (wsBinding.isDocEncoded()){
+            throw new ServiceRuntimeException("doc/encoded WSDL style not supported for endpoint
reference " + endpointReference);
+        }  else {
             // In the unit test the owner doc is null
             // so explicitly adopt the node instead
             // body.addDocument(((Node)args[0]).getOwnerDocument());



Mime
View raw message