public static SOAPVersion from(EnvelopeStyleFeature f) { EnvelopeStyle.Style[] style = f.getStyles(); if (style.length != 1) throw new IllegalArgumentException ("The EnvelopingFeature must has exactly one Enveloping.Style"); return from(style[0]); }
public static SOAPVersion from(EnvelopeStyleFeature f) { EnvelopeStyle.Style[] style = f.getStyles(); if (style.length != 1) throw new IllegalArgumentException ("The EnvelopingFeature must has exactly one Enveloping.Style"); return from(style[0]); }
public static SOAPVersion from(EnvelopeStyleFeature f) { EnvelopeStyle.Style[] style = f.getStyles(); if (style.length != 1) throw new IllegalArgumentException ("The EnvelopingFeature must has exactly one Enveloping.Style"); return from(style[0]); }
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; } } }