static public WebServiceFeature[] toFeatureArray(WSBinding binding) { //TODO scchen convert BindingID to WebServiceFeature[] if(!binding.isFeatureEnabled(EnvelopeStyleFeature.class)) { WebServiceFeature[] f = { binding.getSOAPVersion().toFeature() }; binding.getFeatures().mergeFeatures(f, false); } return binding.getFeatures().toArray(); } }
static public WebServiceFeature[] toFeatureArray(WSBinding binding) { //TODO scchen convert BindingID to WebServiceFeature[] if(!binding.isFeatureEnabled(EnvelopeStyleFeature.class)) { WebServiceFeature[] f = { binding.getSOAPVersion().toFeature() }; binding.getFeatures().mergeFeatures(f, false); } return binding.getFeatures().toArray(); } }
static public WebServiceFeature[] toFeatureArray(WSBinding binding) { //TODO scchen convert BindingID to WebServiceFeature[] if(!binding.isFeatureEnabled(EnvelopeStyleFeature.class)) { WebServiceFeature[] f = { binding.getSOAPVersion().toFeature() }; binding.getFeatures().mergeFeatures(f, false); } return binding.getFeatures().toArray(); } }
public MessageContextFactory(WSFeatureList wsf) { features = wsf; envelopeStyle = features.get(EnvelopeStyleFeature.class); if (envelopeStyle == null) {//Default to SOAP11 envelopeStyle = new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP11}); features.mergeFeatures(new WebServiceFeature[]{envelopeStyle}, false); } for (EnvelopeStyle.Style s : envelopeStyle.getStyles()) { if (s.isXML()) { if (xmlCodec == null) xmlCodec = Codecs.createXMLCodec(features); } else { if (soapCodec == null) soapCodec = Codecs.createSOAPBindingCodec(features); singleSoapStyle = s; } } }
public MessageContextFactory(WSFeatureList wsf) { features = wsf; envelopeStyle = features.get(EnvelopeStyleFeature.class); if (envelopeStyle == null) {//Default to SOAP11 envelopeStyle = new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP11}); features.mergeFeatures(new WebServiceFeature[]{envelopeStyle}, false); } for (EnvelopeStyle.Style s : envelopeStyle.getStyles()) { if (s.isXML()) { if (xmlCodec == null) xmlCodec = Codecs.createXMLCodec(features); } else { if (soapCodec == null) soapCodec = Codecs.createSOAPBindingCodec(features); singleSoapStyle = s; } } }
public MessageContextFactory(WSFeatureList wsf) { features = wsf; envelopeStyle = features.get(EnvelopeStyleFeature.class); if (envelopeStyle == null) {//Default to SOAP11 envelopeStyle = new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP11}); features.mergeFeatures(new WebServiceFeature[]{envelopeStyle}, false); } for (EnvelopeStyle.Style s : envelopeStyle.getStyles()) { if (s.isXML()) { if (xmlCodec == null) xmlCodec = Codecs.createXMLCodec(features); } else { if (soapCodec == null) soapCodec = Codecs.createSOAPBindingCodec(features); singleSoapStyle = s; } } }
public DeferredTransportPipe(ClassLoader classLoader, ClientTubeAssemblerContext context) { this.classLoader = classLoader; this.context = context; if (context.getBinding().getFeature(HttpConfigFeature.class) == null) { context.getBinding().getFeatures().mergeFeatures( new WebServiceFeature[] { new HttpConfigFeature() }, false); } //See if we can create the transport pipe from the available information. try { this.transport = TransportTubeFactory.create(classLoader, context); this.address = context.getAddress(); } catch(Exception e) { //No problem, transport will be initialized while processing the requests } }
public DeferredTransportPipe(ClassLoader classLoader, ClientTubeAssemblerContext context) { this.classLoader = classLoader; this.context = context; if (context.getBinding().getFeature(HttpConfigFeature.class) == null) { context.getBinding().getFeatures().mergeFeatures( new WebServiceFeature[] { new HttpConfigFeature() }, false); } //See if we can create the transport pipe from the available information. try { this.transport = TransportTubeFactory.create(classLoader, context); this.address = context.getAddress(); } catch(Exception e) { //No problem, transport will be initialized while processing the requests } }
public DeferredTransportPipe(ClassLoader classLoader, ClientTubeAssemblerContext context) { this.classLoader = classLoader; this.context = context; if (context.getBinding().getFeature(HttpConfigFeature.class) == null) { context.getBinding().getFeatures().mergeFeatures( new WebServiceFeature[] { new HttpConfigFeature() }, false); } //See if we can create the transport pipe from the available information. try { this.transport = TransportTubeFactory.create(classLoader, context); this.address = context.getAddress(); } catch(Exception e) { //No problem, transport will be initialized while processing the requests } }
binding.getFeatures().mergeFeatures(new WebServiceFeature[]{externalMetadataFeature}, true);
binding.getFeatures().mergeFeatures(new WebServiceFeature[]{externalMetadataFeature}, true);
binding.getFeatures().mergeFeatures(new WebServiceFeature[]{externalMetadataFeature}, true);
if (wsBinding != null) { this.bindingId = wsBinding.getBindingId(); if (config.getFeatures() != null) wsBinding.getFeatures().mergeFeatures(config.getFeatures(), false); if (binding != null) wsBinding.getFeatures().mergeFeatures(binding.getFeatures(), false); this.features = WebServiceFeatureList.toList(wsBinding.getFeatures()); } else {
if (wsBinding != null) { this.bindingId = wsBinding.getBindingId(); if (config.getFeatures() != null) wsBinding.getFeatures().mergeFeatures(config.getFeatures(), false); if (binding != null) wsBinding.getFeatures().mergeFeatures(binding.getFeatures(), false); this.features = WebServiceFeatureList.toList(wsBinding.getFeatures()); } else {
if (wsBinding != null) { this.bindingId = wsBinding.getBindingId(); if (config.getFeatures() != null) wsBinding.getFeatures().mergeFeatures(config.getFeatures(), false); if (binding != null) wsBinding.getFeatures().mergeFeatures(binding.getFeatures(), false); this.features = WebServiceFeatureList.toList(wsBinding.getFeatures()); } else {