@Override public BindingID create(String transport, SOAPVersion soapVersion) throws WebServiceException { if (SoapJmsBinding.SOAPJMS_BINDING.equals(transport)) { if (soapVersion.equals(SOAPVersion.SOAP_11)) { return SoapJmsBindingID.SOAP11_JMS; } else if (soapVersion.equals(SOAPVersion.SOAP_12)) { return BindingID.SOAP12_HTTP; } return null; } return null; } }
private void writeSOAPAction(Map<String, List<String>> reqHeaders, String soapAction) { //dont write SOAPAction HTTP header for SOAP 1.2 messages. if(SOAPVersion.SOAP_12.equals(binding.getSOAPVersion())) { return; } if (soapAction != null) { reqHeaders.put("SOAPAction", Collections.singletonList(soapAction)); } else { reqHeaders.put("SOAPAction", Collections.singletonList("\"\"")); } }
private void writeSOAPAction(Map<String, List<String>> reqHeaders, String soapAction) { //dont write SOAPAction HTTP header for SOAP 1.2 messages. if(SOAPVersion.SOAP_12.equals(binding.getSOAPVersion())) { return; } if (soapAction != null) { reqHeaders.put("SOAPAction", Collections.singletonList(soapAction)); } else { reqHeaders.put("SOAPAction", Collections.singletonList("\"\"")); } }
private void writeSOAPAction(Map<String, List<String>> reqHeaders, String soapAction) { //dont write SOAPAction HTTP header for SOAP 1.2 messages. if(SOAPVersion.SOAP_12.equals(binding.getSOAPVersion())) { return; } if (soapAction != null) { reqHeaders.put("SOAPAction", Collections.singletonList(soapAction)); } else { reqHeaders.put("SOAPAction", Collections.singletonList("\"\"")); } }
private static BindingID createBindingId(String transport, SOAPVersion soapVersion) { if (!transport.equals(SOAPConstants.URI_SOAP_TRANSPORT_HTTP)) { for( BindingIDFactory f : ServiceFinder.find(BindingIDFactory.class) ) { BindingID bindingId = f.create(transport, soapVersion); if(bindingId!=null) { return bindingId; } } } return soapVersion.equals(SOAPVersion.SOAP_11)?BindingID.SOAP11_HTTP:BindingID.SOAP12_HTTP; }
private static BindingID createBindingId(String transport, SOAPVersion soapVersion) { if (!transport.equals(SOAPConstants.URI_SOAP_TRANSPORT_HTTP)) { for( BindingIDFactory f : ServiceFinder.find(BindingIDFactory.class) ) { BindingID bindingId = f.create(transport, soapVersion); if(bindingId!=null) { return bindingId; } } } return soapVersion.equals(SOAPVersion.SOAP_11)?BindingID.SOAP11_HTTP:BindingID.SOAP12_HTTP; }
private static BindingID createBindingId(String transport, SOAPVersion soapVersion) { if (!transport.equals(SOAPConstants.URI_SOAP_TRANSPORT_HTTP)) { for( BindingIDFactory f : ServiceFinder.find(BindingIDFactory.class) ) { BindingID bindingId = f.create(transport, soapVersion); if(bindingId!=null) { return bindingId; } } } return soapVersion.equals(SOAPVersion.SOAP_11)?BindingID.SOAP11_HTTP:BindingID.SOAP12_HTTP; }
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 EnvelopeStyleFeature toFeature() { return SOAP_11.equals(this) ? new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.SOAP11}) : new EnvelopeStyleFeature(new EnvelopeStyle.Style[]{EnvelopeStyle.Style.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}); } }
private BindingID getDefaultBindingID() { BindingType bt = getAnnotation(portClass, BindingType.class); if (bt != null) return BindingID.parse(bt.value()); SOAPVersion ver = getSoapVersion(features); boolean mtomEnabled = features.isEnabled(MTOMFeature.class); if (SOAPVersion.SOAP_12.equals(ver)) { return (mtomEnabled) ? BindingID.SOAP12_HTTP_MTOM : BindingID.SOAP12_HTTP; } else { return (mtomEnabled) ? BindingID.SOAP11_HTTP_MTOM : BindingID.SOAP11_HTTP; } }
StreamHeaderDecoder headerDecoder = SOAPVersion.SOAP_11.equals(soapVersion) ? SOAP11StreamHeaderDecoder : SOAP12StreamHeaderDecoder; cacheHeaders(reader, namespaces, headers, headerDecoder); } catch (XMLStreamException e) {
private BindingID getDefaultBindingID() { BindingType bt = getAnnotation(portClass, BindingType.class); if (bt != null) return BindingID.parse(bt.value()); SOAPVersion ver = getSoapVersion(features); boolean mtomEnabled = features.isEnabled(MTOMFeature.class); if (SOAPVersion.SOAP_12.equals(ver)) { return (mtomEnabled) ? BindingID.SOAP12_HTTP_MTOM : BindingID.SOAP12_HTTP; } else { return (mtomEnabled) ? BindingID.SOAP11_HTTP_MTOM : BindingID.SOAP11_HTTP; } }
private BindingID getDefaultBindingID() { BindingType bt = getAnnotation(portClass, BindingType.class); if (bt != null) return BindingID.parse(bt.value()); SOAPVersion ver = getSoapVersion(features); boolean mtomEnabled = features.isEnabled(MTOMFeature.class); if (SOAPVersion.SOAP_12.equals(ver)) { return (mtomEnabled) ? BindingID.SOAP12_HTTP_MTOM : BindingID.SOAP12_HTTP; } else { return (mtomEnabled) ? BindingID.SOAP11_HTTP_MTOM : BindingID.SOAP11_HTTP; } }
StreamHeaderDecoder headerDecoder = SOAPVersion.SOAP_11.equals(soapVersion) ? SOAP11StreamHeaderDecoder : SOAP12StreamHeaderDecoder; cacheHeaders(reader, namespaces, headers, headerDecoder); } catch (XMLStreamException e) {
public static ContentType getStaticContentTypeStatic(Packet packet, SOAPVersion version) { ContentTypeImpl ct = (ContentTypeImpl) packet.getInternalContentType(); if ( ct != null ) { //Note - this case of boundary = null or root content ID = null should never happen //after a recent bug fix in Packet.shouldUseMtom logic, but just in //case we get here with a Packet that has a non-null content type with //a null boundary, the content type of the Packet will be reset if (ct.getBoundary() != null && ct.getRootId() != null) return ct; } String uuid = UUID.randomUUID().toString(); String boundary = "uuid:" + uuid; String rootId = "<rootpart*"+uuid+"@example.jaxws.sun.com>"; String soapActionParameter = SOAPVersion.SOAP_11.equals(version) ? null : createActionParameter(packet); String boundaryParameter = "boundary=\"" + boundary +"\""; String messageContentType = MULTIPART_RELATED_MIME_TYPE + ";start=\""+rootId +"\"" + ";type=\"" + XOP_XML_MIME_TYPE + "\";" + boundaryParameter + ";start-info=\"" + version.contentType + (soapActionParameter == null? "" : soapActionParameter) + "\""; ContentTypeImpl ctImpl = SOAPVersion.SOAP_11.equals(version) ? new ContentTypeImpl(messageContentType, (packet.soapAction == null)?"":packet.soapAction, null) : new ContentTypeImpl(messageContentType, null, null); ctImpl.setBoundary(boundary); ctImpl.setRootId(rootId); packet.setContentType(ctImpl); return ctImpl; }
StreamHeaderDecoder headerDecoder = SOAPVersion.SOAP_11.equals(soapVersion) ? SOAP11StreamHeaderDecoder : SOAP12StreamHeaderDecoder; cacheHeaders(reader, namespaces, headers, headerDecoder); } catch (XMLStreamException e) {
public static ContentType getStaticContentTypeStatic(Packet packet, SOAPVersion version) { ContentTypeImpl ct = (ContentTypeImpl) packet.getInternalContentType(); if ( ct != null ) { //Note - this case of boundary = null or root content ID = null should never happen //after a recent bug fix in Packet.shouldUseMtom logic, but just in //case we get here with a Packet that has a non-null content type with //a null boundary, the content type of the Packet will be reset if (ct.getBoundary() != null && ct.getRootId() != null) return ct; } String uuid = UUID.randomUUID().toString(); String boundary = "uuid:" + uuid; String rootId = "<rootpart*"+uuid+"@example.jaxws.sun.com>"; String soapActionParameter = SOAPVersion.SOAP_11.equals(version) ? null : createActionParameter(packet); String boundaryParameter = "boundary=\"" + boundary +"\""; String messageContentType = MULTIPART_RELATED_MIME_TYPE + ";start=\""+rootId +"\"" + ";type=\"" + XOP_XML_MIME_TYPE + "\";" + boundaryParameter + ";start-info=\"" + version.contentType + (soapActionParameter == null? "" : soapActionParameter) + "\""; ContentTypeImpl ctImpl = SOAPVersion.SOAP_11.equals(version) ? new ContentTypeImpl(messageContentType, (packet.soapAction == null)?"":packet.soapAction, null) : new ContentTypeImpl(messageContentType, null, null); ctImpl.setBoundary(boundary); ctImpl.setRootId(rootId); packet.setContentType(ctImpl); return ctImpl; }
public static ContentType getStaticContentTypeStatic(Packet packet, SOAPVersion version) { ContentTypeImpl ct = (ContentTypeImpl) packet.getInternalContentType(); if ( ct != null ) { //Note - this case of boundary = null or root content ID = null should never happen //after a recent bug fix in Packet.shouldUseMtom logic, but just in //case we get here with a Packet that has a non-null content type with //a null boundary, the content type of the Packet will be reset if (ct.getBoundary() != null && ct.getRootId() != null) return ct; } String uuid = UUID.randomUUID().toString(); String boundary = "uuid:" + uuid; String rootId = "<rootpart*"+uuid+"@example.jaxws.sun.com>"; String soapActionParameter = SOAPVersion.SOAP_11.equals(version) ? null : createActionParameter(packet); String boundaryParameter = "boundary=\"" + boundary +"\""; String messageContentType = MULTIPART_RELATED_MIME_TYPE + ";start=\""+rootId +"\"" + ";type=\"" + XOP_XML_MIME_TYPE + "\";" + boundaryParameter + ";start-info=\"" + version.contentType + (soapActionParameter == null? "" : soapActionParameter) + "\""; ContentTypeImpl ctImpl = SOAPVersion.SOAP_11.equals(version) ? new ContentTypeImpl(messageContentType, (packet.soapAction == null)?"":packet.soapAction, null) : new ContentTypeImpl(messageContentType, null, null); ctImpl.setBoundary(boundary); ctImpl.setRootId(rootId); packet.setContentType(ctImpl); return ctImpl; }