diff options
author | edwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68> | 2009-07-20 22:01:11 +0000 |
---|---|---|
committer | edwardsmj <edwardsmj@13f79535-47bb-0310-9956-ffa450edef68> | 2009-07-20 22:01:11 +0000 |
commit | f8bb70061111083d192f738f7ca638bd9b67c02f (patch) | |
tree | 51446e3cf7bb358149b53692377682e6c795d529 /java/sca/modules | |
parent | c055fee6db4a0be83184b67c7c8427fc53038b75 (diff) |
Add support for BPEL 2.0 partnerLink extension elements in WSDL documents, as described in TUSCANY-3168
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@796039 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules')
2 files changed, 6 insertions, 1 deletions
diff --git a/java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELExtensionHandler.java b/java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELExtensionHandler.java index 5178149b63..0983c604b7 100644 --- a/java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELExtensionHandler.java +++ b/java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/BPELExtensionHandler.java @@ -35,7 +35,8 @@ import org.w3c.dom.NodeList; /**
* A WSDL extension processor for extension elements introduced by BPEL - in particular
* the <partnerLinkType.../> elements
- *
+ *
+ * Handles both BPEL 1.1 and BPEL 2.0 version of the <partnerLinkType/>
* @version $Rev$ $Date$
*/
public class BPELExtensionHandler implements ExtensionSerializer, ExtensionDeserializer {
diff --git a/java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java b/java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java index e5a485a7c9..35b4c4f240 100644 --- a/java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java +++ b/java/sca/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/xml/WSDLModelResolver.java @@ -100,6 +100,8 @@ public class WSDLModelResolver implements ModelResolver { public static final String ELEM_PLINKTYPE = "partnerLinkType"; public static final String NS_BPEL_1_1 = "http://schemas.xmlsoap.org/ws/2004/03/partner-link/"; public static final QName BPEL_PLINKTYPE = new QName( NS_BPEL_1_1, ELEM_PLINKTYPE ); + public static final String NS_BPEL_2_0 = "http://docs.oasis-open.org/wsbpel/2.0/plnktype"; + public static final QName BPEL_PLINKTYPE_2_0 = new QName( NS_BPEL_2_0, ELEM_PLINKTYPE ); // ---- end of BPEL extension stuff private Contribution contribution; @@ -141,6 +143,8 @@ public class WSDLModelResolver implements ModelResolver { deserializer = new BPELExtensionHandler(); wsdlExtensionRegistry.registerSerializer(Definition.class, BPEL_PLINKTYPE, serializer); wsdlExtensionRegistry.registerDeserializer(Definition.class, BPEL_PLINKTYPE, deserializer); + wsdlExtensionRegistry.registerSerializer(Definition.class, BPEL_PLINKTYPE_2_0, serializer); + wsdlExtensionRegistry.registerDeserializer(Definition.class, BPEL_PLINKTYPE_2_0, deserializer); // ---- end of BPEL additions } |