use of client.soap_mu_header.client.Hello in project metro-jax-ws by eclipse-ee4j.
the class SoapMuHeaderTest method testMUHeaderInWSDL.
public void testMUHeaderInWSDL() {
Hello_Service service = new Hello_Service();
Hello port = service.getHelloPort();
Holder<String> extra = new Holder<String>();
port.hello("extra", extra);
}
use of client.soap_mu_header.client.Hello in project metro-jax-ws by eclipse-ee4j.
the class SoapMuHeaderTest method testMUHeaderNotInWSDL.
public void testMUHeaderNotInWSDL() {
Hello_Service service = new Hello_Service();
Hello port = service.getHelloPort();
Holder<String> extra = new Holder<String>();
try {
port.hello("extraMU", extra);
fail("MU Exception expected");
} catch (SOAPFaultException e) {
assertTrue(e.getFault().getFaultCode().endsWith(":MustUnderstand"));
}
}
Aggregations