Package test.wsdl.interop3.compound1

Examples of test.wsdl.interop3.compound1.Compound1TestCase


    protected void setUp() throws Exception {
    }

    public void testStep3() {
        SoapInteropCompound2PortType binding;
        try {
            if (url != null) {
                binding = new Compound2Locator().getSoapInteropCompound2Port(url);
            } else {
                binding = new Compound2Locator().getSoapInteropCompound2Port();
            }
        }
        catch (javax.xml.rpc.ServiceException jre) {
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        try {
            Employee emp = new Employee();
            Person person = new Person();
            person.setMale(true);
            person.setName("Joe Blow");
            emp.setPerson(person);
            emp.setID(314159);
            emp.setSalary(100000.50);
           
            Employee result = binding.echoEmployee(emp);

            if (!emp.equals(result)) {
                System.out.println("Expected:");
                System.out.println(printEmployee(emp));
                System.out.println("Received:");
View Full Code Here


    protected void setUp() throws Exception {
    }

    public void testStep3() {
        SoapInteropCompound2PortType binding;
        try {
            if (url != null) {
                binding = new Compound2Locator().getSoapInteropCompound2Port(url);
            } else {
                binding = new Compound2Locator().getSoapInteropCompound2Port();
            }
        }
        catch (javax.xml.rpc.ServiceException jre) {
            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        try {
            Employee emp = new Employee();
            Person person = new Person();
            person.setMale(true);
            person.setName("Joe Blow");
            emp.setPerson(person);
            emp.setID(314159);
            emp.setSalary(100000.50);
           
            Employee result = binding.echoEmployee(emp);

            if (!emp.equals(result)) {
                System.out.println("Expected:");
                System.out.println(printEmployee(emp));
                System.out.println("Received:");
View Full Code Here

            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        try {
            Employee emp = new Employee();
            Person person = new Person();
            person.setMale(true);
            person.setName("Joe Blow");
            emp.setPerson(person);
            emp.setID(314159);
            emp.setSalary(100000.50);
           
            Employee result = binding.echoEmployee(emp);

            assertTrue("Results did not match", result.equals(emp));

        }
        catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
        }
View Full Code Here

            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        try {
            Employee emp = new Employee();
            Person person = new Person();
            person.setMale(true);
            person.setName("Joe Blow");
            emp.setPerson(person);
            emp.setID(314159);
            emp.setSalary(100000.50);
           
            Employee result = binding.echoEmployee(emp);

            if (!emp.equals(result)) {
                System.out.println("Expected:");
                System.out.println(printEmployee(emp));
                System.out.println("Received:");
                System.out.println(printEmployee(result));
            }
            assertTrue("Results did not match", result.equals(emp));

        }
        catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
        }
View Full Code Here

            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        try {
            Employee emp = new Employee();
            Person person = new Person();
            person.setMale(true);
            person.setName("Joe Blow");
            emp.setPerson(person);
            emp.setID(314159);
            emp.setSalary(100000.50);
           
            Employee result = binding.echoEmployee(emp);

            if (!emp.equals(result)) {
                System.out.println("Expected:");
                System.out.println(printEmployee(emp));
                System.out.println("Received:");
                System.out.println(printEmployee(result));
            }
            assertTrue("Results did not match", result.equals(emp));

        }
        catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
        }
View Full Code Here

            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        try {
            Employee emp = new Employee();
            Person person = new Person();
            person.setMale(true);
            person.setName("Joe Blow");
            emp.setPerson(person);
            emp.setID(314159);
            emp.setSalary(100000.50);
           
            Employee result = binding.echoEmployee(emp);

            assertTrue("Results did not match", result.equals(emp));

        }
        catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
        }
View Full Code Here

        }
        assertTrue("binding is null", binding != null);

        try {
            Employee emp = new Employee();
            Person person = new Person();
            person.setMale(true);
            person.setName("Joe Blow");
            emp.setPerson(person);
            emp.setID(314159);
            emp.setSalary(100000.50);
           
            Employee result = binding.echoEmployee(emp);
View Full Code Here

        }
        assertTrue("binding is null", binding != null);

        try {
            Employee emp = new Employee();
            Person person = new Person();
            person.setMale(true);
            person.setName("Joe Blow");
            emp.setPerson(person);
            emp.setID(314159);
            emp.setSalary(100000.50);
           
            Employee result = binding.echoEmployee(emp);
View Full Code Here

    String printEmployee(Employee e) {
        String result = new String();
       
        result += " ID: " + e.getID() + "\r\n";
        result += " Salary: " + e.getSalary() + "\r\n";
        Person p = e.getPerson();
        result += " Person:\r\n";
        result += "  Name: " + p.getName() + "\r\n";
        result += "  Male: " + p.isMale() + "\r\n";
       
        return result;
    }
View Full Code Here

        }
        assertTrue("binding is null", binding != null);

        try {
            Employee emp = new Employee();
            Person person = new Person();
            person.setMale(true);
            person.setName("Joe Blow");
            emp.setPerson(person);
            emp.setID(314159);
            emp.setSalary(100000.50);
           
            Employee result = binding.echoEmployee(emp);
View Full Code Here

TOP

Related Classes of test.wsdl.interop3.compound1.Compound1TestCase

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.