/** * Checks if the style is SOAP 1.2. * * @return true if the style is SOAP 1.2. */ public boolean isSOAP12() { return this.equals(SOAP12); }
public EnvelopeStyleFeature toFeature() { return SOAP_11.equals(this) ? new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP11}) : new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP12}); } }
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; } } }
/** * Checks if the style is SOAP 1.1. * * @return true if the style is SOAP 1.1. */ public boolean isSOAP11() { return this.equals(SOAP11); }
public EnvelopeStyleFeature toFeature() { return SOAP_11.equals(this) ? new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP11}) : new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP12}); } }
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; } } }
/** * Checks if the style is XML. * * @return true if the style is XML. */ public boolean isXML() { return this.equals(XML); } }
public EnvelopeStyleFeature toFeature() { return SOAP_11.equals(this) ? new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP11}) : new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP12}); } }
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]); }
/** * Checks if the style is SOAP 1.1. * * @return true if the style is SOAP 1.1. */ public boolean isSOAP11() { return this.equals(SOAP11); }
/** * Checks if the style is XML. * * @return true if the style is XML. */ public boolean isXML() { return this.equals(XML); } }
/** * Checks if the style is SOAP 1.1. * * @return true if the style is SOAP 1.1. */ public boolean isSOAP11() { return this.equals(SOAP11); }
/** * Checks if the style is SOAP 1.2. * * @return true if the style is SOAP 1.2. */ public boolean isSOAP12() { return this.equals(SOAP12); }
/** * Checks if the style is XML. * * @return true if the style is XML. */ public boolean isXML() { return this.equals(XML); } }
/** * Checks if the style is SOAP 1.2. * * @return true if the style is SOAP 1.2. */ public boolean isSOAP12() { return this.equals(SOAP12); }