You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by va...@apache.org on 2015/06/09 12:21:50 UTC

[2/2] ode git commit: fixes ODE-1023.

fixes ODE-1023.


Project: http://git-wip-us.apache.org/repos/asf/ode/repo
Commit: http://git-wip-us.apache.org/repos/asf/ode/commit/eb46426e
Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/eb46426e
Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/eb46426e

Branch: refs/heads/ode-1.3.x
Commit: eb46426e7ca12a4786711d87ae79a6a8e07935b0
Parents: 7ebc5d4
Author: Tammo van Lessen <tv...@gmail.com>
Authored: Tue Jun 9 12:19:15 2015 +0200
Committer: Tammo van Lessen <tv...@gmail.com>
Committed: Tue Jun 9 12:21:37 2015 +0200

----------------------------------------------------------------------
 .../ode/bpel/compiler/wsdl/WSDLReaderImpl.java  | 133 ++++++++++++++++++-
 1 file changed, 132 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ode/blob/eb46426e/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLReaderImpl.java
----------------------------------------------------------------------
diff --git a/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLReaderImpl.java b/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLReaderImpl.java
index c5839a6..57e89b9 100644
--- a/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLReaderImpl.java
+++ b/bpel-compiler/src/main/java/org/apache/ode/bpel/compiler/wsdl/WSDLReaderImpl.java
@@ -18,9 +18,29 @@
  */
 package org.apache.ode.bpel.compiler.wsdl;
 
+import java.util.Map;
+
+import javax.wsdl.Binding;
+import javax.wsdl.BindingFault;
+import javax.wsdl.BindingInput;
+import javax.wsdl.BindingOperation;
+import javax.wsdl.BindingOutput;
+import javax.wsdl.Definition;
+import javax.wsdl.Fault;
+import javax.wsdl.Input;
+import javax.wsdl.Message;
+import javax.wsdl.Operation;
+import javax.wsdl.Output;
+import javax.wsdl.Part;
+import javax.wsdl.Port;
+import javax.wsdl.PortType;
+import javax.wsdl.Service;
+import javax.wsdl.Types;
 import javax.wsdl.WSDLException;
 import javax.wsdl.factory.WSDLFactory;
 
+import org.w3c.dom.Element;
+
 /**
  * Little hack to solve the disfunctional WSDL4J extension mechanism. Without this,
  * WSDL4J will attempt to do Class.forName to get the WSDLFactory, which will break
@@ -42,5 +62,116 @@ class WSDLReaderImpl extends com.ibm.wsdl.xml.WSDLReaderImpl {
         return _localFactory;
     }
 
-    
+    @Override
+    public Binding parseBinding(Element bindingEl, Definition def) throws WSDLException {
+        Binding binding = super.parseBinding(bindingEl, def);
+        binding.setDocumentationElement(null);
+        return binding;
+    }
+
+    @Override
+    public BindingFault parseBindingFault(Element bindingFaultEl, Definition def) throws WSDLException {
+        BindingFault bindingFault = super.parseBindingFault(bindingFaultEl, def);
+        bindingFault.setDocumentationElement(null);
+        return bindingFault;
+    }
+
+    @Override
+    public BindingInput parseBindingInput(Element bindingInputEl, Definition def) throws WSDLException {
+        BindingInput bindingInput = super.parseBindingInput(bindingInputEl, def);
+        bindingInput.setDocumentationElement(null);
+        return bindingInput;
+    }
+
+    @Override
+    public BindingOperation parseBindingOperation(Element bindingOperationEl, PortType portType, Definition def) throws WSDLException {
+        BindingOperation bindingOperation = super.parseBindingOperation(bindingOperationEl, portType, def);
+        bindingOperation.setDocumentationElement(null);
+        return bindingOperation;
+    }
+
+    @Override
+    public BindingOutput parseBindingOutput(Element bindingOutputEl, Definition def) throws WSDLException {
+        BindingOutput BindingOutput = super.parseBindingOutput(bindingOutputEl, def);
+        BindingOutput.setDocumentationElement(null);
+        return BindingOutput;
+    }
+
+    @SuppressWarnings("rawtypes")
+    @Override
+    public Definition parseDefinitions(String documentBaseURI, Element defEl, Map importedDefs) throws WSDLException {
+        Definition definition = super.parseDefinitions(documentBaseURI, defEl, importedDefs);
+        definition.setDocumentationElement(null);
+        return definition;
+    }
+
+    @Override
+    public Fault parseFault(Element faultEl, Definition def) throws WSDLException {
+        Fault fault = super.parseFault(faultEl, def);
+        fault.setDocumentationElement(null);
+        return fault;
+    }
+
+    @Override
+    public Input parseInput(Element inputEl, Definition def) throws WSDLException {
+        Input input = super.parseInput(inputEl, def);
+        input.setDocumentationElement(null);
+        return input;
+    }
+
+    @Override
+    public Message parseMessage(Element msgEl, Definition def) throws WSDLException {
+        Message message = super.parseMessage(msgEl, def);
+        message.setDocumentationElement(null);
+        return message;
+    }
+
+    @Override
+    public Operation parseOperation(Element opEl, PortType portType, Definition def) throws WSDLException {
+        Operation operation = super.parseOperation(opEl, portType, def);
+        operation.setDocumentationElement(null);
+        return operation;
+    }
+
+    @Override
+    public Output parseOutput(Element outputEl, Definition def) throws WSDLException {
+        Output output = super.parseOutput(outputEl, def);
+        output.setDocumentationElement(null);
+        return output;
+    }
+
+    @Override
+    public Part parsePart(Element partEl, Definition def) throws WSDLException {
+        Part part = super.parsePart(partEl, def);
+        part.setDocumentationElement(null);
+        return part;
+    }
+
+    @Override
+    public Port parsePort(Element portEl, Definition def) throws WSDLException {
+        Port Port = super.parsePort(portEl, def);
+        Port.setDocumentationElement(null);
+        return Port;
+    }
+
+    @Override
+    public PortType parsePortType(Element portTypeEl, Definition def) throws WSDLException {
+        PortType portType = super.parsePortType(portTypeEl, def);
+        portType.setDocumentationElement(null);
+        return portType;
+    }
+
+    @Override
+    public Service parseService(Element serviceEl, Definition def) throws WSDLException {
+        Service service = super.parseService(serviceEl, def);
+        service.setDocumentationElement(null);
+        return service;
+    }
+
+    @Override
+    public Types parseTypes(Element typesEl, Definition def) throws WSDLException {
+        Types types = super.parseTypes(typesEl, def);
+        types.setDocumentationElement(null);
+        return types;
+    }
 }