Repository: ode Updated Branches: refs/heads/master 8538f0035 -> 1f3f429a8 refs/heads/ode-1.3.x 7ebc5d4b4 -> eb46426e7
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/1f3f429a Tree: http://git-wip-us.apache.org/repos/asf/ode/tree/1f3f429a Diff: http://git-wip-us.apache.org/repos/asf/ode/diff/1f3f429a Branch: refs/heads/master Commit: 1f3f429a843726ee85401db5da516765496fb59a Parents: 8538f00 Author: Tammo van Lessen <[email protected]> Authored: Tue Jun 9 12:19:15 2015 +0200 Committer: Tammo van Lessen <[email protected]> Committed: Tue Jun 9 12:19:15 2015 +0200 ---------------------------------------------------------------------- .../ode/bpel/compiler/wsdl/WSDLReaderImpl.java | 131 +++++++++++++++++++ 1 file changed, 131 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ode/blob/1f3f429a/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 ea68329..341097a 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; + } }
