Package test.wsdl.interop3.compound2

Examples of test.wsdl.interop3.compound2.Compound2Locator


        }
        assertNotNull("binding is null", binding);

        String str = "Hello there!";
        String [] strArray = new String [] { "1", "two", "trois" };
        ArrayOfstringLiteral param = new ArrayOfstringLiteral();
        param.setString(strArray);

        assertEquals("echoString results differ", binding.echoString(str), str);

        String [] resArray = binding.echoStringArray(param).getString();
        assertEquals("String array lengths differ",
View Full Code Here


        }
        assertNotNull("binding is null", binding);

        String str = "Hello there!";
        String [] strArray = new String [] { "1", "two", "trois" };
        ArrayOfstring_Literal param = new ArrayOfstring_Literal();
        param.setString(strArray);

        assertEquals("echoString results differ", binding.echoString(str), str);

        String [] resArray = binding.echoStringArray(param).getString();
        assertEquals("String array lengths differ",
View Full Code Here

            assertEquals("Array members at index " + i + " differ",
                         strArray[i],
                         resArray[i]);
        }

        SOAPStruct struct = new SOAPStruct();
        struct.setVarFloat(3.14159F);
        struct.setVarInt(69);
        struct.setVarString("Struct-o-rama");

        assertTrue("Structs weren't equal",
                   struct.equals(binding.echoStruct(struct)));
    }
View Full Code Here

            assertEquals("Array members at index " + i + " differ",
                         strArray[i],
                         resArray[i]);
        }

        SOAPStruct struct = new SOAPStruct();
        struct.setVarFloat(3.14159F);
        struct.setVarInt(69);
        struct.setVarString("Struct-o-rama");

        assertTrue("Structs weren't equal",
                   struct.equals(binding.echoStruct(struct)));
    }
View Full Code Here

    public Import1TestCase(String name) {
        super(name);
    }

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

        try {
            String value = "import1 test string";
            String result = binding.echoString(value);
            assertEquals("Strings didn't match", value, result);
        }
        catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
        }
View Full Code Here

    public Import2TestCase(String name) {
        super(name);
    }

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

        try {
            SOAPStruct value = new SOAPStruct();
            value.setVarString("import2 string");
            value.setVarInt(5);
            value.setVarFloat(4.5F);
            SOAPStruct result = binding.echoStruct(value);
            assertEquals("String members didn't match", value.getVarString(), result.getVarString());
            assertEquals("int members didn't match", value.getVarInt(), result.getVarInt());
            //assertEquals("float members didn't match", value.getVarFloat(), result.getVarFloat());
        }
        catch (java.rmi.RemoteException re) {
View Full Code Here

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

        try {
            SOAPStruct value = new SOAPStruct();
            value.setVarString("import2 string");
            value.setVarInt(5);
            value.setVarFloat(4.5F);
            SOAPStruct result = binding.echoStruct(value);
            assertEquals("String members didn't match", value.getVarString(), result.getVarString());
            assertEquals("int members didn't match", value.getVarInt(), result.getVarInt());
            //assertEquals("float members didn't match", value.getVarFloat(), result.getVarFloat());
        }
        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 {
            SOAPStruct value = new SOAPStruct();
            value.setVarString("import2 string");
            value.setVarInt(5);
            value.setVarFloat(4.5F);
            SOAPStruct result = binding.echoStruct(value);
            assertEquals("String members didn't match", value.getVarString(), result.getVarString());
            assertEquals("int members didn't match", value.getVarInt(), result.getVarInt());
        }
        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 {
            SOAPStruct value = new SOAPStruct();
            value.setVarString("import2 string");
            value.setVarInt(5);
            value.setVarFloat(4.5F);
            SOAPStruct result = binding.echoStruct(value);
            assertEquals("String members didn't match", value.getVarString(), result.getVarString());
            assertEquals("int members didn't match", value.getVarInt(), result.getVarInt());
        }
        catch (java.rmi.RemoteException re) {
            throw new junit.framework.AssertionFailedError("Remote Exception caught: " + re);
        }
    }
View Full Code Here

            assertEquals("Array members at index " + i + " differ",
                         strArray[i],
                         resArray[i]);
        }

        SOAPStruct struct = new SOAPStruct();
        struct.setVarFloat(3.14159F);
        struct.setVarInt(69);
        struct.setVarString("Struct-o-rama");

        assertTrue("Structs weren't equal",
                   struct.equals(binding.echoStruct(struct)));
    }
View Full Code Here

TOP

Related Classes of test.wsdl.interop3.compound2.Compound2Locator

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.