com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation Java Examples
The following examples show how to use
com.sun.xml.internal.ws.api.model.wsdl.editable.EditableWSDLBoundOperation.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RuntimeWSDLParser.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private void parseOutputBinding(XMLStreamReader reader, EditableWSDLBoundOperation bindingOp) { boolean bodyFound = false; extensionFacade.bindingOperationOutputAttributes(bindingOp, reader); while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { QName name = reader.getName(); if ((SOAPConstants.QNAME_BODY.equals(name) || SOAPConstants.QNAME_SOAP12BODY.equals(name)) && !bodyFound) { bodyFound = true; bindingOp.setOutputExplicitBodyParts(parseSOAPBodyBinding(reader, bindingOp, BindingMode.OUTPUT)); goToEnd(reader); } else if ((SOAPConstants.QNAME_HEADER.equals(name) || SOAPConstants.QNAME_SOAP12HEADER.equals(name))) { parseSOAPHeaderBinding(reader, bindingOp.getOutputParts()); } else if (MIMEConstants.QNAME_MULTIPART_RELATED.equals(name)) { parseMimeMultipartBinding(reader, bindingOp, BindingMode.OUTPUT); } else { extensionFacade.bindingOperationOutputElements(bindingOp, reader); } } }
Example #2
Source File: RuntimeWSDLParser.java From hottub with GNU General Public License v2.0 | 6 votes |
private void parseInputBinding(XMLStreamReader reader, EditableWSDLBoundOperation bindingOp) { boolean bodyFound = false; extensionFacade.bindingOperationInputAttributes(bindingOp, reader); while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { QName name = reader.getName(); if ((SOAPConstants.QNAME_BODY.equals(name) || SOAPConstants.QNAME_SOAP12BODY.equals(name)) && !bodyFound) { bodyFound = true; bindingOp.setInputExplicitBodyParts(parseSOAPBodyBinding(reader, bindingOp, BindingMode.INPUT)); goToEnd(reader); } else if ((SOAPConstants.QNAME_HEADER.equals(name) || SOAPConstants.QNAME_SOAP12HEADER.equals(name))) { parseSOAPHeaderBinding(reader, bindingOp.getInputParts()); } else if (MIMEConstants.QNAME_MULTIPART_RELATED.equals(name)) { parseMimeMultipartBinding(reader, bindingOp, BindingMode.INPUT); } else { extensionFacade.bindingOperationInputElements(bindingOp, reader); } } }
Example #3
Source File: RuntimeWSDLParser.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private void parseOutputBinding(XMLStreamReader reader, EditableWSDLBoundOperation bindingOp) { boolean bodyFound = false; extensionFacade.bindingOperationOutputAttributes(bindingOp, reader); while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { QName name = reader.getName(); if ((SOAPConstants.QNAME_BODY.equals(name) || SOAPConstants.QNAME_SOAP12BODY.equals(name)) && !bodyFound) { bodyFound = true; bindingOp.setOutputExplicitBodyParts(parseSOAPBodyBinding(reader, bindingOp, BindingMode.OUTPUT)); goToEnd(reader); } else if ((SOAPConstants.QNAME_HEADER.equals(name) || SOAPConstants.QNAME_SOAP12HEADER.equals(name))) { parseSOAPHeaderBinding(reader, bindingOp.getOutputParts()); } else if (MIMEConstants.QNAME_MULTIPART_RELATED.equals(name)) { parseMimeMultipartBinding(reader, bindingOp, BindingMode.OUTPUT); } else { extensionFacade.bindingOperationOutputElements(bindingOp, reader); } } }
Example #4
Source File: RuntimeWSDLParser.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private void parseInputBinding(XMLStreamReader reader, EditableWSDLBoundOperation bindingOp) { boolean bodyFound = false; extensionFacade.bindingOperationInputAttributes(bindingOp, reader); while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { QName name = reader.getName(); if ((SOAPConstants.QNAME_BODY.equals(name) || SOAPConstants.QNAME_SOAP12BODY.equals(name)) && !bodyFound) { bodyFound = true; bindingOp.setInputExplicitBodyParts(parseSOAPBodyBinding(reader, bindingOp, BindingMode.INPUT)); goToEnd(reader); } else if ((SOAPConstants.QNAME_HEADER.equals(name) || SOAPConstants.QNAME_SOAP12HEADER.equals(name))) { parseSOAPHeaderBinding(reader, bindingOp.getInputParts()); } else if (MIMEConstants.QNAME_MULTIPART_RELATED.equals(name)) { parseMimeMultipartBinding(reader, bindingOp, BindingMode.INPUT); } else { extensionFacade.bindingOperationInputElements(bindingOp, reader); } } }
Example #5
Source File: RuntimeWSDLParser.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private void parseInputBinding(XMLStreamReader reader, EditableWSDLBoundOperation bindingOp) { boolean bodyFound = false; extensionFacade.bindingOperationInputAttributes(bindingOp, reader); while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { QName name = reader.getName(); if ((SOAPConstants.QNAME_BODY.equals(name) || SOAPConstants.QNAME_SOAP12BODY.equals(name)) && !bodyFound) { bodyFound = true; bindingOp.setInputExplicitBodyParts(parseSOAPBodyBinding(reader, bindingOp, BindingMode.INPUT)); goToEnd(reader); } else if ((SOAPConstants.QNAME_HEADER.equals(name) || SOAPConstants.QNAME_SOAP12HEADER.equals(name))) { parseSOAPHeaderBinding(reader, bindingOp.getInputParts()); } else if (MIMEConstants.QNAME_MULTIPART_RELATED.equals(name)) { parseMimeMultipartBinding(reader, bindingOp, BindingMode.INPUT); } else { extensionFacade.bindingOperationInputElements(bindingOp, reader); } } }
Example #6
Source File: RuntimeWSDLParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private void parseOutputBinding(XMLStreamReader reader, EditableWSDLBoundOperation bindingOp) { boolean bodyFound = false; extensionFacade.bindingOperationOutputAttributes(bindingOp, reader); while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { QName name = reader.getName(); if ((SOAPConstants.QNAME_BODY.equals(name) || SOAPConstants.QNAME_SOAP12BODY.equals(name)) && !bodyFound) { bodyFound = true; bindingOp.setOutputExplicitBodyParts(parseSOAPBodyBinding(reader, bindingOp, BindingMode.OUTPUT)); goToEnd(reader); } else if ((SOAPConstants.QNAME_HEADER.equals(name) || SOAPConstants.QNAME_SOAP12HEADER.equals(name))) { parseSOAPHeaderBinding(reader, bindingOp.getOutputParts()); } else if (MIMEConstants.QNAME_MULTIPART_RELATED.equals(name)) { parseMimeMultipartBinding(reader, bindingOp, BindingMode.OUTPUT); } else { extensionFacade.bindingOperationOutputElements(bindingOp, reader); } } }
Example #7
Source File: RuntimeWSDLParser.java From hottub with GNU General Public License v2.0 | 6 votes |
private void parseOutputBinding(XMLStreamReader reader, EditableWSDLBoundOperation bindingOp) { boolean bodyFound = false; extensionFacade.bindingOperationOutputAttributes(bindingOp, reader); while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { QName name = reader.getName(); if ((SOAPConstants.QNAME_BODY.equals(name) || SOAPConstants.QNAME_SOAP12BODY.equals(name)) && !bodyFound) { bodyFound = true; bindingOp.setOutputExplicitBodyParts(parseSOAPBodyBinding(reader, bindingOp, BindingMode.OUTPUT)); goToEnd(reader); } else if ((SOAPConstants.QNAME_HEADER.equals(name) || SOAPConstants.QNAME_SOAP12HEADER.equals(name))) { parseSOAPHeaderBinding(reader, bindingOp.getOutputParts()); } else if (MIMEConstants.QNAME_MULTIPART_RELATED.equals(name)) { parseMimeMultipartBinding(reader, bindingOp, BindingMode.OUTPUT); } else { extensionFacade.bindingOperationOutputElements(bindingOp, reader); } } }
Example #8
Source File: WSDLBoundPortTypeImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public EditableWSDLBoundOperation getOperation(String namespaceUri, String localName) { if(namespaceUri==null && localName == null) return emptyPayloadOperation; else{ return payloadMap.get((namespaceUri==null)?"":namespaceUri,localName); } }
Example #9
Source File: WSDLBoundPortTypeImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
public EditableWSDLBoundOperation getOperation(String namespaceUri, String localName) { if(namespaceUri==null && localName == null) return emptyPayloadOperation; else{ return payloadMap.get((namespaceUri==null)?"":namespaceUri,localName); } }
Example #10
Source File: WSDLBoundFaultImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
public void freeze(EditableWSDLBoundOperation root) { assert root != null; EditableWSDLOperation op = root.getOperation(); if (op != null) { for (EditableWSDLFault f : op.getFaults()) { if (f.getName().equals(name)) { this.fault = f; break; } } } }
Example #11
Source File: WSDLBoundFaultImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public void freeze(EditableWSDLBoundOperation root) { assert root != null; EditableWSDLOperation op = root.getOperation(); if (op != null) { for (EditableWSDLFault f : op.getFaults()) { if (f.getName().equals(name)) { this.fault = f; break; } } } }
Example #12
Source File: RuntimeWSDLParser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private static void parseMIMEPart(XMLStreamReader reader, EditableWSDLBoundOperation op, BindingMode mode) { boolean bodyFound = false; Map<String, ParameterBinding> parts = null; if (mode == BindingMode.INPUT) { parts = op.getInputParts(); } else if (mode == BindingMode.OUTPUT) { parts = op.getOutputParts(); } else if (mode == BindingMode.FAULT) { parts = op.getFaultParts(); } while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { QName name = reader.getName(); if (SOAPConstants.QNAME_BODY.equals(name) && !bodyFound) { bodyFound = true; parseSOAPBodyBinding(reader, op, mode); XMLStreamReaderUtil.next(reader); } else if (SOAPConstants.QNAME_HEADER.equals(name)) { bodyFound = true; parseSOAPHeaderBinding(reader, parts); XMLStreamReaderUtil.next(reader); } else if (MIMEConstants.QNAME_CONTENT.equals(name)) { String part = reader.getAttributeValue(null, "part"); String type = reader.getAttributeValue(null, "type"); if ((part == null) || (type == null)) { XMLStreamReaderUtil.skipElement(reader); continue; } ParameterBinding sb = ParameterBinding.createAttachment(type); if (parts != null && sb != null && part != null) parts.put(part, sb); XMLStreamReaderUtil.next(reader); } else { XMLStreamReaderUtil.skipElement(reader); } } }
Example #13
Source File: RuntimeWSDLParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static void parseMIMEPart(XMLStreamReader reader, EditableWSDLBoundOperation op, BindingMode mode) { boolean bodyFound = false; Map<String, ParameterBinding> parts = null; if (mode == BindingMode.INPUT) { parts = op.getInputParts(); } else if (mode == BindingMode.OUTPUT) { parts = op.getOutputParts(); } else if (mode == BindingMode.FAULT) { parts = op.getFaultParts(); } while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { QName name = reader.getName(); if (SOAPConstants.QNAME_BODY.equals(name) && !bodyFound) { bodyFound = true; parseSOAPBodyBinding(reader, op, mode); XMLStreamReaderUtil.next(reader); } else if (SOAPConstants.QNAME_HEADER.equals(name)) { bodyFound = true; parseSOAPHeaderBinding(reader, parts); XMLStreamReaderUtil.next(reader); } else if (MIMEConstants.QNAME_CONTENT.equals(name)) { String part = reader.getAttributeValue(null, "part"); String type = reader.getAttributeValue(null, "type"); if ((part == null) || (type == null)) { XMLStreamReaderUtil.skipElement(reader); continue; } ParameterBinding sb = ParameterBinding.createAttachment(type); if (parts != null && sb != null && part != null) parts.put(part, sb); XMLStreamReaderUtil.next(reader); } else { XMLStreamReaderUtil.skipElement(reader); } } }
Example #14
Source File: RuntimeWSDLParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private void parseFaultBinding(XMLStreamReader reader, EditableWSDLBoundOperation bindingOp) { String faultName = ParserUtil.getMandatoryNonEmptyAttribute(reader, "name"); EditableWSDLBoundFault wsdlBoundFault = new WSDLBoundFaultImpl(reader, faultName, bindingOp); bindingOp.addFault(wsdlBoundFault); extensionFacade.bindingOperationFaultAttributes(wsdlBoundFault, reader); while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { extensionFacade.bindingOperationFaultElements(wsdlBoundFault, reader); } }
Example #15
Source File: WSDLBoundPortTypeImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * Gets the {@link ParameterBinding} for a given operation, part name and the direction - IN/OUT * * @param operation wsdl:operation@name value. Must be non-null. * @param part wsdl:part@name such as value of soap:header@part. Must be non-null. * @param mode {@link Mode#IN} or {@link Mode#OUT}. Must be non-null. * @return null if the binding could not be resolved for the part. */ public ParameterBinding getBinding(QName operation, String part, Mode mode) { EditableWSDLBoundOperation op = get(operation); if (op == null) { //TODO throw exception return null; } if ((Mode.IN == mode) || (Mode.INOUT == mode)) return op.getInputBinding(part); else return op.getOutputBinding(part); }
Example #16
Source File: RuntimeWSDLParser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private void parseFaultBinding(XMLStreamReader reader, EditableWSDLBoundOperation bindingOp) { String faultName = ParserUtil.getMandatoryNonEmptyAttribute(reader, "name"); EditableWSDLBoundFault wsdlBoundFault = new WSDLBoundFaultImpl(reader, faultName, bindingOp); bindingOp.addFault(wsdlBoundFault); extensionFacade.bindingOperationFaultAttributes(wsdlBoundFault, reader); while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { extensionFacade.bindingOperationFaultElements(wsdlBoundFault, reader); } }
Example #17
Source File: WSDLBoundPortTypeImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void freeze() { portType = owner.getPortType(portTypeName); if(portType == null){ throw new LocatableWebServiceException( ClientMessages.UNDEFINED_PORT_TYPE(portTypeName), getLocation()); } portType.freeze(); for (EditableWSDLBoundOperation op : bindingOperations.values()) { op.freeze(owner); } freezePayloadMap(); owner.finalizeRpcLitBinding(this); }
Example #18
Source File: RuntimeWSDLParser.java From hottub with GNU General Public License v2.0 | 5 votes |
private static void parseMIMEPart(XMLStreamReader reader, EditableWSDLBoundOperation op, BindingMode mode) { boolean bodyFound = false; Map<String, ParameterBinding> parts = null; if (mode == BindingMode.INPUT) { parts = op.getInputParts(); } else if (mode == BindingMode.OUTPUT) { parts = op.getOutputParts(); } else if (mode == BindingMode.FAULT) { parts = op.getFaultParts(); } while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { QName name = reader.getName(); if (SOAPConstants.QNAME_BODY.equals(name) && !bodyFound) { bodyFound = true; parseSOAPBodyBinding(reader, op, mode); XMLStreamReaderUtil.next(reader); } else if (SOAPConstants.QNAME_HEADER.equals(name)) { bodyFound = true; parseSOAPHeaderBinding(reader, parts); XMLStreamReaderUtil.next(reader); } else if (MIMEConstants.QNAME_CONTENT.equals(name)) { String part = reader.getAttributeValue(null, "part"); String type = reader.getAttributeValue(null, "type"); if ((part == null) || (type == null)) { XMLStreamReaderUtil.skipElement(reader); continue; } ParameterBinding sb = ParameterBinding.createAttachment(type); if (parts != null && sb != null && part != null) parts.put(part, sb); XMLStreamReaderUtil.next(reader); } else { XMLStreamReaderUtil.skipElement(reader); } } }
Example #19
Source File: WSDLBoundFaultImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public void freeze(EditableWSDLBoundOperation root) { assert root != null; EditableWSDLOperation op = root.getOperation(); if (op != null) { for (EditableWSDLFault f : op.getFaults()) { if (f.getName().equals(name)) { this.fault = f; break; } } } }
Example #20
Source File: RuntimeWSDLParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static boolean parseSOAPBodyBinding(XMLStreamReader reader, EditableWSDLBoundOperation op, BindingMode mode) { String namespace = reader.getAttributeValue(null, "namespace"); if (mode == BindingMode.INPUT) { op.setRequestNamespace(namespace); return parseSOAPBodyBinding(reader, op.getInputParts()); } //resp op.setResponseNamespace(namespace); return parseSOAPBodyBinding(reader, op.getOutputParts()); }
Example #21
Source File: RuntimeWSDLParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static void parseMIMEPart(XMLStreamReader reader, EditableWSDLBoundOperation op, BindingMode mode) { boolean bodyFound = false; Map<String, ParameterBinding> parts = null; if (mode == BindingMode.INPUT) { parts = op.getInputParts(); } else if (mode == BindingMode.OUTPUT) { parts = op.getOutputParts(); } else if (mode == BindingMode.FAULT) { parts = op.getFaultParts(); } while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { QName name = reader.getName(); if (SOAPConstants.QNAME_BODY.equals(name) && !bodyFound) { bodyFound = true; parseSOAPBodyBinding(reader, op, mode); XMLStreamReaderUtil.next(reader); } else if (SOAPConstants.QNAME_HEADER.equals(name)) { bodyFound = true; parseSOAPHeaderBinding(reader, parts); XMLStreamReaderUtil.next(reader); } else if (MIMEConstants.QNAME_CONTENT.equals(name)) { String part = reader.getAttributeValue(null, "part"); String type = reader.getAttributeValue(null, "type"); if ((part == null) || (type == null)) { XMLStreamReaderUtil.skipElement(reader); continue; } ParameterBinding sb = ParameterBinding.createAttachment(type); if (parts != null && sb != null && part != null) parts.put(part, sb); XMLStreamReaderUtil.next(reader); } else { XMLStreamReaderUtil.skipElement(reader); } } }
Example #22
Source File: RuntimeWSDLParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private static boolean parseSOAPBodyBinding(XMLStreamReader reader, EditableWSDLBoundOperation op, BindingMode mode) { String namespace = reader.getAttributeValue(null, "namespace"); if (mode == BindingMode.INPUT) { op.setRequestNamespace(namespace); return parseSOAPBodyBinding(reader, op.getInputParts()); } //resp op.setResponseNamespace(namespace); return parseSOAPBodyBinding(reader, op.getOutputParts()); }
Example #23
Source File: WSDLBoundPortTypeImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
public EditableWSDLBoundOperation getOperation(String namespaceUri, String localName) { if(namespaceUri==null && localName == null) return emptyPayloadOperation; else{ return payloadMap.get((namespaceUri==null)?"":namespaceUri,localName); } }
Example #24
Source File: RuntimeWSDLParser.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static void parseMimeMultipartBinding(XMLStreamReader reader, EditableWSDLBoundOperation op, BindingMode mode) { while (XMLStreamReaderUtil.nextElementContent(reader) != XMLStreamConstants.END_ELEMENT) { QName name = reader.getName(); if (MIMEConstants.QNAME_PART.equals(name)) { parseMIMEPart(reader, op, mode); } else { XMLStreamReaderUtil.skipElement(reader); } } }
Example #25
Source File: RuntimeWSDLParser.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private static boolean parseSOAPBodyBinding(XMLStreamReader reader, EditableWSDLBoundOperation op, BindingMode mode) { String namespace = reader.getAttributeValue(null, "namespace"); if (mode == BindingMode.INPUT) { op.setRequestNamespace(namespace); return parseSOAPBodyBinding(reader, op.getInputParts()); } //resp op.setResponseNamespace(namespace); return parseSOAPBodyBinding(reader, op.getOutputParts()); }
Example #26
Source File: WSDLBoundPortTypeImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
public EditableWSDLBoundOperation getOperation(String namespaceUri, String localName) { if(namespaceUri==null && localName == null) return emptyPayloadOperation; else{ return payloadMap.get((namespaceUri==null)?"":namespaceUri,localName); } }
Example #27
Source File: WSDLBoundFaultImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void freeze(EditableWSDLBoundOperation root) { assert root != null; EditableWSDLOperation op = root.getOperation(); if (op != null) { for (EditableWSDLFault f : op.getFaults()) { if (f.getName().equals(name)) { this.fault = f; break; } } } }
Example #28
Source File: WSDLBoundPortTypeImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
public void freeze() { portType = owner.getPortType(portTypeName); if(portType == null){ throw new LocatableWebServiceException( ClientMessages.UNDEFINED_PORT_TYPE(portTypeName), getLocation()); } portType.freeze(); for (EditableWSDLBoundOperation op : bindingOperations.values()) { op.freeze(owner); } freezePayloadMap(); owner.finalizeRpcLitBinding(this); }
Example #29
Source File: WSDLBoundFaultImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public void freeze(EditableWSDLBoundOperation root) { assert root != null; EditableWSDLOperation op = root.getOperation(); if (op != null) { for (EditableWSDLFault f : op.getFaults()) { if (f.getName().equals(name)) { this.fault = f; break; } } } }
Example #30
Source File: WSDLBoundPortTypeImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * Gets the {@link ParameterBinding} for a given operation, part name and the direction - IN/OUT * * @param operation wsdl:operation@name value. Must be non-null. * @param part wsdl:part@name such as value of soap:header@part. Must be non-null. * @param mode {@link Mode#IN} or {@link Mode#OUT}. Must be non-null. * @return null if the binding could not be resolved for the part. */ public ParameterBinding getBinding(QName operation, String part, Mode mode) { EditableWSDLBoundOperation op = get(operation); if (op == null) { //TODO throw exception return null; } if ((Mode.IN == mode) || (Mode.INOUT == mode)) return op.getInputBinding(part); else return op.getOutputBinding(part); }