Examples of SOAPStruct


Examples of org.soapinterop.axis.SOAPStruct

    //    System.out.println(".");
    //    assertTrue("echoStringArray : incorrect return value", Arrays.equals(in, out));
    //}

    public void testStruct() throws Exception {
        SOAPStruct in = new SOAPStruct();
        in.setVarInt(5);
        in.setVarString("Hello");
        in.setVarFloat(103F);
        SOAPStruct out = binding.echoStruct(in);
        assertEquals("echoStruct : incorrect return value : "
            + out + " expected : " + in, in, out);
    }
View Full Code Here

Examples of org.soapinterop.celtix.SOAPStruct

    //    List<String> out = port.echoStringArray(in);
    //    assertTrue("echoStringArray : incorrect return value : ", in.equals(out));
    //}

    public void testStruct() throws Exception {
        SOAPStruct in = new SOAPStruct();
        in.setVarInt(6);
        in.setVarString("Rover");
        in.setVarFloat(1010F);
        SOAPStruct out = port.echoStruct(in);
        assertTrue("echoStruct : incorrect return value", equals(in, out));
    }
View Full Code Here

Examples of org.soapinterop.xsd.SOAPStruct

  /**
   * test echo struct
   * @throws RemoteException
   */
  public void testEchoStruct() throws RemoteException {
    SOAPStruct input=(SOAPStruct)dataFactory.create(SOAPStruct.class);
    input.setVarInt(200);
    input.setVarFloat(.002f);
    input.setVarString("Hello");
    SOAPStruct output = doc.echoStruct(input);
        assertEquals(input.getVarInt(), output.getVarInt());
        assertEquals(input.getVarFloat(), output.getVarFloat());
        assertEquals(input.getVarString(), output.getVarString());
  }
View Full Code Here

Examples of org.soapinterop.xsd.SOAPStruct

     * test echo struct
     *
     * @throws RemoteException
     */
    public void testEchoStruct() throws RemoteException {
        SOAPStruct input = (SOAPStruct) dataFactory.create(SOAPStruct.class);
        input.setVarInt(200);
        input.setVarFloat(.002f);
        input.setVarString("Hello");
        SOAPStruct output = doc.echoStruct(input);
        assertEquals(input.getVarInt(), output.getVarInt());
        assertEquals(input.getVarFloat(), output.getVarFloat());
        assertEquals(input.getVarString(), output.getVarString());
    }
View Full Code Here

Examples of org.soapinterop.xsd.SOAPStruct

     * test echo struct
     *
     * @throws RemoteException
     */
    public void testEchoStruct() throws RemoteException {
        SOAPStruct input = (SOAPStruct) dataFactory.create(SOAPStruct.class);
        input.setVarInt(200);
        input.setVarFloat(.002f);
        input.setVarString("Hello");
        SOAPStruct output = doc.echoStruct(input);
        assertEquals(input.getVarInt(), output.getVarInt());
        assertEquals(input.getVarFloat(), output.getVarFloat());
        assertEquals(input.getVarString(), output.getVarString());
    }
View Full Code Here

Examples of samples.echo.SOAPStruct

    }

    // This was created from a return received from a .NET service
    public void testArrayL() throws Exception {
        SOAPStruct[] s = new SOAPStruct[] {
                new SOAPStruct(),
                new SOAPStruct(),
                new SOAPStruct()};
            s[0].setVarInt(1);
            s[0].setVarString("one");
            s[0].setVarFloat(1.1F);
            s[1].setVarInt(2);
            s[1].setVarString("two");
View Full Code Here

Examples of samples.echo.SOAPStruct

    }

    // Like above without multiref
    public void testArrayM() throws Exception {
        SOAPStruct[] s = new SOAPStruct[] {
                new SOAPStruct(),
                new SOAPStruct(),
                new SOAPStruct()};
            s[0].setVarInt(1);
            s[0].setVarString("one");
            s[0].setVarFloat(1.1F);
            s[1].setVarInt(2);
            s[1].setVarString("two");
View Full Code Here

Examples of samples.echo.SOAPStruct

                    s, true);
    }
    // Struct within Struct
    public void testStructStruct() throws Exception {

        SOAPStruct s = new samples.echo.SOAPStruct();
        s.setVarInt(1);
        s.setVarString("one");
        s.setVarFloat(1.1F);
        SOAPStructStruct ss = new SOAPStructStruct();
        ss.setVarString("hello");
        ss.setVarInt(2);
        ss.setVarFloat(2.2F);
        ss.setVarStruct(s);
View Full Code Here

Examples of samples.echo.SOAPStruct

                    "</whatever>" , ss, true);
    }

    // Struct within Struct
    public void testStructStruct2() throws Exception {
        SOAPStruct s = new samples.echo.SOAPStruct();
        s.setVarInt(1);
        s.setVarString("one");
        s.setVarFloat(1.1F);
        SOAPStructStruct ss = new SOAPStructStruct();
        ss.setVarString("hello");
        ss.setVarInt(2);
        ss.setVarFloat(2.2F);
        ss.setVarStruct(s);
View Full Code Here

Examples of samples.echo.SOAPStruct

    }

    // This was created from a return received from a .NET service
    public void testArrayL() throws Exception {
        SOAPStruct[] s = new SOAPStruct[] {
                new SOAPStruct(),
                new SOAPStruct(),
                new SOAPStruct()};
            s[0].setVarInt(1);
            s[0].setVarString("one");
            s[0].setVarFloat(1.1F);
            s[1].setVarInt(2);
            s[1].setVarString("two");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.