soapBinding.setTransportURI(transportURI);
/** * 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"</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()); }
public static SoapBinding createSoapBinding(ExtensionRegistry extReg, boolean isSOAP12) throws WSDLException { ExtensibilityElement extElement = null; if (isSOAP12) { extElement = extReg.createExtension(Binding.class, new QName(WSDLConstants.NS_SOAP12, "binding")); ((SOAP12Binding)extElement).setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT); } else { extElement = extReg.createExtension(Binding.class, new QName(WSDLConstants.NS_SOAP11, "binding")); ((SOAPBinding)extElement).setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT); } return getSoapBinding(extElement); }
public static SOAPBinding createSoapBinding(ExtensionRegistry extReg, boolean isSOAP12) throws WSDLException { ExtensibilityElement extElement = null; if (isSOAP12) { extElement = extReg.createExtension(Binding.class, new QName(WSDLConstants.NS_SOAP12, "binding")); ((SOAP12Binding)extElement).setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT); } else { extElement = extReg.createExtension(Binding.class, new QName(WSDLConstants.NS_SOAP11, "binding")); ((SOAPBinding)extElement).setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT); } return getSoapBinding(extElement); }
public static SOAPBinding createSoapBinding(ExtensionRegistry extReg, boolean isSOAP12) throws WSDLException { ExtensibilityElement extElement = null; if (isSOAP12) { extElement = extReg.createExtension(Binding.class, new QName(WSDLConstants.NS_SOAP12, "binding")); ((SOAP12Binding)extElement).setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT); } else { extElement = extReg.createExtension(Binding.class, new QName(WSDLConstants.NS_SOAP11, "binding")); ((SOAPBinding)extElement).setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT); } return getSoapBinding(extElement); }
public static SoapBinding createSoapBinding(ExtensionRegistry extReg, boolean isSOAP12) throws WSDLException { ExtensibilityElement extElement = null; if (isSOAP12) { extElement = extReg.createExtension(Binding.class, new QName(WSDLConstants.NS_SOAP12, "binding")); ((SOAP12Binding)extElement).setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT); } else { extElement = extReg.createExtension(Binding.class, new QName(WSDLConstants.NS_SOAP11, "binding")); ((SOAPBinding)extElement).setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT); } return getSoapBinding(extElement); }
public static SOAPBinding createSoapBinding(ExtensionRegistry extReg, boolean isSOAP12) throws WSDLException { ExtensibilityElement extElement = null; if (isSOAP12) { extElement = extReg.createExtension(Binding.class, new QName(WSDLConstants.NS_SOAP12, "binding")); ((SOAP12Binding)extElement).setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT); } else { extElement = extReg.createExtension(Binding.class, new QName(WSDLConstants.NS_SOAP11, "binding")); ((SOAPBinding)extElement).setTransportURI(WSDLConstants.NS_SOAP_HTTP_TRANSPORT); } return getSoapBinding(extElement); }
soapBinding.setTransportURI(transportURI);
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); } }
} else { SOAP12Binding soap = new SOAP12BindingImpl(); soap.setTransportURI("http://schemas.xmlsoap.org/soap/http"); soap.setStyle("document"); binding.addExtensibilityElement(soap);