use of com.sun.xml.ws.binding.BindingImpl in project metro-jax-ws by eclipse-ee4j.
the class SEIPortInfoTest method testCreateBindingWSFArray.
public void testCreateBindingWSFArray() throws MalformedURLException {
SEIPortInfo seiPortInfo = createSEIPortInfo();
BindingImpl b = seiPortInfo.createBinding(new WebServiceFeature[] {}, PORT_INTERFACE);
boolean understands = ((SOAPBindingImpl) b).understandsHeader(EXTRA_HEADER);
assertTrue("header " + EXTRA_HEADER + " must be understood", understands);
}
use of com.sun.xml.ws.binding.BindingImpl in project metro-jax-ws by eclipse-ee4j.
the class ClientMessageHandlerTube method setUpProcessor.
void setUpProcessor() {
if (handlers == null) {
// Take a snapshot, User may change chain after invocation, Same chain
// should be used for the entire MEP
handlers = new ArrayList<>();
HandlerConfiguration handlerConfig = ((BindingImpl) getBinding()).getHandlerConfig();
List<MessageHandler> msgHandlersSnapShot = handlerConfig.getMessageHandlers();
if (!msgHandlersSnapShot.isEmpty()) {
handlers.addAll(msgHandlersSnapShot);
roles = new HashSet<>();
roles.addAll(handlerConfig.getRoles());
processor = new SOAPHandlerProcessor(true, this, getBinding(), handlers);
}
}
}
use of com.sun.xml.ws.binding.BindingImpl in project metro-jax-ws by eclipse-ee4j.
the class ClientSOAPHandlerTube method setUpProcessor.
void setUpProcessor() {
if (handlers == null) {
// Take a snapshot, User may change chain after invocation, Same chain
// should be used for the entire MEP
handlers = new ArrayList<>();
HandlerConfiguration handlerConfig = ((BindingImpl) getBinding()).getHandlerConfig();
List<SOAPHandler> soapSnapShot = handlerConfig.getSoapHandlers();
if (!soapSnapShot.isEmpty()) {
handlers.addAll(soapSnapShot);
roles = new HashSet<>();
roles.addAll(handlerConfig.getRoles());
processor = new SOAPHandlerProcessor(true, this, getBinding(), handlers);
}
}
}
use of com.sun.xml.ws.binding.BindingImpl in project metro-jax-ws by eclipse-ee4j.
the class HandlerTube method setUpProcessorInternal.
private void setUpProcessorInternal() {
HandlerConfiguration hc = ((BindingImpl) binding).getHandlerConfig();
if (hc != this.hc)
resetProcessor();
this.hc = hc;
setUpProcessor();
}
use of com.sun.xml.ws.binding.BindingImpl in project metro-jax-ws by eclipse-ee4j.
the class AddNumbersClient method testBadActionWithWSDL.
public void testBadActionWithWSDL() throws Exception {
try {
RespectBindingFeature respectBindingFeature = new RespectBindingFeature(false);
WebServiceFeature[] features = new WebServiceFeature[] { respectBindingFeature };
Dispatch dispatch = createDispatchWithWSDL(features);
BindingImpl binding = (BindingImpl) dispatch.getBinding();
assertTrue(AddressingVersion.isEnabled(binding));
WsaUtils.invoke(dispatch, WsaUtils.BAD_ACTION_MESSAGE, WsaUtils.S11_NS, WsaUtils.W3C_WSA_NS, getAddress(), W3CAddressingConstants.WSA_ANONYMOUS_ADDRESS);
fail("SOAPFaultException must be thrown");
} catch (SOAPFaultException sfe) {
assertFault(sfe, W3CAddressingConstants.ACTION_NOT_SUPPORTED_QNAME);
}
}
Aggregations