Examples of RPCLit


Examples of org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit

   
    /**
     * Simple test that ensures that a service fault is thrown correctly
     */
    public void testFault() throws Exception {
        RPCLit proxy = getProxy();
        try{
            proxy.testFault();
            fail("Expected RPCFault");
        } catch(RPCFault rpcFault){
            assertTrue(rpcFault.getMessage().equals("Throw RPCFault"));
            assertTrue(rpcFault.getFaultInfo() == 123);
        } catch(Exception e){
            e.printStackTrace();
            fail("Exception received" + e);
        }
       
        // Try a second time
        try{
            proxy.testFault();
            fail("Expected RPCFault");
        } catch(RPCFault rpcFault){
            assertTrue(rpcFault.getMessage().equals("Throw RPCFault"));
            assertTrue(rpcFault.getFaultInfo() == 123);
        } catch(Exception e){
View Full Code Here

Examples of org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit

   
    /**
     * Simple test that ensures that we can echo a string to an rpc/lit web service
     */
    public void testForNull() throws Exception {
        RPCLit proxy = getProxy();
        try{  
            String request = null;
          
            String response = proxy.testSimple(request);
            fail("RPC/LIT should throw webserviceException when operation is invoked with null input parameter");
        }catch(Exception e){
            assertTrue(e instanceof WebServiceException);
            TestLogger.logger.debug(e.getMessage());
        }
       
        // Try a second time
        try{  
            String request = null;
          
            String response = proxy.testSimple(request);
            fail("RPC/LIT should throw webserviceException when operation is invoked with null input parameter");
        }catch(Exception e){
            assertTrue(e instanceof WebServiceException);
            TestLogger.logger.debug(e.getMessage());
        }
View Full Code Here

Examples of org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit

    /**
     * Simple test that ensures that we can echo a string to an rpc/lit web service
     */
    public void testForNullReturn() throws Exception {
       
        RPCLit proxy = getProxy();
        try{
            String response = proxy.testSimple("returnNull");
            fail("RPC/LIT should throw webserviceException when operation is invoked with null out parameter");
        }catch(Exception e){
            assertTrue(e instanceof WebServiceException);
            TestLogger.logger.debug(e.getMessage());
        }
       
        // Try a second time
        try{
            String response = proxy.testSimple("returnNull");
            fail("RPC/LIT should throw webserviceException when operation is invoked with null out parameter");
        }catch(Exception e){
            assertTrue(e instanceof WebServiceException);
            TestLogger.logger.debug(e.getMessage());
        }
View Full Code Here

Examples of org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit

    /**
     * Simple test that ensures that we can echo a string to an rpc/lit web service.
     */
    public void testStringList() throws Exception {
        try{
            RPCLit proxy = getProxy();
            String[] request = new String[] {"Hello" , "World"};
          
            String[] response = proxy.testStringList2(request);
            assertTrue(response != null);
            assertTrue(response.length==2);
            assertTrue(response[0].equals("Hello"));
            assertTrue(response[1].equals("World"));
           
            // Try a second time
            response = proxy.testStringList2(request);
            assertTrue(response != null);
            assertTrue(response.length==2);
            assertTrue(response[0].equals("Hello"));
            assertTrue(response[1].equals("World"));
        }catch(Exception e){
View Full Code Here

Examples of org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit

     * Users should use document/literal processing if they
     * need such complicated scenarios.
     */
    public void _testLists() {
        try{
            RPCLit proxy = getProxy();
            QName[] request = new QName[] {RPCLitImpl.qname1, RPCLitImpl.qname2};
          
            QName[] qNames = proxy.testLists(request,
                    new XMLGregorianCalendar[0],
                    new String[0],
                    new BigInteger[0],
                    new Long[0],
                    new Enum[0],
                    new String[0],
                    new ComplexAll());
            assertTrue(qNames.length==2);
            assertTrue(qNames[0].equals(RPCLitImpl.qname1));
            assertTrue(qNames[1].equals(RPCLitImpl.qname2));
           
           
            //Try a second time
            qNames = proxy.testLists(request,
                                     new XMLGregorianCalendar[0],
                                     new String[0],
                                     new BigInteger[0],
                                     new Long[0],
                                     new Enum[0],
View Full Code Here

Examples of org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit

     * Users should use document/literal processing if they
     * need such complicated scenarios.
     */
    public void _testCalendars() {
        try{
            RPCLit proxy = getProxy();
            XMLGregorianCalendar[] request = new XMLGregorianCalendar[] {RPCLitImpl.bday, RPCLitImpl.holiday};
          
            XMLGregorianCalendar[] cals  = proxy.testCalendarList1(request);
            assertTrue(cals.length == 2);
            assertTrue(cals[0].compare(RPCLitImpl.bday) == 0);
            assertTrue(cals[1].compare(RPCLitImpl.holiday) == 0);
           
            // Try a second time
            cals  = proxy.testCalendarList1(request);
            assertTrue(cals.length == 2);
            assertTrue(cals[0].compare(RPCLitImpl.bday) == 0);
            assertTrue(cals[1].compare(RPCLitImpl.holiday) == 0);
        }catch(Exception e){
            e.printStackTrace();
View Full Code Here

Examples of org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit

        }
    }
   
    public void testBigIntegers() {
        try{
            RPCLit proxy = getProxy();
            BigInteger[] request = new BigInteger[] {RPCLitImpl.bigInt1, RPCLitImpl.bigInt2};
          
            BigInteger[] ints  = proxy.testBigIntegerList3(request);
            assertTrue(ints.length==2);
            assertTrue(ints[0].compareTo(RPCLitImpl.bigInt1) == 0);
            assertTrue(ints[1].compareTo(RPCLitImpl.bigInt2) == 0);
           
            // Try a second time
            ints  = proxy.testBigIntegerList3(request);
            assertTrue(ints.length==2);
            assertTrue(ints[0].compareTo(RPCLitImpl.bigInt1) == 0);
            assertTrue(ints[1].compareTo(RPCLitImpl.bigInt2) == 0);
        }catch(Exception e){
            e.printStackTrace();
View Full Code Here

Examples of org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit

        }
    }
   
    public void testLongs() {
        try{
            RPCLit proxy = getProxy();
            Long[] request = new Long[] {new Long(0), new Long(1), new Long(2)};
          
            Long[] longs  = proxy.testLongList4(request);
            assertTrue(longs.length==3);
            assertTrue(longs[0] == 0);
            assertTrue(longs[1] == 1);
            assertTrue(longs[2] == 2);
           
            // Try a second time
            longs  = proxy.testLongList4(request);
            assertTrue(longs.length==3);
            assertTrue(longs[0] == 0);
            assertTrue(longs[1] == 1);
            assertTrue(longs[2] == 2);
        }catch(Exception e){
View Full Code Here

Examples of org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit

        }
    }
   
    public void testEnums() {
        try{
            RPCLit proxy = getProxy();
            Enum[] request = new Enum[] {Enum.ONE, Enum.TWO, Enum.THREE};
          
            Enum[] enums  = proxy.testEnumList5(request);
            assertTrue(enums.length==3);
            assertTrue(enums[0] == Enum.ONE);
            assertTrue(enums[1] == Enum.TWO);
            assertTrue(enums[2] == Enum.THREE);
           
           
            // Try a second time
            enums  = proxy.testEnumList5(request);
            assertTrue(enums.length==3);
            assertTrue(enums[0] == Enum.ONE);
            assertTrue(enums[1] == Enum.TWO);
            assertTrue(enums[2] == Enum.THREE);
        }catch(Exception e){
View Full Code Here

Examples of org.apache.axis2.jaxws.proxy.rpclit.sei.RPCLit

    /**
     * Simple test that ensures that we can echo a string to an rpc/lit web service
     */
    public void testSimple() throws Exception {
        try{
            RPCLit proxy = getProxy();
            String request = "This is a test...";
          
            String response = proxy.testSimple(request);
            assertTrue(response != null);
            assertTrue(response.equals(request));
        }catch(Exception e){
            e.printStackTrace();
            fail("Exception received" + e);
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.