ode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mszef...@apache.org
Subject svn commit: r549158 - in /incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl: WSDLFactoryBPEL11.java WSDLFactoryImpl.java
Date Wed, 20 Jun 2007 17:22:08 GMT
Author: mszefler
Date: Wed Jun 20 10:22:08 2007
New Revision: 549158

URL: http://svn.apache.org/viewvc?view=rev&rev=549158
Log:
Added "safe" WSDL extension.

Modified:
    incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLFactoryBPEL11.java
    incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLFactoryImpl.java

Modified: incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLFactoryBPEL11.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLFactoryBPEL11.java?view=diff&rev=549158&r1=549157&r2=549158
==============================================================================
--- incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLFactoryBPEL11.java
(original)
+++ incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLFactoryBPEL11.java
Wed Jun 20 10:22:08 2007
@@ -18,15 +18,15 @@
  */
 package org.apache.ode.bpel.compiler.wsdl;
 
-import org.apache.ode.bpel.compiler.bom.Bpel11QNames;
-import org.apache.ode.bpel.compiler.bom.BpelObjectFactory;
-
 import javax.wsdl.Definition;
 import javax.wsdl.Types;
 import javax.wsdl.extensions.ExtensionRegistry;
 import javax.wsdl.factory.WSDLFactory;
 import javax.xml.namespace.QName;
 
+import org.apache.ode.bpel.compiler.bom.Bpel11QNames;
+import org.apache.ode.bpel.compiler.bom.BpelObjectFactory;
+
 /**
  * Factory for {@link WSDLFactory} objects that are pre-configured to handle
  * BPEL 2.0 extension elements.
@@ -57,6 +57,7 @@
         extRegistry.registerDeserializer(Types.class, XMLSchemaType.QNAME, new XMLSchemaTypeSerializer());
         extRegistry.registerDeserializer(Definition.class, new QName(Bpel11QNames.NS_BPEL4WS_PARTNERLINK_2003_05,
                 "partnerLinkType"), _bs);
+        
         return extRegistry;
 
     }

Modified: incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLFactoryImpl.java
URL: http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLFactoryImpl.java?view=diff&rev=549158&r1=549157&r2=549158
==============================================================================
--- incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLFactoryImpl.java
(original)
+++ incubator/ode/trunk/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLFactoryImpl.java
Wed Jun 20 10:22:08 2007
@@ -19,11 +19,14 @@
 package org.apache.ode.bpel.compiler.wsdl;
 
 import javax.wsdl.Definition;
+import javax.wsdl.Operation;
 import javax.wsdl.WSDLException;
+import javax.wsdl.extensions.AttributeExtensible;
 import javax.wsdl.extensions.ExtensionRegistry;
 import javax.wsdl.factory.WSDLFactory;
 import javax.wsdl.xml.WSDLReader;
 import javax.wsdl.xml.WSDLWriter;
+import javax.xml.namespace.QName;
 
 /**
  * Implementation of the BPEL-aware {@link javax.wsdl.factory.WSDLFactory}.
@@ -86,6 +89,11 @@
   }
 
   public ExtensionRegistry newPopulatedExtensionRegistry() {
-    return _wsdlFactory.newPopulatedExtensionRegistry();
+    ExtensionRegistry extRegistry = _wsdlFactory.newPopulatedExtensionRegistry();
+    extRegistry.registerExtensionAttributeType(Operation.class, 
+            new QName("http://www.w3.org/ns/wsdl-extensions","safe"), AttributeExtensible.STRING_TYPE);
+    
+    return extRegistry;
+
   }
 }



Mime
View raw message