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

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


        public void testJAXBCB_Client_withHighFidelity(){
            TestLogger.logger.debug("------------------------------");
            TestLogger.logger.debug("Test  : " + getName());
            try{
                String reqString = "JAXBCustomBuilderClient";
                DocLitWrap proxy = getProxy();
               
                BindingProvider p = (BindingProvider) proxy;
                p.getRequestContext().put(org.apache.axis2.jaxws.Constants.JAXWS_PAYLOAD_HIGH_FIDELITY, Boolean.TRUE);
               
                // Start Monitoring
                JAXBCustomBuilderMonitor.setMonitoring(true);
                JAXBCustomBuilderMonitor.clear();
               
                // Invoke the web services
                proxy.twoWay(reqString);
               
                // The second invoke should trigger the fast
                // unmarshalling of the response
                proxy.twoWay(reqString);
               
               
                // The returned response unmarshalling should try
                // the JAXBCustomBuilder
                int totalBuilders = JAXBCustomBuilderMonitor.getTotalBuilders();
View Full Code Here


        String badEndpoint = "http://" + host;
       
        checkUnknownHostURL(badEndpoint);
       
        DocLitWrapService service = new DocLitWrapService();
        DocLitWrap proxy = service.getDocLitWrapPort();
        BindingProvider p = (BindingProvider)proxy;
        p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,badEndpoint);
       
      

        WebServiceException exception = null;

        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
        try{
            exception = null;
          
            proxy.oneWayVoid();

        }catch(WebServiceException e) {
            exception = e;
        }catch(Exception e) {
            fail("This testcase should only produce a WebServiceException.  We got: " + e.toString());
        }

        TestLogger.logger.debug("----------------------------------");

        assertNotNull(exception);
        assertTrue(exception.getCause() instanceof UnknownHostException);
        assertTrue(exception.getCause().getMessage().indexOf(host)!=-1);
       
        // Repeat to verify behavior
        try{
            exception = null;
          
            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

        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

        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

      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

      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

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.