bindingOutput.addExtensibilityElement( parseExtensibilityElement(BindingOutput.class, tempEl, def));
private static BindingOutput getBindingOutput(Output output, Definition wsdlDefinition, ExtensionRegistry extReg) throws Exception { BindingOutput bo = wsdlDefinition.createBindingOutput(); bo.setName(output.getName()); bo.addExtensibilityElement(getSoapBody(BindingOutput.class, extReg)); return bo; }
/** * Called after the {@link BindingInput} has been created. Subclasses can implement this method to define the name, * or add extensions to it. * * <p>Default implementation calls {@link DefaultConcretePartProvider#populateBindingOutput(Definition, BindingOutput, * Output)}, creates a {@link SOAPBody}, and calls {@link #populateSoapBody(SOAPBody)}. * * @param definition the WSDL4J {@code Definition} * @param bindingOutput the WSDL4J {@code BindingOutput} * @param output the corresponding WSDL4J {@code Output} @throws WSDLException in case of errors */ @Override protected void populateBindingOutput(Definition definition, BindingOutput bindingOutput, Output output) throws WSDLException { super.populateBindingOutput(definition, bindingOutput, output); SOAPBody soapBody = (SOAPBody) createSoapExtension(definition, BindingOutput.class, "body"); populateSoapBody(soapBody); bindingOutput.addExtensibilityElement(soapBody); }
private static BindingOutput getBindingOutput(Output output, Definition wsdlDefinition, ExtensionRegistry extReg) throws Exception { BindingOutput bo = wsdlDefinition.createBindingOutput(); bo.setName(output.getName()); bo.addExtensibilityElement(getSoapBody(BindingOutput.class, extReg)); return bo; }
private BindingOutput getBindingOutput(Output output, String operationName) throws ToolException { BindingOutput bo = wsdlDefinition.createBindingOutput(); bo.setName(output.getName()); bo.addExtensibilityElement(getXMLBody(BindingOutput.class, operationName)); return bo; }
private BindingOutput getBindingOutput(Output output) throws ToolException { BindingOutput bo = wsdlDefinition.createBindingOutput(); bo.setName(output.getName()); // As command line won't specify the details of body/header for message // parts // All output message's parts will be added into one soap body element bo.addExtensibilityElement(getSoapBody(BindingOutput.class)); return bo; }
private BindingOutput getBindingOutput(Output output, String operationName) throws ToolException { BindingOutput bo = wsdlDefinition.createBindingOutput(); bo.setName(output.getName()); bo.addExtensibilityElement(getXMLBody(BindingOutput.class, operationName)); return bo; }
private BindingOutput getBindingOutput(Output output) throws ToolException { BindingOutput bo = wsdlDefinition.createBindingOutput(); bo.setName(output.getName()); // As command line won't specify the details of body/header for message // parts // All output message's parts will be added into one soap body element bo.addExtensibilityElement(getSoapBody(BindingOutput.class)); return bo; }
private BindingOutput getBindingOutput(Output output) throws ToolException { BindingOutput bo = wsdlDefinition.createBindingOutput(); bo.setName(output.getName()); // As command line won't specify the details of body/header for message // parts // All output message's parts will be added into one soap body element bo.addExtensibilityElement(getSoapBody(BindingOutput.class)); return bo; }
/** * Called after the {@link javax.wsdl.BindingInput} has been created. Subclasses can implement this method to define * the name, or add extensions to it. * * <p>Default implementation calls {@link DefaultConcretePartProvider#populateBindingOutput(javax.wsdl.Definition, * javax.wsdl.BindingOutput, javax.wsdl.Output)}, creates a {@link javax.wsdl.extensions.soap.SOAPBody}, and calls * {@link #populateSoapBody(javax.wsdl.extensions.soap12.SOAP12Body)}. * * @param definition the WSDL4J {@code Definition} * @param bindingOutput the WSDL4J {@code BindingOutput} * @param output the corresponding WSDL4J {@code Output} @throws WSDLException in case of errors */ @Override protected void populateBindingOutput(Definition definition, BindingOutput bindingOutput, Output output) throws WSDLException { super.populateBindingOutput(definition, bindingOutput, output); SOAP12Body soapBody = (SOAP12Body) createSoapExtension(definition, BindingOutput.class, "body"); populateSoapBody(soapBody); bindingOutput.addExtensibilityElement(soapBody); }
/** * Called after the {@link BindingInput} has been created. Subclasses can implement this method to define the name, * or add extensions to it. * * <p>Default implementation calls {@link DefaultConcretePartProvider#populateBindingOutput(Definition, BindingOutput, * Output)}, creates a {@link SOAPBody}, and calls {@link #populateSoapBody(SOAPBody)}. * * @param definition the WSDL4J {@code Definition} * @param bindingOutput the WSDL4J {@code BindingOutput} * @param output the corresponding WSDL4J {@code Output} @throws WSDLException in case of errors */ @Override protected void populateBindingOutput(Definition definition, BindingOutput bindingOutput, Output output) throws WSDLException { super.populateBindingOutput(definition, bindingOutput, output); SOAPBody soapBody = (SOAPBody) createSoapExtension(definition, BindingOutput.class, "body"); populateSoapBody(soapBody); bindingOutput.addExtensibilityElement(soapBody); }
/** * Called after the {@link javax.wsdl.BindingInput} has been created. Subclasses can implement this method to define * the name, or add extensions to it. * * <p>Default implementation calls {@link DefaultConcretePartProvider#populateBindingOutput(javax.wsdl.Definition, * javax.wsdl.BindingOutput, javax.wsdl.Output)}, creates a {@link javax.wsdl.extensions.soap.SOAPBody}, and calls * {@link #populateSoapBody(javax.wsdl.extensions.soap12.SOAP12Body)}. * * @param definition the WSDL4J {@code Definition} * @param bindingOutput the WSDL4J {@code BindingOutput} * @param output the corresponding WSDL4J {@code Output} @throws WSDLException in case of errors */ @Override protected void populateBindingOutput(Definition definition, BindingOutput bindingOutput, Output output) throws WSDLException { super.populateBindingOutput(definition, bindingOutput, output); SOAP12Body soapBody = (SOAP12Body) createSoapExtension(definition, BindingOutput.class, "body"); populateSoapBody(soapBody); bindingOutput.addExtensibilityElement(soapBody); }
/** * Called after the {@link BindingInput} has been created. Subclasses can implement this method to define the name, * or add extensions to it. * <p/> * Default implementation calls {@link DefaultConcretePartProvider#populateBindingOutput(Definition, BindingOutput, * Output)}, creates a {@link SOAPBody}, and calls {@link #populateSoapBody(SOAPBody)}. * * @param definition the WSDL4J <code>Definition</code> * @param bindingOutput the WSDL4J <code>BindingOutput</code> * @param output the corresponding WSDL4J <code>Output</code> @throws WSDLException in case of errors */ @Override protected void populateBindingOutput(Definition definition, BindingOutput bindingOutput, Output output) throws WSDLException { super.populateBindingOutput(definition, bindingOutput, output); SOAPBody soapBody = (SOAPBody) createSoapExtension(definition, BindingOutput.class, "body"); populateSoapBody(soapBody); bindingOutput.addExtensibilityElement(soapBody); }
/** * Called after the {@link BindingInput} has been created. Subclasses can implement this method to define the name, * or add extensions to it. * * <p>Default implementation calls {@link DefaultConcretePartProvider#populateBindingOutput(Definition, BindingOutput, * Output)}, creates a {@link SOAPBody}, and calls {@link #populateSoapBody(SOAPBody)}. * * @param definition the WSDL4J {@code Definition} * @param bindingOutput the WSDL4J {@code BindingOutput} * @param output the corresponding WSDL4J {@code Output} @throws WSDLException in case of errors */ @Override protected void populateBindingOutput(Definition definition, BindingOutput bindingOutput, Output output) throws WSDLException { super.populateBindingOutput(definition, bindingOutput, output); SOAPBody soapBody = (SOAPBody) createSoapExtension(definition, BindingOutput.class, "body"); populateSoapBody(soapBody); bindingOutput.addExtensibilityElement(soapBody); }
private static BindingOutput getBindingOutput(Output output, Definition wsdlDefinition, ExtensionRegistry extReg) throws Exception { BindingOutput bo = wsdlDefinition.createBindingOutput(); bo.setName(output.getName()); bo.addExtensibilityElement(getSoapBody(BindingOutput.class, extReg)); return bo; }
/** * Called after the {@link javax.wsdl.BindingInput} has been created. Subclasses can implement this method to define * the name, or add extensions to it. * * <p>Default implementation calls {@link DefaultConcretePartProvider#populateBindingOutput(javax.wsdl.Definition, * javax.wsdl.BindingOutput, javax.wsdl.Output)}, creates a {@link javax.wsdl.extensions.soap.SOAPBody}, and calls * {@link #populateSoapBody(javax.wsdl.extensions.soap12.SOAP12Body)}. * * @param definition the WSDL4J {@code Definition} * @param bindingOutput the WSDL4J {@code BindingOutput} * @param output the corresponding WSDL4J {@code Output} @throws WSDLException in case of errors */ @Override protected void populateBindingOutput(Definition definition, BindingOutput bindingOutput, Output output) throws WSDLException { super.populateBindingOutput(definition, bindingOutput, output); SOAP12Body soapBody = (SOAP12Body) createSoapExtension(definition, BindingOutput.class, "body"); populateSoapBody(soapBody); bindingOutput.addExtensibilityElement(soapBody); }
private BindingOutput getBindingOutput(Output output, String operationName) throws ToolException { BindingOutput bo = wsdlDefinition.createBindingOutput(); bo.setName(output.getName()); bo.addExtensibilityElement(getXMLBody(BindingOutput.class, operationName)); return bo; }
/** * Called after the {@link javax.wsdl.BindingInput} has been created. Subclasses can implement this method to define * the name, or add extensions to it. * <p/> * Default implementation calls {@link DefaultConcretePartProvider#populateBindingOutput(javax.wsdl.Definition, * javax.wsdl.BindingOutput, javax.wsdl.Output)}, creates a {@link javax.wsdl.extensions.soap.SOAPBody}, and calls * {@link #populateSoapBody(javax.wsdl.extensions.soap12.SOAP12Body)}. * * @param definition the WSDL4J <code>Definition</code> * @param bindingOutput the WSDL4J <code>BindingOutput</code> * @param output the corresponding WSDL4J <code>Output</code> @throws WSDLException in case of errors */ @Override protected void populateBindingOutput(Definition definition, BindingOutput bindingOutput, Output output) throws WSDLException { super.populateBindingOutput(definition, bindingOutput, output); SOAP12Body soapBody = (SOAP12Body) createSoapExtension(definition, BindingOutput.class, "body"); populateSoapBody(soapBody); bindingOutput.addExtensibilityElement(soapBody); }
private static void checkParts(BindingOutput out, SOAPBody body, Message message) { if (message.getParts().size() > 1) { // use a heuristic to determine which part should be the body int i = 0; for (Part p : (List<Part>) message.getOrderedParts(null)) { if (i == 0) { body.setParts(Collections.singletonList(p.getName())); } else { SOAPHeaderImpl h = new SOAPHeaderImpl(); h.setUse("litteral"); h.setMessage(message.getQName()); h.setPart(p.getName()); out.addExtensibilityElement(h); } i++; } } }
private static void checkParts(BindingOutput out, SOAP12Body body, Message message) { if (message.getParts().size() > 1) { // use a heuristic to determine which part should be the body int i = 0; for (Part p : (List<Part>) message.getOrderedParts(null)) { if (i == 0) { body.setParts(Collections.singletonList(p.getName())); } else { SOAP12HeaderImpl h = new SOAP12HeaderImpl(); h.setUse("litteral"); h.setMessage(message.getQName()); h.setPart(p.getName()); out.addExtensibilityElement(h); } i++; } } }