Search in sources :

Example 1 with Hello

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);
}
Also used : Hello(client.soap_mu_header.client.Hello) Hello_Service(client.soap_mu_header.client.Hello_Service) Holder(jakarta.xml.ws.Holder)

Example 2 with Hello

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"));
    }
}
Also used : Hello(client.soap_mu_header.client.Hello) Hello_Service(client.soap_mu_header.client.Hello_Service) Holder(jakarta.xml.ws.Holder) SOAPFaultException(jakarta.xml.ws.soap.SOAPFaultException)

Aggregations

Hello (client.soap_mu_header.client.Hello)2 Hello_Service (client.soap_mu_header.client.Hello_Service)2 Holder (jakarta.xml.ws.Holder)2 SOAPFaultException (jakarta.xml.ws.soap.SOAPFaultException)1