private SOAPVersion getEffectiveSOAPVersion(WSBinding binding) { SOAPVersion mySOAPVersion = (soapVersion != null) ? soapVersion : binding.getSOAPVersion(); if (mySOAPVersion == null) { mySOAPVersion = SOAPVersion.SOAP_11; } return mySOAPVersion; }
/** * Creates a new instance of SOAPHandlerTube */ public ClientSOAPHandlerTube(WSBinding binding, WSDLPort port, Tube next) { super(next, port, binding); if (binding.getSOAPVersion() != null) { // SOAPHandlerTube should n't be used for bindings other than SOAP. // TODO: throw Exception } }
/** Creates a new instance of XWSSClientPipe */ public XWSSClientPipe(WSDLPort prt, WSService svc, WSBinding bnd, Pipe nextP) { nextPipe = nextP; port = prt; service = svc; binding = bnd; soapVersion = bnd.getSOAPVersion(); isSOAP12 = (soapVersion == SOAPVersion.SOAP_12) ? true : false; soapFactory = soapVersion.saajSoapFactory; messageFactory = soapVersion.saajMessageFactory; }
protected MUTube(WSBinding binding, Tube next) { super(next); // MUPipe should n't be used for bindings other than SOAP. if (!(binding instanceof SOAPBinding)) { throw new WebServiceException( "MUPipe should n't be used for bindings other than SOAP."); } this.binding = (SOAPBindingImpl) binding; this.soapVersion = binding.getSOAPVersion(); }
public Message getMessage(MessageHeaders headers, AttachmentSet attachments, WSBinding binding) { Node n = dom.getNode(); if(n.getNodeType()== Node.DOCUMENT_NODE) { n = ((Document)n).getDocumentElement(); } return new DOMMessage(binding.getSOAPVersion(), headers, (Element)n, attachments); } }
public WsaTubeHelper(WSBinding binding, SEIModel seiModel, WSDLPort wsdlPort) { this.binding = binding; this.wsdlPort = wsdlPort; this.seiModel = seiModel; this.soapVer = binding.getSOAPVersion(); this.addVer = binding.getAddressingVersion(); }
/** * Creates a new instance of SOAPHandlerTube */ public ServerSOAPHandlerTube(WSBinding binding, WSDLPort port, Tube next) { super(next, port, binding); if (binding.getSOAPVersion() != null) { // SOAPHandlerTube should n't be used for bindings other than SOAP. // TODO: throw Exception } setUpHandlersOnce(); }
public Message getMessage(MessageHeaders headers, AttachmentSet attachments, WSBinding binding) { assert (payloadSrc!=null); return new PayloadSourceMessage(headers, payloadSrc, attachments,binding.getSOAPVersion()); } }
/** * Creates a new instance of SOAPHandlerTube */ public ServerSOAPHandlerTube(WSBinding binding, WSDLPort port, Tube next) { super(next, port, binding); if (binding.getSOAPVersion() != null) { // SOAPHandlerTube should n't be used for bindings other than SOAP. // TODO: throw Exception } setUpHandlersOnce(); }
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("\"\"")); } }
public Message getMessage(MessageHeaders headers, AttachmentSet attachments, WSBinding binding) { Node n = dom.getNode(); if(n.getNodeType()== Node.DOCUMENT_NODE) { n = ((Document)n).getDocumentElement(); } return new DOMMessage(binding.getSOAPVersion(), headers, (Element)n, attachments); } }
public static ProviderArgumentsBuilder<?> create(ProviderEndpointModel model, WSBinding binding) { if (model.datatype == Packet.class) return new PacketProviderArgumentsBuilder(binding.getSOAPVersion()); return (binding instanceof SOAPBinding) ? SOAPProviderArgumentBuilder.create(model, binding.getSOAPVersion()) : XMLProviderArgumentBuilder.createBuilder(model, binding); }
public TieHandler(JavaMethodImpl method, WSBinding binding, MessageContextFactory mcf) { this.soapVersion = binding.getSOAPVersion(); this.method = method.getMethod(); this.javaMethodModel = method; argumentsBuilder = createArgumentsBuilder(); List<MessageFiller> fillers = new ArrayList<MessageFiller>(); bodyBuilder = createResponseMessageBuilder(fillers); this.outFillers = fillers.toArray(new MessageFiller[fillers.size()]); this.isOneWay = method.getMEP().isOneWay(); this.noOfArgs = this.method.getParameterTypes().length; packetFactory = mcf; }
public TieHandler(JavaMethodImpl method, WSBinding binding, MessageContextFactory mcf) { this.soapVersion = binding.getSOAPVersion(); this.method = method.getMethod(); this.javaMethodModel = method; argumentsBuilder = createArgumentsBuilder(); List<MessageFiller> fillers = new ArrayList<MessageFiller>(); bodyBuilder = createResponseMessageBuilder(fillers); this.outFillers = fillers.toArray(new MessageFiller[fillers.size()]); this.isOneWay = method.getMEP().isOneWay(); this.noOfArgs = this.method.getParameterTypes().length; packetFactory = mcf; }
@ManagedAttribute @Description("Binding SOAP Version") public String soapVersionHttpBindingId() { return endpoint.getBinding().getSOAPVersion().httpBindingId; }
void setUpProcessor() { if (!handlers.isEmpty() && processor == null) { if (getBinding().getSOAPVersion() == null) { processor = new XMLHandlerProcessor(this, getBinding(), handlers); } else { processor = new SOAPHandlerProcessor(false, this, getBinding(), handlers); } } }
public WsaTube(WSDLPort wsdlPort, WSBinding binding, Tube next) { super(next); this.wsdlPort = wsdlPort; this.binding = binding; addKnownHeadersToBinding(binding); addressingVersion = binding.getAddressingVersion(); soapVersion = binding.getSOAPVersion(); helper = getTubeHelper(); addressingRequired = AddressingVersion.isRequired(binding); }
final void insertFaultMessage(C context, ProtocolException exception) { if(exception instanceof HTTPException) { context.put(MessageContext.HTTP_RESPONSE_CODE,((HTTPException)exception).getStatusCode()); } if (context != null) { // non-soap case context.setPacketMessage(Messages.createEmpty(binding.getSOAPVersion())); } } }
final void insertFaultMessage(C context, ProtocolException exception) { if(exception instanceof HTTPException) { context.put(MessageContext.HTTP_RESPONSE_CODE,((HTTPException)exception).getStatusCode()); } if (context != null) { // non-soap case context.setPacketMessage(Messages.createEmpty(binding.getSOAPVersion())); } } }
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(); } }