Package org.apache.axis2.jaxws.sample.wrap.sei

Examples of org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap


      hp0.setHeaderType("Client setup Header Type for HeaderPart0");
      HeaderPart1 hp1 = new HeaderPart1();
      hp1.setHeaderType("Client setup Header Type for HeaderPart0");
      Holder<HeaderPart0> holder = new Holder<HeaderPart0>(hp0);
      DocLitWrapService service = new DocLitWrapService();
      DocLitWrap proxy = service.getDocLitWrapPort();
      HeaderResponse hr = proxy.header(header, holder, hp1);
      hp0=holder.value;
            TestLogger.logger.debug("Holder Response String =" + hp0.getHeaderType());
            TestLogger.logger.debug("Header Response Long =" + hr.getOut());
            TestLogger.logger.debug("------------------------------");
    }catch(Exception e){
View Full Code Here


      String holderString = new String("Test twoWay Sync");
      Integer holderInteger = new Integer(0);
      Holder<String> strHolder = new Holder<String>(holderString);
      Holder<Integer> intHolder = new Holder<Integer>(holderInteger);
      DocLitWrapService service = new DocLitWrapService();
      DocLitWrap proxy = service.getDocLitWrapPort();
      proxy.twoWayHolder(strHolder, intHolder);
            TestLogger.logger.debug("Holder Response String =" + strHolder.value);;
            TestLogger.logger.debug("Holder Response Integer =" + intHolder.value);
            TestLogger.logger.debug("------------------------------");
    }catch(Exception e){
      e.printStackTrace();
View Full Code Here

        TestLogger.logger.debug("Test : " + getName());
        try{
            String request = "hello world";
           
            DocLitWrapService service = new DocLitWrapService();
            DocLitWrap proxy = service.getDocLitWrapPort();
            String response = proxy.echoStringWSGEN1(request);
            assertTrue(response.equals(request));
            TestLogger.logger.debug("------------------------------");
        }catch(Exception e){
            e.printStackTrace();
            fail();
View Full Code Here

        TestLogger.logger.debug("Test : " + getName());
        try{
            String request = "hello world 2";
           
            DocLitWrapService service = new DocLitWrapService();
            DocLitWrap proxy = service.getDocLitWrapPort();
            String response = proxy.echoStringWSGEN2(request);
            assertTrue(response.equals(request));
            TestLogger.logger.debug("------------------------------");
        }catch(Exception e){
            e.printStackTrace();
            fail();
View Full Code Here

        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    try{
      String reqString = "Test twoWay Sync";
      DocLitWrapService service = new DocLitWrapService();
      DocLitWrap proxy = service.getDocLitWrapPort();
      String response = proxy.twoWay(reqString);
            TestLogger.logger.debug("Sync Response =" + response);
            TestLogger.logger.debug("------------------------------");
    }catch(Exception e){
      e.printStackTrace();
      fail();
View Full Code Here

        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    try{
     
      DocLitWrapService service = new DocLitWrapService();
      DocLitWrap proxy = service.getDocLitWrapPort();
      proxy.oneWayVoid();

            TestLogger.logger.debug("------------------------------");
    }catch(Exception e){
      e.printStackTrace();
      fail();
View Full Code Here

        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
        try{
           
            DocLitWrapService service = new DocLitWrapService();
            DocLitWrap proxy = service.getDocLitWrapPort();
            BindingProvider p = (BindingProvider)proxy;
            p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,badEndpoint);
            proxy.oneWayVoid();
           
        }catch(WebServiceException e) {
            exception = e;
        }catch(Exception e) {
            fail("This testcase should only produce a WebServiceException.  We got: " + e.toString());
View Full Code Here

         * Get theDocLitWrap Prxoy
         * @return DocLitWrapProxy
         */
        private DocLitWrap getProxy() {
            DocLitWrapService service = new DocLitWrapService();
            DocLitWrap proxy = service.getDocLitWrapPort();
            BindingProvider p = (BindingProvider) proxy;
            p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);
            return proxy;
        }
View Full Code Here

        public void testTwoWaySync(){
            TestLogger.logger.debug("------------------------------");
            TestLogger.logger.debug("Test : " + getName());
            try{
                String reqString = "Test twoWay Sync";
                DocLitWrap proxy = getProxy();

                String response = proxy.twoWay(reqString);
                TestLogger.logger.debug("Sync Response =" + response);
                TestLogger.logger.debug("------------------------------");
            }catch(Exception e){
                e.printStackTrace();
                fail();
View Full Code Here

            TestLogger.logger.debug("------------------------------");
            TestLogger.logger.debug("Test : " + getName());
            try{

                DocLitWrapService service = new DocLitWrapService();
                DocLitWrap proxy = getProxy();
                proxy.oneWayVoid();
               
                // Repeat to ensure correct behavior
                proxy.oneWayVoid();

                TestLogger.logger.debug("------------------------------");
            }catch(Exception e){
                e.printStackTrace();
                fail();
View Full Code Here

TOP

Related Classes of org.apache.axis2.jaxws.sample.wrap.sei.DocLitWrap

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.