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(); }
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(); }
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(); }
public OperationDispatcher(@NotNull WSDLPort wsdlModel, @NotNull WSBinding binding, @Nullable SEIModel seiModel) { this.binding = binding; opFinders = new ArrayList<WSDLOperationFinder>(); if (binding.getAddressingVersion() != null) { opFinders.add(new ActionBasedOperationFinder(wsdlModel, binding, seiModel)); } opFinders.add(new PayloadQNameBasedOperationFinder(wsdlModel, binding, seiModel)); opFinders.add(new SOAPActionBasedOperationFinder(wsdlModel, binding, seiModel)); }
public OperationDispatcher(@NotNull WSDLPort wsdlModel, @NotNull WSBinding binding, @Nullable SEIModel seiModel) { this.binding = binding; opFinders = new ArrayList<WSDLOperationFinder>(); if (binding.getAddressingVersion() != null) { opFinders.add(new ActionBasedOperationFinder(wsdlModel, binding, seiModel)); } opFinders.add(new PayloadQNameBasedOperationFinder(wsdlModel, binding, seiModel)); opFinders.add(new SOAPActionBasedOperationFinder(wsdlModel, binding, seiModel)); }
public OperationDispatcher(@NotNull WSDLPort wsdlModel, @NotNull WSBinding binding, @Nullable SEIModel seiModel) { this.binding = binding; opFinders = new ArrayList<WSDLOperationFinder>(); if (binding.getAddressingVersion() != null) { opFinders.add(new ActionBasedOperationFinder(wsdlModel, binding, seiModel)); } opFinders.add(new PayloadQNameBasedOperationFinder(wsdlModel, binding, seiModel)); opFinders.add(new SOAPActionBasedOperationFinder(wsdlModel, binding, seiModel)); }
@ManagedAttribute @Description("Binding Addressing Version") public AddressingVersion addressingVersion() { return endpoint.getBinding().getAddressingVersion(); }
@ManagedAttribute @Description("Binding Addressing Version") public AddressingVersion addressingVersion() { return endpoint.getBinding().getAddressingVersion(); }
@ManagedAttribute @Description("Binding Addressing Version") public AddressingVersion addressingVersion() { return endpoint.getBinding().getAddressingVersion(); }
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); }
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); }
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); }
private void populateAddressingHeaders(WSBinding binding, Packet responsePacket, WSDLPort wsdlPort, SEIModel seiModel) { AddressingVersion addressingVersion = binding.getAddressingVersion(); if (addressingVersion == null) { return; } WsaTubeHelper wsaHelper = addressingVersion.getWsaHelper(wsdlPort, seiModel, binding); String action = responsePacket.getMessage().isFault() ? wsaHelper.getFaultAction(this, responsePacket) : wsaHelper.getOutputAction(this); if (action == null) { LOGGER.info("WSA headers are not added as value for wsa:Action cannot be resolved for this message"); return; } populateAddressingHeaders(responsePacket, addressingVersion, binding.getSOAPVersion(), action, AddressingVersion.isRequired(binding)); }
private void populateAddressingHeaders(WSBinding binding, Packet responsePacket, WSDLPort wsdlPort, SEIModel seiModel) { AddressingVersion addressingVersion = binding.getAddressingVersion(); if (addressingVersion == null) { return; } WsaTubeHelper wsaHelper = addressingVersion.getWsaHelper(wsdlPort, seiModel, binding); String action = responsePacket.getMessage().isFault() ? wsaHelper.getFaultAction(this, responsePacket) : wsaHelper.getOutputAction(this); if (action == null) { LOGGER.info("WSA headers are not added as value for wsa:Action cannot be resolved for this message"); return; } populateAddressingHeaders(responsePacket, addressingVersion, binding.getSOAPVersion(), action, AddressingVersion.isRequired(binding)); }
private void populateAddressingHeaders(WSBinding binding, Packet responsePacket, WSDLPort wsdlPort, SEIModel seiModel) { AddressingVersion addressingVersion = binding.getAddressingVersion(); if (addressingVersion == null) { return; } WsaTubeHelper wsaHelper = addressingVersion.getWsaHelper(wsdlPort, seiModel, binding); String action = responsePacket.getMessage().isFault() ? wsaHelper.getFaultAction(this, responsePacket) : wsaHelper.getOutputAction(this); if (action == null) { LOGGER.info("WSA headers are not added as value for wsa:Action cannot be resolved for this message"); return; } populateAddressingHeaders(responsePacket, addressingVersion, binding.getSOAPVersion(), action, AddressingVersion.isRequired(binding)); }
private void dumpParam(T param, String method) { if (param instanceof Packet) { Packet message = (Packet)param; String action; String msgId; if (LOGGER.isLoggable(Level.FINE)) { AddressingVersion av = DispatchImpl.this.getBinding().getAddressingVersion(); SOAPVersion sv = DispatchImpl.this.getBinding().getSOAPVersion(); action = av != null && message.getMessage() != null ? AddressingUtils.getAction(message.getMessage().getHeaders(), av, sv) : null; msgId = av != null && message.getMessage() != null ? AddressingUtils.getMessageID(message.getMessage().getHeaders(), av, sv) : null; LOGGER.fine("In DispatchImpl." + method + " for message with action: " + action + " and msg ID: " + msgId + " msg: " + message.getMessage()); if (message.getMessage() == null) { LOGGER.fine("Dispatching null message for action: " + action + " and msg ID: " + msgId); } } } } public final Future<?> invokeAsync(T param, AsyncHandler<T> asyncHandler) {
private void dumpParam(T param, String method) { if (param instanceof Packet) { Packet message = (Packet)param; String action; String msgId; if (LOGGER.isLoggable(Level.FINE)) { AddressingVersion av = DispatchImpl.this.getBinding().getAddressingVersion(); SOAPVersion sv = DispatchImpl.this.getBinding().getSOAPVersion(); action = av != null && message.getMessage() != null ? AddressingUtils.getAction(message.getMessage().getHeaders(), av, sv) : null; msgId = av != null && message.getMessage() != null ? AddressingUtils.getMessageID(message.getMessage().getHeaders(), av, sv) : null; LOGGER.fine("In DispatchImpl." + method + " for message with action: " + action + " and msg ID: " + msgId + " msg: " + message.getMessage()); if (message.getMessage() == null) { LOGGER.fine("Dispatching null message for action: " + action + " and msg ID: " + msgId); } } } } public final Future<?> invokeAsync(T param, AsyncHandler<T> asyncHandler) {
private void dumpParam(T param, String method) { if (param instanceof Packet) { Packet message = (Packet)param; String action; String msgId; if (LOGGER.isLoggable(Level.FINE)) { AddressingVersion av = DispatchImpl.this.getBinding().getAddressingVersion(); SOAPVersion sv = DispatchImpl.this.getBinding().getSOAPVersion(); action = av != null && message.getMessage() != null ? AddressingUtils.getAction(message.getMessage().getHeaders(), av, sv) : null; msgId = av != null && message.getMessage() != null ? AddressingUtils.getMessageID(message.getMessage().getHeaders(), av, sv) : null; LOGGER.fine("In DispatchImpl." + method + " for message with action: " + action + " and msg ID: " + msgId + " msg: " + message.getMessage()); if (message.getMessage() == null) { LOGGER.fine("Dispatching null message for action: " + action + " and msg ID: " + msgId); } } } } public final Future<?> invokeAsync(T param, AsyncHandler<T> asyncHandler) {
/** * Creates a fault {@link Message} that captures the code/subcode/subsubcode * defined by WS-Addressing if one of the expected WS-Addressing headers is * missing in the message * * @param binding WSBinding * @param p * {@link Packet} that was missing a WS-Addressing header. * @param missingHeader The missing WS-Addressing Header * @return * A message representing SOAPFault that contains the WS-Addressing code/subcode/subsubcode. */ public static Message createAddressingFaultMessage(WSBinding binding, Packet p, QName missingHeader) { AddressingVersion av = binding.getAddressingVersion(); if(av == null) { // Addressing is not enabled. throw new WebServiceException(AddressingMessages.ADDRESSING_SHOULD_BE_ENABLED()); } WsaTubeHelper helper = av.getWsaHelper(null,null,binding); return create(helper.newMapRequiredFault(new MissingAddressingHeaderException(missingHeader,p))); } /**
/** * Creates a fault {@link Message} that captures the code/subcode/subsubcode * defined by WS-Addressing if one of the expected WS-Addressing headers is * missing in the message * * @param binding WSBinding * @param p * {@link Packet} that was missing a WS-Addressing header. * @param missingHeader The missing WS-Addressing Header * @return * A message representing SOAPFault that contains the WS-Addressing code/subcode/subsubcode. */ public static Message createAddressingFaultMessage(WSBinding binding, Packet p, QName missingHeader) { AddressingVersion av = binding.getAddressingVersion(); if(av == null) { // Addressing is not enabled. throw new WebServiceException(AddressingMessages.ADDRESSING_SHOULD_BE_ENABLED()); } WsaTubeHelper helper = av.getWsaHelper(null,null,binding); return create(helper.newMapRequiredFault(new MissingAddressingHeaderException(missingHeader,p))); } /**