Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2673

JaxWsProxyFactoryBean and JaxWsServerFactoryBean communication broken in some cases after upgrade to 2.2.7

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      When using JaxWsProxyFactoryBean and JaxWsServerFactoryBean with AegisDataBinding some interfaces is broken and all methods call result in NULL.

      When contract interface contains method with parameters of type List<Integer> AND NOT CONTAIN method with return type "List<Integer>" then all methods call return NULL.

      Server code:

              JaxWsServerFactoryBean serverFactoryBean = new JaxWsServerFactoryBean();
              serverFactoryBean.setServiceClass(AopUtils.getTargetClass(implementor)); //WSImpl.class
              serverFactoryBean.setServiceBean(implementor);             //WSImpl.class
              serverFactoryBean.setDataBinding(new AegisDatabinding());
              serverFactoryBean.setAddress(url);
              serverFactoryBean.setBus(cxfServlet.getBus());
              serverFactoryBean.create();
      

      Client code:

                  JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
                  factory.setServiceClass(resultInterfaceClass);                 //WS.class
                  factory.setAddress(asURL);
                  factory.setDataBinding(new AegisDatabinding());
                  Object remoteInterfaceImpl = factory.create();
      

      Interface:

      @WebService(name="cesnek", targetNamespace="http://ns1")
      public interface WS {
         
          Integer zalozNovyDokument(@WebParam(name = "idTypDokument") Integer idTypDokument);
      
          void vratDmsDokumenty(@WebParam(name = "idDmsDokumentList") List<Integer> idDmsDokumentList);
      
          //When next line is un-commented - bug disappears and all working fine!
          //List<Integer> vratDmsDokumenty();
      }
      

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            dkulp Daniel Kulp
            cesnek Jara Cesnek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment