tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rf...@apache.org
Subject svn commit: r553962 - /incubator/tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXWSJavaInterfaceProcessor.java
Date Fri, 06 Jul 2007 17:15:18 GMT
Author: rfeng
Date: Fri Jul  6 10:15:18 2007
New Revision: 553962

URL: http://svn.apache.org/viewvc?view=rev&rev=553962
Log:
Set JAX-WS SEI to be remotable

Modified:
    incubator/tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXWSJavaInterfaceProcessor.java

Modified: incubator/tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXWSJavaInterfaceProcessor.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXWSJavaInterfaceProcessor.java?view=diff&rev=553962&r1=553961&r2=553962
==============================================================================
--- incubator/tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXWSJavaInterfaceProcessor.java
(original)
+++ incubator/tuscany/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXWSJavaInterfaceProcessor.java
Fri Jul  6 10:15:18 2007
@@ -48,10 +48,18 @@
     }
 
     public void visitInterface(JavaInterface contract) throws InvalidInterfaceException {
+
+        Class<?> clazz = contract.getJavaClass();
+        WebService webService = clazz.getAnnotation(WebService.class);
+        String tns = "";
+        if (webService != null) {
+            tns = webService.targetNamespace();
+            // Mark SEI as Remotable
+            contract.setRemotable(true);
+        }
         if (!contract.isRemotable()) {
             return;
         }
-        Class<?> clazz = contract.getJavaClass();
         Map<String, Operation> operations = new HashMap<String, Operation>();
         for (Operation op : contract.getOperations()) {
             operations.put(op.getName(), op);
@@ -72,11 +80,6 @@
                 return;
             }
 
-            WebService webService = clazz.getAnnotation(WebService.class);
-            String tns = "";
-            if (webService != null) {
-                tns = webService.targetNamespace();
-            }
 
             String ns = getValue(requestWrapper.targetNamespace(), tns);
             String name = getValue(requestWrapper.localName(), operationName);



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message