3 Replies Latest reply on Dec 21, 2010 2:55 AM by Jim Ma

    Service created twice from WSDL?

    Frank Langelage Master

      Using the current JBoss-AS 6.0.SNAPSHOT with Apache CXF 2.3.1 and JBossWS-CXF 3.4.0.CR3 for each WebService call I see a message two "Creating Service" messages from CXF.

      This is probably not necessary / intended.

      Is this a bug? If yes, a defect of apache cxf of of jboss-ws-cxf?

       

      22:23:45,789 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Creating Service {http://production.ws.fn.mbisoftware.biz/}ProductionMasterdataWS from WSDL: http://sb2000:8080/mbi-ws/mbi2e-lafr-sb2000-ipc/production/ProductionMasterdataWS?wsdl

      22:23:45,832 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] Creating Service {http://production.ws.fn.mbisoftware.biz/}ProductionMasterdataWS from WSDL: http://sb2000:8080/mbi-ws/mbi2e-lafr-sb2000-ipc/production/ProductionMasterdataWS?wsdl

       

           ...

           ProductionMasterdataService pms = new ProductionMasterdataService();
           ProductionMasterdataWSI wsi = pms.getProductionMasterdataWSPort();
           ServiceGenericIntegerValueResponse response = wsi.getWorkCenter( this.workCenterId );

           ...

       

      @WebServiceClient
      public class ProductionMasterdataService extends Service
      {
          public ProductionMasterdataService( ) throws MalformedURLException, NamingException, MbiException
          {
              super( ServiceLocator.getInstance().buildWsdlUrl( "production", "ProductionMasterdataWS" ),

                        new QName( "http://production.ws.fn.mbisoftware.biz/", "ProductionMasterdataWS" ) );
          }

       

          public ProductionMasterdataWSI getProductionMasterdataWSPort()

          {
              ProductionMasterdataWSI versionWSI = this.getPort( ProductionMasterdataWSI.class );
              return versionWSI;
          }
      }