Examples of TwoWayHolder


Examples of org.test.sample.nonwrap.TwoWayHolder

  }
  public void testTwoWayHolder(){
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    try{
      TwoWayHolder twh = new TwoWayHolder();
      twh.setTwoWayHolderInt(new Integer(0));
      twh.setTwoWayHolderStr(new String("Request Holder String"));
      Holder<TwoWayHolder> holder = new Holder<TwoWayHolder>(twh);
      TwoWay twoWay = new ObjectFactory().createTwoWay();
      twoWay.setTwowayStr("testing sync call for java bean non wrap endpoint");
      DocLitNonWrapService service = new DocLitNonWrapService();
      DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();
     
      BindingProvider p =  (BindingProvider)proxy;
      p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);
     
      proxy.twoWayHolder(holder);
      twh = holder.value;
            TestLogger.logger.debug("Holder string =" + twh.getTwoWayHolderStr());
            TestLogger.logger.debug("Holder int =" + twh.getTwoWayHolderInt());

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

Examples of org.test.sample.nonwrap.TwoWayHolder

 
  public void testTwoWayHolderAsync(){
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    try{
      TwoWayHolder twh = new TwoWayHolder();
      twh.setTwoWayHolderInt(new Integer(0));
      twh.setTwoWayHolderStr(new String("Request Holder String"));
      Holder<TwoWayHolder> holder = new Holder<TwoWayHolder>(twh);
      TwoWay twoWay = new ObjectFactory().createTwoWay();
      twoWay.setTwowayStr("testing sync call for java bean non wrap endpoint");
      DocLitNonWrapService service = new DocLitNonWrapService();
      DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();
View Full Code Here

Examples of org.test.sample.nonwrap.TwoWayHolder

  /* (non-Javadoc)
   * @see org.apache.axis2.jaxws.sample.nonwrap.sei.DocLitNonWrapPortType#twoWayHolder(javax.xml.ws.Holder)
   */
  public void twoWayHolder(Holder<TwoWayHolder> allByMyself) {
    //TODO Auto-generated method stub
    TwoWayHolder twh = allByMyself.value;
    twh.setTwoWayHolderInt(10);
    twh.setTwoWayHolderStr("Response String");

  }
View Full Code Here

Examples of org.test.sample.nonwrap.TwoWayHolder

  }
  public void testTwoWayHolder(){
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    try{
      TwoWayHolder twh = new TwoWayHolder();
      twh.setTwoWayHolderInt(new Integer(0));
      twh.setTwoWayHolderStr(new String("Request Holder String"));
      Holder<TwoWayHolder> holder = new Holder<TwoWayHolder>(twh);
      TwoWay twoWay = new ObjectFactory().createTwoWay();
      twoWay.setTwowayStr("testing sync call for java bean non wrap endpoint");
      DocLitNonWrapService service = new DocLitNonWrapService();
      DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();
      proxy.twoWayHolder(holder);
      twh = holder.value;
            TestLogger.logger.debug("Holder string =" + twh.getTwoWayHolderStr());
            TestLogger.logger.debug("Holder int =" + twh.getTwoWayHolderInt());

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

Examples of org.test.sample.nonwrap.TwoWayHolder

 
  public void testTwoWayHolderAsync(){
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
    try{
      TwoWayHolder twh = new TwoWayHolder();
      twh.setTwoWayHolderInt(new Integer(0));
      twh.setTwoWayHolderStr(new String("Request Holder String"));
      Holder<TwoWayHolder> holder = new Holder<TwoWayHolder>(twh);
      TwoWay twoWay = new ObjectFactory().createTwoWay();
      twoWay.setTwowayStr("testing sync call for java bean non wrap endpoint");
      DocLitNonWrapService service = new DocLitNonWrapService();
      DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();
View Full Code Here

Examples of org.test.sample.nonwrap.TwoWayHolder

        ReturnType type = (ReturnType)obj;
                TestLogger.logger.debug(">>Return String = " + type.getReturnStr());
        return;
      }
      if(obj instanceof TwoWayHolder){
        TwoWayHolder twh = (TwoWayHolder)obj;
                TestLogger.logger.debug("AsyncCallback Holder string =" + twh.getTwoWayHolderStr());
                TestLogger.logger.debug("AsyncCallback Holder int =" + twh.getTwoWayHolderInt());
      }
     
    }catch(ExecutionException e){
      e.printStackTrace();
    }catch(InterruptedException e){
View Full Code Here

Examples of org.test.sample.nonwrap.TwoWayHolder

  /* (non-Javadoc)
   * @see org.apache.axis2.jaxws.sample.nonwrap.sei.DocLitNonWrapPortType#twoWayHolder(javax.xml.ws.Holder)
   */
  public void twoWayHolder(Holder<TwoWayHolder> allByMyself) {
    //TODO Auto-generated method stub
    TwoWayHolder twh = allByMyself.value;
    twh.setTwoWayHolderInt(10);
    twh.setTwoWayHolderStr("Response String");

  }
View Full Code Here

Examples of org.test.sample.nonwrap.TwoWayHolder

   
    public void testTwoWayHolder(){
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
        try{
            TwoWayHolder twh = new TwoWayHolder();
            twh.setTwoWayHolderInt(new Integer(0));
            twh.setTwoWayHolderStr(new String("Request Holder String"));
            Holder<TwoWayHolder> holder = new Holder<TwoWayHolder>(twh);
            TwoWay twoWay = new ObjectFactory().createTwoWay();
            twoWay.setTwowayStr("testing sync call for java bean non wrap endpoint");
            DocLitNonWrapService service = new DocLitNonWrapService();
            DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();

            BindingProvider p =  (BindingProvider)proxy;
            p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);

            proxy.twoWayHolder(holder);
            twh = holder.value;
            TestLogger.logger.debug("Holder string =" + twh.getTwoWayHolderStr());
            TestLogger.logger.debug("Holder int =" + twh.getTwoWayHolderInt());
           
            // Repeat to verify behavior
            proxy.twoWayHolder(holder);
            twh = holder.value;
            TestLogger.logger.debug("Holder string =" + twh.getTwoWayHolderStr());
            TestLogger.logger.debug("Holder int =" + twh.getTwoWayHolderInt());

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

Examples of org.test.sample.nonwrap.TwoWayHolder

 
    public void testTwoWayHolderAsync(){
        TestLogger.logger.debug("------------------------------");
        TestLogger.logger.debug("Test : " + getName());
        try{
            TwoWayHolder twh = new TwoWayHolder();
            twh.setTwoWayHolderInt(new Integer(0));
            twh.setTwoWayHolderStr(new String("Request Holder String"));
            Holder<TwoWayHolder> holder = new Holder<TwoWayHolder>(twh);
            TwoWay twoWay = new ObjectFactory().createTwoWay();
            twoWay.setTwowayStr("testing sync call for java bean non wrap endpoint");
            DocLitNonWrapService service = new DocLitNonWrapService();
            DocLitNonWrapPortType proxy = service.getDocLitNonWrapPort();
View Full Code Here

Examples of org.test.sample.nonwrap.TwoWayHolder

        ReturnType type = (ReturnType)obj;
                TestLogger.logger.debug(">>Return String = " + type.getReturnStr());
        return;
      }
      if(obj instanceof TwoWayHolder){
        TwoWayHolder twh = (TwoWayHolder)obj;
                TestLogger.logger.debug("AsyncCallback Holder string =" + twh.getTwoWayHolderStr());
                TestLogger.logger.debug("AsyncCallback Holder int =" + twh.getTwoWayHolderInt());
      }
     
    }catch(ExecutionException e){
      e.printStackTrace();
    }catch(InterruptedException 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.