public final SOAPVersion getSOAPVersion() { return bindingId.getSOAPVersion(); }
public final SOAPVersion getSOAPVersion() { return bindingId.getSOAPVersion(); }
public final SOAPVersion getSOAPVersion() { return bindingId.getSOAPVersion(); }
/** * Use {@link BindingImpl#create(BindingID)} to create this. * * @param bindingId binding id * @param features * These features have a precedence over * {@link BindingID#createBuiltinFeatureList() the implicit features} * associated with the {@link BindingID}. */ SOAPBindingImpl(BindingID bindingId, WebServiceFeature... features) { super(bindingId, features); this.soapVersion = bindingId.getSOAPVersion(); //populates with required roles and updates handlerConfig setRoles(new HashSet<String>()); //Is this still required? comment out for now //setupSystemHandlerDelegate(serviceName); this.features.addAll(bindingId.createBuiltinFeatureList()); }
/** * Use {@link BindingImpl#create(BindingID)} to create this. * * @param bindingId binding id * @param features * These features have a precedence over * {@link BindingID#createBuiltinFeatureList() the implicit features} * associated with the {@link BindingID}. */ SOAPBindingImpl(BindingID bindingId, WebServiceFeature... features) { super(bindingId, features); this.soapVersion = bindingId.getSOAPVersion(); //populates with required roles and updates handlerConfig setRoles(new HashSet<String>()); //Is this still required? comment out for now //setupSystemHandlerDelegate(serviceName); this.features.addAll(bindingId.createBuiltinFeatureList()); }
/** * Use {@link BindingImpl#create(BindingID)} to create this. * * @param bindingId binding id * @param features * These features have a precedence over * {@link BindingID#createBuiltinFeatureList() the implicit features} * associated with the {@link BindingID}. */ SOAPBindingImpl(BindingID bindingId, WebServiceFeature... features) { super(bindingId, features); this.soapVersion = bindingId.getSOAPVersion(); //populates with required roles and updates handlerConfig setRoles(new HashSet<String>()); //Is this still required? comment out for now //setupSystemHandlerDelegate(serviceName); this.features.addAll(bindingId.createBuiltinFeatureList()); }
/** * creates a runtime model <code>SOAPBinding</code> from a <code>javax.jws.soap.SOAPBinding</code> object * @param soapBinding the <code>javax.jws.soap.SOAPBinding</code> to model * @return returns the runtime model SOAPBinding corresponding to <code>soapBinding</code> */ protected SOAPBindingImpl createBinding(SOAPBinding soapBinding) { SOAPBindingImpl rtSOAPBinding = new SOAPBindingImpl(); Style style = soapBinding!=null ? soapBinding.style() : Style.DOCUMENT; rtSOAPBinding.setStyle(style); assert bindingId != null; model.bindingId = bindingId; SOAPVersion soapVersion = bindingId.getSOAPVersion(); rtSOAPBinding.setSOAPVersion(soapVersion); return rtSOAPBinding; }
/** * creates a runtime model <code>SOAPBinding</code> from a <code>javax.jws.soap.SOAPBinding</code> object * @param soapBinding the <code>javax.jws.soap.SOAPBinding</code> to model * @return returns the runtime model SOAPBinding corresponding to <code>soapBinding</code> */ protected SOAPBindingImpl createBinding(SOAPBinding soapBinding) { SOAPBindingImpl rtSOAPBinding = new SOAPBindingImpl(); Style style = soapBinding!=null ? soapBinding.style() : Style.DOCUMENT; rtSOAPBinding.setStyle(style); assert bindingId != null; model.bindingId = bindingId; SOAPVersion soapVersion = bindingId.getSOAPVersion(); rtSOAPBinding.setSOAPVersion(soapVersion); return rtSOAPBinding; }
/** * creates a runtime model <code>SOAPBinding</code> from a <code>javax.jws.soap.SOAPBinding</code> object * @param soapBinding the <code>javax.jws.soap.SOAPBinding</code> to model * @return returns the runtime model SOAPBinding corresponding to <code>soapBinding</code> */ protected SOAPBindingImpl createBinding(SOAPBinding soapBinding) { SOAPBindingImpl rtSOAPBinding = new SOAPBindingImpl(); Style style = soapBinding!=null ? soapBinding.style() : Style.DOCUMENT; rtSOAPBinding.setStyle(style); assert bindingId != null; model.bindingId = bindingId; SOAPVersion soapVersion = bindingId.getSOAPVersion(); rtSOAPBinding.setSOAPVersion(soapVersion); return rtSOAPBinding; }
/** * Generates the Service section of the WSDL */ protected void generateService() { QName portQName = model.getPortName(); QName serviceQName = model.getServiceQName(); Service service = serviceDefinitions.service().name(serviceQName.getLocalPart()); extension.addServiceExtension(service); Port port = service.port().name(portQName.getLocalPart()); port.binding(model.getBoundPortTypeName()); extension.addPortExtension(port); if (model.getJavaMethods().isEmpty()) return; if (this.binding.getBindingId().getSOAPVersion() == SOAPVersion.SOAP_12) { com.sun.xml.ws.wsdl.writer.document.soap12.SOAPAddress address = port._element(com.sun.xml.ws.wsdl.writer.document.soap12.SOAPAddress.class); address.location(endpointAddress); } else { SOAPAddress address = port._element(SOAPAddress.class); address.location(endpointAddress); } }
/** * Generates the Service section of the WSDL */ protected void generateService() { QName portQName = model.getPortName(); QName serviceQName = model.getServiceQName(); Service service = serviceDefinitions.service().name(serviceQName.getLocalPart()); extension.addServiceExtension(service); Port port = service.port().name(portQName.getLocalPart()); port.binding(model.getBoundPortTypeName()); extension.addPortExtension(port); if (model.getJavaMethods().isEmpty()) return; if (this.binding.getBindingId().getSOAPVersion() == SOAPVersion.SOAP_12) { com.sun.xml.ws.wsdl.writer.document.soap12.SOAPAddress address = port._element(com.sun.xml.ws.wsdl.writer.document.soap12.SOAPAddress.class); address.location(endpointAddress); } else { SOAPAddress address = port._element(SOAPAddress.class); address.location(endpointAddress); } }
/** * Generates the Service section of the WSDL */ protected void generateService() { QName portQName = model.getPortName(); QName serviceQName = model.getServiceQName(); Service service = serviceDefinitions.service().name(serviceQName.getLocalPart()); extension.addServiceExtension(service); Port port = service.port().name(portQName.getLocalPart()); port.binding(model.getBoundPortTypeName()); extension.addPortExtension(port); if (model.getJavaMethods().isEmpty()) return; if (this.binding.getBindingId().getSOAPVersion() == SOAPVersion.SOAP_12) { com.sun.xml.ws.wsdl.writer.document.soap12.SOAPAddress address = port._element(com.sun.xml.ws.wsdl.writer.document.soap12.SOAPAddress.class); address.location(endpointAddress); } else { SOAPAddress address = port._element(SOAPAddress.class); address.location(endpointAddress); } }
if (this.binding.getBindingId().getSOAPVersion() == SOAPVersion.SOAP_12) generateSOAP12BindingOperation(method, newBinding); else
if (this.binding.getBindingId().getSOAPVersion() == SOAPVersion.SOAP_12) generateSOAP12BindingOperation(method, newBinding); else
if (this.binding.getBindingId().getSOAPVersion() == SOAPVersion.SOAP_12) generateSOAP12BindingOperation(method, newBinding); else