soapBinding.setStyle(style);
/** * Called after the {@link javax.wsdl.extensions.soap.SOAPBinding} has been created. * <p/> * Default implementation sets the binding style to <code>"document"</code>, and set the transport URI to the {@link * #setTransportUri(String) transportUri} property value. Subclasses can override this behavior. * * @param soapBinding the WSDL4J <code>SOAPBinding</code> * @throws javax.wsdl.WSDLException in case of errors * @see javax.wsdl.extensions.soap.SOAPBinding#setStyle(String) * @see javax.wsdl.extensions.soap.SOAPBinding#setTransportURI(String) * @see #setTransportUri(String) * @see #DEFAULT_TRANSPORT_URI */ protected void populateSoapBinding(SOAP12Binding soapBinding, Binding binding) throws WSDLException { soapBinding.setStyle("document"); soapBinding.setTransportURI(getTransportUri()); }
/** * Called after the {@link javax.wsdl.extensions.soap.SOAPBinding} has been created. * * <p>Default implementation sets the binding style to {@code "document"}, and set the transport URI to the {@link * #setTransportUri(String) transportUri} property value. Subclasses can override this behavior. * * @param soapBinding the WSDL4J {@code SOAPBinding} * @throws javax.wsdl.WSDLException in case of errors * @see javax.wsdl.extensions.soap.SOAPBinding#setStyle(String) * @see javax.wsdl.extensions.soap.SOAPBinding#setTransportURI(String) * @see #setTransportUri(String) * @see #DEFAULT_TRANSPORT_URI */ protected void populateSoapBinding(SOAP12Binding soapBinding, Binding binding) throws WSDLException { soapBinding.setStyle("document"); soapBinding.setTransportURI(getTransportUri()); }
/** * Called after the {@link javax.wsdl.extensions.soap.SOAPBinding} has been created. * * <p>Default implementation sets the binding style to {@code "document"}, and set the transport URI to the {@link * #setTransportUri(String) transportUri} property value. Subclasses can override this behavior. * * @param soapBinding the WSDL4J {@code SOAPBinding} * @throws javax.wsdl.WSDLException in case of errors * @see javax.wsdl.extensions.soap.SOAPBinding#setStyle(String) * @see javax.wsdl.extensions.soap.SOAPBinding#setTransportURI(String) * @see #setTransportUri(String) * @see #DEFAULT_TRANSPORT_URI */ protected void populateSoapBinding(SOAP12Binding soapBinding, Binding binding) throws WSDLException { soapBinding.setStyle("document"); soapBinding.setTransportURI(getTransportUri()); }
/** * Called after the {@link javax.wsdl.extensions.soap.SOAPBinding} has been created. * * <p>Default implementation sets the binding style to {@code "document"}, and set the transport URI to the {@link * #setTransportUri(String) transportUri} property value. Subclasses can override this behavior. * * @param soapBinding the WSDL4J {@code SOAPBinding} * @throws javax.wsdl.WSDLException in case of errors * @see javax.wsdl.extensions.soap.SOAPBinding#setStyle(String) * @see javax.wsdl.extensions.soap.SOAPBinding#setTransportURI(String) * @see #setTransportUri(String) * @see #DEFAULT_TRANSPORT_URI */ protected void populateSoapBinding(SOAP12Binding soapBinding, Binding binding) throws WSDLException { soapBinding.setStyle("document"); soapBinding.setTransportURI(getTransportUri()); }
soapBinding.setStyle(style);
public Binding createBinding(Definition definition, PortType portType) { try { Binding binding = definition.createBinding(); binding.setPortType(portType); configureBinding(definition, binding, portType); ExtensibilityElement bindingExtension = definition.getExtensionRegistry().createExtension(Binding.class, soapBinding); if (requiresSOAP12) { ((SOAP12Binding)bindingExtension).setStyle("document"); ((SOAP12Binding)bindingExtension).setTransportURI("http://schemas.xmlsoap.org/soap/http"); } else { ((SOAPBinding)bindingExtension).setStyle("document"); ((SOAPBinding)bindingExtension).setTransportURI("http://schemas.xmlsoap.org/soap/http"); } binding.addExtensibilityElement(bindingExtension); return binding; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
public Binding createBinding(Definition definition, PortType portType) { try { Binding binding = definition.createBinding(); binding.setPortType(portType); configureBinding(definition, binding, portType); ExtensibilityElement bindingExtension = definition.getExtensionRegistry().createExtension(Binding.class, soapBinding); if (requiresSOAP12) { ((SOAP12Binding)bindingExtension).setStyle("document"); ((SOAP12Binding)bindingExtension).setTransportURI("http://schemas.xmlsoap.org/soap/http"); } else { ((SOAPBinding)bindingExtension).setStyle("document"); ((SOAPBinding)bindingExtension).setTransportURI("http://schemas.xmlsoap.org/soap/http"); } binding.addExtensibilityElement(bindingExtension); return binding; } catch (WSDLException e) { throw new WSDLGenerationException(e); } }
SOAP12Binding soap = new SOAP12BindingImpl(); soap.setTransportURI("http://schemas.xmlsoap.org/soap/http"); soap.setStyle("document"); binding.addExtensibilityElement(soap);