Package samples.faults

Examples of samples.faults.Employee


        call.setProperty(Call.SOAPACTION_URI_PROPERTY, "http://faults.samples");
        call.setOperationName( new QName(uri, "getEmployee") );

        String[] args2 = opts.getRemainingArgs();
        System.out.println("Trying :" + args2[0]);
        Employee emp = (Employee) call.invoke(new Object[]{ args2[0] });
        System.out.println("Got :" + emp.getEmployeeID());
    }
View Full Code Here


    public void addEmployee(Employee in) {
        map.put(in.getEmployeeID(), in);
    }

    public Employee getEmployee(java.lang.String id) throws NoSuchEmployeeFault {
        Employee emp = (Employee) map.get(id);
        if (emp == null) {
            NoSuchEmployeeFault fault = new NoSuchEmployeeFault();
            fault.setInfo("Could not find employee:" + id);
            throw fault;
        }
View Full Code Here

TOP

Related Classes of samples.faults.Employee

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.