bindingOperation.addExtensibilityElement( parseExtensibilityElement(BindingOperation.class, tempEl, def));
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 static void setSoapOperationExtElement(BindingOperation bo, ExtensionRegistry extReg) throws Exception { SOAPOperation soapOperation = SOAPBindingUtil.createSoapOperation(extReg, false); soapOperation.setStyle(style); soapOperation.setSoapActionURI(""); bo.addExtensibilityElement(soapOperation); }
private static void setSoapOperationExtElement(BindingOperation bo, ExtensionRegistry extReg) throws Exception { SOAPOperation soapOperation = SOAPBindingUtil.createSoapOperation(extReg, false); soapOperation.setStyle(style); soapOperation.setSoapActionURI(""); bo.addExtensibilityElement(soapOperation); }
private static void setSoapOperationExtElement(BindingOperation bo, ExtensionRegistry extReg) throws Exception { SOAPOperation soapOperation = SOAPBindingUtil.createSoapOperation(extReg, false); soapOperation.setStyle(style); soapOperation.setSoapActionURI(""); bo.addExtensibilityElement(soapOperation); }
/** * Called after the {@link BindingOperation} has been created, but before any sub-elements are added. Subclasses can * implement this method to define the binding name, or add extensions to it. * * <p>Default implementation calls {@link DefaultConcretePartProvider#populateBindingOperation(Definition, * BindingOperation)}, creates a {@link SOAPOperation}, and calls {@link #populateSoapOperation} 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 */ @Override protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws WSDLException { super.populateBindingOperation(definition, bindingOperation); SOAPOperation soapOperation = (SOAPOperation) createSoapExtension(definition, BindingOperation.class, "operation"); populateSoapOperation(soapOperation, bindingOperation); bindingOperation.addExtensibilityElement(soapOperation); }
/** * Called after the {@link javax.wsdl.BindingOperation} has been created, but before any sub-elements are added. * Subclasses can implement this method to define the binding name, or add extensions to it. * * <p>Default implementation calls {@link DefaultConcretePartProvider#populateBindingOperation(javax.wsdl.Definition, * javax.wsdl.BindingOperation)}, creates a {@link javax.wsdl.extensions.soap.SOAPOperation}, and calls {@link * #populateSoapOperation} 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 javax.wsdl.WSDLException in case of errors */ @Override protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws WSDLException { super.populateBindingOperation(definition, bindingOperation); SOAP12Operation soapOperation = (SOAP12Operation) createSoapExtension(definition, BindingOperation.class, "operation"); populateSoapOperation(soapOperation, bindingOperation); bindingOperation.addExtensibilityElement(soapOperation); }
/** * Called after the {@link BindingOperation} has been created, but before any sub-elements are added. Subclasses can * implement this method to define the binding name, or add extensions to it. * <p/> * Default implementation calls {@link DefaultConcretePartProvider#populateBindingOperation(Definition, * BindingOperation)}, creates a {@link SOAPOperation}, and calls {@link #populateSoapOperation} 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 */ @Override protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws WSDLException { super.populateBindingOperation(definition, bindingOperation); SOAPOperation soapOperation = (SOAPOperation) createSoapExtension(definition, BindingOperation.class, "operation"); populateSoapOperation(soapOperation, bindingOperation); bindingOperation.addExtensibilityElement(soapOperation); }
/** * Called after the {@link BindingOperation} has been created, but before any sub-elements are added. Subclasses can * implement this method to define the binding name, or add extensions to it. * * <p>Default implementation calls {@link DefaultConcretePartProvider#populateBindingOperation(Definition, * BindingOperation)}, creates a {@link SOAPOperation}, and calls {@link #populateSoapOperation} 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 */ @Override protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws WSDLException { super.populateBindingOperation(definition, bindingOperation); SOAPOperation soapOperation = (SOAPOperation) createSoapExtension(definition, BindingOperation.class, "operation"); populateSoapOperation(soapOperation, bindingOperation); bindingOperation.addExtensibilityElement(soapOperation); }
/** * Called after the {@link javax.wsdl.BindingOperation} has been created, but before any sub-elements are added. * Subclasses can implement this method to define the binding name, or add extensions to it. * <p/> * Default implementation calls {@link DefaultConcretePartProvider#populateBindingOperation(javax.wsdl.Definition, * javax.wsdl.BindingOperation)}, creates a {@link javax.wsdl.extensions.soap.SOAPOperation}, and calls {@link * #populateSoapOperation} 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 javax.wsdl.WSDLException in case of errors */ @Override protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws WSDLException { super.populateBindingOperation(definition, bindingOperation); SOAP12Operation soapOperation = (SOAP12Operation) createSoapExtension(definition, BindingOperation.class, "operation"); populateSoapOperation(soapOperation, bindingOperation); bindingOperation.addExtensibilityElement(soapOperation); }
/** * Called after the {@link javax.wsdl.BindingOperation} has been created, but before any sub-elements are added. * Subclasses can implement this method to define the binding name, or add extensions to it. * * <p>Default implementation calls {@link DefaultConcretePartProvider#populateBindingOperation(javax.wsdl.Definition, * javax.wsdl.BindingOperation)}, creates a {@link javax.wsdl.extensions.soap.SOAPOperation}, and calls {@link * #populateSoapOperation} 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 javax.wsdl.WSDLException in case of errors */ @Override protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws WSDLException { super.populateBindingOperation(definition, bindingOperation); SOAP12Operation soapOperation = (SOAP12Operation) createSoapExtension(definition, BindingOperation.class, "operation"); populateSoapOperation(soapOperation, bindingOperation); bindingOperation.addExtensibilityElement(soapOperation); }
/** * Called after the {@link BindingOperation} has been created, but before any sub-elements are added. Subclasses can * implement this method to define the binding name, or add extensions to it. * * <p>Default implementation calls {@link DefaultConcretePartProvider#populateBindingOperation(Definition, * BindingOperation)}, creates a {@link SOAPOperation}, and calls {@link #populateSoapOperation} 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 */ @Override protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws WSDLException { super.populateBindingOperation(definition, bindingOperation); SOAPOperation soapOperation = (SOAPOperation) createSoapExtension(definition, BindingOperation.class, "operation"); populateSoapOperation(soapOperation, bindingOperation); bindingOperation.addExtensibilityElement(soapOperation); }
/** * Called after the {@link javax.wsdl.BindingOperation} has been created, but before any sub-elements are added. * Subclasses can implement this method to define the binding name, or add extensions to it. * * <p>Default implementation calls {@link DefaultConcretePartProvider#populateBindingOperation(javax.wsdl.Definition, * javax.wsdl.BindingOperation)}, creates a {@link javax.wsdl.extensions.soap.SOAPOperation}, and calls {@link * #populateSoapOperation} 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 javax.wsdl.WSDLException in case of errors */ @Override protected void populateBindingOperation(Definition definition, BindingOperation bindingOperation) throws WSDLException { super.populateBindingOperation(definition, bindingOperation); SOAP12Operation soapOperation = (SOAP12Operation) createSoapExtension(definition, BindingOperation.class, "operation"); populateSoapOperation(soapOperation, bindingOperation); bindingOperation.addExtensibilityElement(soapOperation); }
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; }
private void setSoapOperationExtElement(BindingOperation bo) throws ToolException { if (extReg == null) { extReg = wsdlFactory.newPopulatedExtensionRegistry(); } SOAPOperation soapOperation = null; try { soapOperation = (SOAPOperation)extReg.createExtension(BindingOperation.class, WSDLConstants.NS_SOAP_OPERATION); } catch (WSDLException wse) { Message msg = new Message("FAIL_TO_CREATE_SOAPBINDING", LOG); throw new ToolException(msg, wse); } soapOperation.setStyle((String)env.get(ToolConstants.CFG_STYLE)); soapOperation.setSoapActionURI(""); bo.addExtensibilityElement(soapOperation); }
private void setSoapOperationExtElement(BindingOperation bo) throws ToolException { if (extReg == null) { extReg = wsdlFactory.newPopulatedExtensionRegistry(); } SoapOperation soapOperation = null; try { soapOperation = SOAPBindingUtil.createSoapOperation(extReg, isSOAP12()); } catch (WSDLException wse) { Message msg = new Message("FAIL_TO_CREATE_SOAPBINDING", LOG); throw new ToolException(msg, wse); } soapOperation.setStyle((String)env.get(ToolConstants.CFG_STYLE)); soapOperation.setSoapActionURI(""); bo.addExtensibilityElement(soapOperation); }
private void setSoapOperationExtElement(BindingOperation bo) throws ToolException { if (extReg == null) { extReg = wsdlFactory.newPopulatedExtensionRegistry(); } SoapOperation soapOperation = null; try { soapOperation = SOAPBindingUtil.createSoapOperation(extReg, isSOAP12()); } catch (WSDLException wse) { Message msg = new Message("FAIL_TO_CREATE_SOAPBINDING", LOG); throw new ToolException(msg, wse); } soapOperation.setStyle((String)env.get(ToolConstants.CFG_STYLE)); soapOperation.setSoapActionURI(""); bo.addExtensibilityElement(soapOperation); }
private void generateBindingOperationInputOutPut(BindingOperation operation, JavaMethod jmethod) { // generate soap binding action SOAPOperation soapOperation = generateSoapAction(); soapOperation.setStyle(jmethod.getSoapStyle().name().toLowerCase()); soapOperation.setSoapActionURI(jmethod.getSoapAction()); operation.addExtensibilityElement(soapOperation); generateInputSoapBody(jmethod, operation, jmethod.getRequest()); generateOutputSoapBody(jmethod, operation, jmethod.getResponse()); for (org.objectweb.celtix.tools.common.model.WSDLException ex : jmethod.getWSDLExceptions()) { BindingFault bindingFault = definition.createBindingFault(); bindingFault.setName(ex.getExcpetionClass().getSimpleName()); operation.addBindingFault(bindingFault); javax.wsdl.extensions.soap.SOAPFault soapFault = null; try { soapFault = (javax.wsdl.extensions.soap.SOAPFault)extensionRegistry .createExtension(BindingFault.class, new QName(WSDLConstants.SOAP11_NAMESPACE, "fault")); soapFault.setUse("literal"); soapFault.setName(ex.getExcpetionClass().getSimpleName()); } catch (WSDLException e) { throw new ToolException(e.getMessage(), e); } bindingFault.addExtensibilityElement(soapFault); } }
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; }