Package org.jibx.ws.example.fault.custom.common

Examples of org.jibx.ws.example.fault.custom.common.Welcome


        char firstChar = greetee.getName().charAt(0);
        if (firstChar != 'z' && firstChar != 'Z') {
            SoapFault fault = createFaultFor(greetee);
            throw new SoapFaultException(fault);
        }
        return new Welcome("Howdy " + greetee.getName() + "!");
    }
View Full Code Here


        m_fact = BindingDirectory.getFactory("example_binding", "org.jibx.ws.example.fault.custom.common");
    }

    private Welcome sayHello(Greetee s) throws WsException, IOException {
        SoapClient client = new SoapClient(m_location, m_fact);
        Welcome welcome = (Welcome) client.call(s);
        return welcome;
    }
View Full Code Here

            e.printStackTrace();
            System.exit(1);
        }

        try {
            Welcome welcome = client.sayHello(sender);
            System.out.println(welcome.getMessage());
        } catch (IOException e) {
            e.printStackTrace();
        } catch (SoapFaultException e) {
            List details = e.getFault().getDetails();
            if (details.size() > 0) {
View Full Code Here

TOP

Related Classes of org.jibx.ws.example.fault.custom.common.Welcome

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.