protected void configureBindingOperation(BindingOperation bindingOperation, Operation operation) throws WSDLException { bindingOperation.setName(operation.getName()); }
protected void configureBindingOperation(BindingOperation bindingOperation, Operation operation) throws WSDLException { bindingOperation.setName(operation.getName()); }
bindingOperation.setName(name);
/** * Called after the {@link BindingOperation} has been created, but before any sub-elements are added. Subclasses can * override this method to define the binding name, or add extensions to it. * * <p>Default implementation sets the name of the binding operation to the name of the operation. * * @param definition the WSDL4J {@code Definition} * @param bindingOperation the WSDL4J {@code BindingOperation} * @throws WSDLException in case of errors */ protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws WSDLException { bindingOperation.setName(bindingOperation.getOperation().getName()); }
/** * Called after the {@link BindingOperation} has been created, but before any sub-elements are added. Subclasses can * override this method to define the binding name, or add extensions to it. * <p/> * Default implementation sets the name of the binding operation to the name of the operation. * * @param definition the WSDL4J <code>Definition</code> * @param bindingOperation the WSDL4J <code>BindingOperation</code> * @throws WSDLException in case of errors */ protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws WSDLException { bindingOperation.setName(bindingOperation.getOperation().getName()); }
/** * Called after the {@link BindingOperation} has been created, but before any sub-elements are added. Subclasses can * override this method to define the binding name, or add extensions to it. * * <p>Default implementation sets the name of the binding operation to the name of the operation. * * @param definition the WSDL4J {@code Definition} * @param bindingOperation the WSDL4J {@code BindingOperation} * @throws WSDLException in case of errors */ protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws WSDLException { bindingOperation.setName(bindingOperation.getOperation().getName()); }
/** * Called after the {@link BindingOperation} has been created, but before any sub-elements are added. Subclasses can * override this method to define the binding name, or add extensions to it. * * <p>Default implementation sets the name of the binding operation to the name of the operation. * * @param definition the WSDL4J {@code Definition} * @param bindingOperation the WSDL4J {@code BindingOperation} * @throws WSDLException in case of errors */ protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws WSDLException { bindingOperation.setName(bindingOperation.getOperation().getName()); }
private BindingOperation addBindingOperation(Definition def, OperationImpl operation, DOMImplementation dImpl) { BindingOperation bindingOperation = def.createBindingOperation(); bindingOperation.setName(operation.getName()); SOAPOperation soapOperation = new SOAPOperationImpl(); bindingOperation.addExtensibilityElement(soapOperation); bindingOperation.setOperation(operation); Document doc = dImpl.createDocument(WSP_NAMESPACE, "Misc", null); UnknownExtensibilityElement exEle = new UnknownExtensibilityElement(); Element anonymousEle = doc.createElementNS("http://www.w3.org/2006/05/addressing/wsdl", "wsaw:Anonymous"); anonymousEle.appendChild(doc.createTextNode("optional")); exEle.setElement(anonymousEle); exEle.setElementType(new QName("http://www.w3.org/2006/05/addressing/wsdl", "wsaw:Anonymous")); bindingOperation.addExtensibilityElement(exEle); return bindingOperation; }
private BindingOperation addBindingOperation(Definition def, OperationImpl operation, DOMImplementation dImpl) { BindingOperation bindingOperation = def.createBindingOperation(); bindingOperation.setName(operation.getName()); SOAPOperation soapOperation = new SOAPOperationImpl(); bindingOperation.addExtensibilityElement(soapOperation); bindingOperation.setOperation(operation); Document doc = dImpl.createDocument(WSP_NAMESPACE, "Misc", null); UnknownExtensibilityElement exEle = new UnknownExtensibilityElement(); Element anonymousEle = doc.createElementNS("http://www.w3.org/2006/05/addressing/wsdl", "wsaw:Anonymous"); anonymousEle.appendChild(doc.createTextNode("optional")); exEle.setElement(anonymousEle); exEle.setElementType(new QName("http://www.w3.org/2006/05/addressing/wsdl", "wsaw:Anonymous")); bindingOperation.addExtensibilityElement(exEle); return bindingOperation; }
private void generateBindingOperation(Binding binding) { for (JavaMethod jmethod : wmodel.getJavaMethods()) { BindingOperation bindOperation = definition.createBindingOperation(); bindOperation.setName(jmethod.getName()); generateBindingOperationInputOutPut(bindOperation, jmethod); binding.addBindingOperation(bindOperation); } }
private BindingOperation generateBindingOperation(Binding wsdlBinding, Operation op, String corbaOpName) { BindingOperation bindingOperation = definition.createBindingOperation(); //OperationType operationType = null; try { corbaOperation = (OperationType)extReg.createExtension(BindingOperation.class, CorbaConstants.NE_CORBA_OPERATION); } catch (WSDLException ex) { throw new RuntimeException(ex); } corbaOperation.setName(corbaOpName); bindingOperation.addExtensibilityElement((ExtensibilityElement)corbaOperation); bindingOperation.setOperation(op); bindingOperation.setName(op.getName()); binding.addBindingOperation(bindingOperation); return bindingOperation; }
protected void buildBindingOperation(Definition def, Binding binding, Collection<BindingOperationInfo> bindingOperationInfos) { BindingOperation bindingOperation = null; for (BindingOperationInfo bindingOperationInfo : bindingOperationInfos) { bindingOperation = def.createBindingOperation(); addDocumentation(bindingOperation, bindingOperationInfo.getDocumentation()); bindingOperation.setName(bindingOperationInfo.getName().getLocalPart()); for (Operation operation : CastUtils.cast(binding.getPortType().getOperations(), Operation.class)) { if (operation.getName().equals(bindingOperation.getName())) { bindingOperation.setOperation(operation); break; } } buildBindingInput(def, bindingOperation, bindingOperationInfo.getInput()); buildBindingOutput(def, bindingOperation, bindingOperationInfo.getOutput()); buildBindingFault(def, bindingOperation, bindingOperationInfo.getFaults()); addExtensibilityAttributes(def, bindingOperation, bindingOperationInfo.getExtensionAttributes()); addExtensibilityElements(def, bindingOperation, getWSDL11Extensors(bindingOperationInfo)); binding.addBindingOperation(bindingOperation); } }
protected void buildBindingOperation(Definition def, Binding binding, Collection<BindingOperationInfo> bindingOperationInfos) { BindingOperation bindingOperation = null; for (BindingOperationInfo bindingOperationInfo : bindingOperationInfos) { bindingOperation = def.createBindingOperation(); addDocumentation(bindingOperation, bindingOperationInfo.getDocumentation()); bindingOperation.setName(bindingOperationInfo.getName().getLocalPart()); for (Operation operation : CastUtils.cast(binding.getPortType().getOperations(), Operation.class)) { if (operation.getName().equals(bindingOperation.getName())) { bindingOperation.setOperation(operation); break; } } buildBindingInput(def, bindingOperation, bindingOperationInfo.getInput()); buildBindingOutput(def, bindingOperation, bindingOperationInfo.getOutput()); buildBindingFault(def, bindingOperation, bindingOperationInfo.getFaults()); addExtensibilityAttributes(def, bindingOperation, bindingOperationInfo.getExtensionAttributes()); addExtensibilityElements(def, bindingOperation, getWSDL11Extensors(bindingOperationInfo)); binding.addBindingOperation(bindingOperation); } }
@SuppressWarnings("unchecked") private void addBindingOperation() throws ToolException { List<Operation> ops = portType.getOperations(); for (Operation op : ops) { BindingOperation bindingOperation = wsdlDefinition.createBindingOperation(); bindingOperation.setName(op.getName()); if (op.getInput() != null) { bindingOperation.setBindingInput(getBindingInput(op.getInput(), op.getName())); } if (op.getOutput() != null) { bindingOperation.setBindingOutput(getBindingOutput(op.getOutput(), op.getName())); } if (op.getFaults() != null && op.getFaults().size() > 0) { addXMLFaults(op, bindingOperation); } bindingOperation.setOperation(op); binding.addBindingOperation(bindingOperation); } }
@SuppressWarnings("unchecked") private static void addBindingOperation(Definition wsdlDefinition, PortType portType, Binding binding, ExtensionRegistry extReg) throws Exception { List<Operation> ops = portType.getOperations(); for (Operation op : ops) { BindingOperation bindingOperation = wsdlDefinition.createBindingOperation(); setSoapOperationExtElement(bindingOperation, extReg); bindingOperation.setName(op.getName()); if (op.getInput() != null) { bindingOperation.setBindingInput(getBindingInput(op.getInput(), wsdlDefinition, extReg)); } if (op.getOutput() != null) { bindingOperation.setBindingOutput(getBindingOutput(op.getOutput(), wsdlDefinition, extReg)); } if (op.getFaults() != null && op.getFaults().size() > 0) { addSoapFaults(op, bindingOperation, wsdlDefinition, extReg); } bindingOperation.setOperation(op); binding.addBindingOperation(bindingOperation); } }
@SuppressWarnings("unchecked") private void addBindingOperation() throws ToolException { List<Operation> ops = portType.getOperations(); for (Operation op : ops) { BindingOperation bindingOperation = wsdlDefinition.createBindingOperation(); bindingOperation.setName(op.getName()); if (op.getInput() != null) { bindingOperation.setBindingInput(getBindingInput(op.getInput(), op.getName())); } if (op.getOutput() != null) { bindingOperation.setBindingOutput(getBindingOutput(op.getOutput(), op.getName())); } if (op.getFaults() != null && op.getFaults().size() > 0) { addXMLFaults(op, bindingOperation); } bindingOperation.setOperation(op); binding.addBindingOperation(bindingOperation); } }
@SuppressWarnings("unchecked") private static void addBindingOperation(Definition wsdlDefinition, PortType portType, Binding binding, ExtensionRegistry extReg) throws Exception { List<Operation> ops = portType.getOperations(); for (Operation op : ops) { BindingOperation bindingOperation = wsdlDefinition.createBindingOperation(); setSoapOperationExtElement(bindingOperation, extReg); bindingOperation.setName(op.getName()); if (op.getInput() != null) { bindingOperation.setBindingInput(getBindingInput(op.getInput(), wsdlDefinition, extReg)); } if (op.getOutput() != null) { bindingOperation.setBindingOutput(getBindingOutput(op.getOutput(), wsdlDefinition, extReg)); } if (op.getFaults() != null && op.getFaults().size() > 0) { addSoapFaults(op, bindingOperation, wsdlDefinition, extReg); } bindingOperation.setOperation(op); binding.addBindingOperation(bindingOperation); } }
@SuppressWarnings("unchecked") private static void addBindingOperation(Definition wsdlDefinition, PortType portType, Binding binding, ExtensionRegistry extReg) throws Exception { List<Operation> ops = portType.getOperations(); for (Operation op : ops) { BindingOperation bindingOperation = wsdlDefinition.createBindingOperation(); setSoapOperationExtElement(bindingOperation, extReg); bindingOperation.setName(op.getName()); if (op.getInput() != null) { bindingOperation.setBindingInput(getBindingInput(op.getInput(), wsdlDefinition, extReg)); } if (op.getOutput() != null) { bindingOperation.setBindingOutput(getBindingOutput(op.getOutput(), wsdlDefinition, extReg)); } if (op.getFaults() != null && op.getFaults().size() > 0) { addSoapFaults(op, bindingOperation, wsdlDefinition, extReg); } bindingOperation.setOperation(op); binding.addBindingOperation(bindingOperation); } }
@SuppressWarnings("unchecked") private void addBindingOperation() throws ToolException { List<Operation> ops = portType.getOperations(); for (Operation op : ops) { BindingOperation bindingOperation = wsdlDefinition.createBindingOperation(); bindingOperation.setName(op.getName()); if (op.getInput() != null) { bindingOperation.setBindingInput(getBindingInput(op.getInput(), op.getName())); } if (op.getOutput() != null) { bindingOperation.setBindingOutput(getBindingOutput(op.getOutput(), op.getName())); } if (op.getFaults() != null && op.getFaults().size() > 0) { addXMLFaults(op, bindingOperation); } bindingOperation.setOperation(op); binding.addBindingOperation(bindingOperation); } }
private BindingOperation generateCorbaBindingOperation(Binding wsdlBinding, Operation op, OperationType corbaOp) { BindingInput bindingInput = definition.createBindingInput(); bindingInput.setName(op.getInput().getName()); BindingOutput bindingOutput = definition.createBindingOutput(); bindingOutput.setName(op.getOutput().getName()); BindingOperation bindingOperation = definition.createBindingOperation(); bindingOperation.addExtensibilityElement((ExtensibilityElement)corbaOp); bindingOperation.setOperation(op); bindingOperation.setName(op.getName()); bindingOperation.setBindingInput(bindingInput); bindingOperation.setBindingOutput(bindingOutput); binding.addBindingOperation(bindingOperation); return bindingOperation; }