protected void publishContractToFilesystem()
   {
      // Publish wsdl after endpoint deployment, as required by JSR-109, section 8.2
      if (wsdlPublisher != null)
      {
         Endpoint endpoint = getServer().getEndpoint();
         Service service = endpoint.getService();
         try
         {
            String wsdlLocation = getWsdlLocation();
            if (wsdlLocation == null) {
               JaxWsImplementorInfo info = new JaxWsImplementorInfo(getImplementorClass());
               wsdlLocation = info.getWsdlLocation();
            }
            updateSoapAddress();
            wsdlPublisher.publishWsdlFiles(service.getName(), wsdlLocation, this.getBus(), service.getServiceInfos());
         }
         catch (IOException ioe)
         {
            throw new RuntimeException(ioe);
         }
      }
      else
      {
         Loggers.DEPLOYMENT_LOGGER.unableToPublishContractDueToMissingPublisher(getImplementorClass());
      }
   }
protected void publishContractToFilesystem ( ) { if ( wsdlPublisher != null ) { Endpoint endpoint = getServer ( ) . getEndpoint ( ) ; Service service = endpoint . getService ( ) ; try { String wsdlLocation = getWsdlLocation ( ) ; if ( wsdlLocation == null ) { JaxWsImplementorInfo info = new JaxWsImplementorInfo ( getImplementorClass ( ) ) ; wsdlLocation = info . getWsdlLocation ( ) ; } updateSoapAddress ( ) ; wsdlPublisher . publishWsdlFiles ( service . getName ( ) , wsdlLocation , this . getBus ( ) , service . getServiceInfos ( ) ) ; } catch ( IOException ioe ) { throw new RuntimeException ( ioe ) ; } } else { Loggers . DEPLOYMENT_LOGGER . unableToPublishContractDueToMissingPublisher ( getImplementorClass ( ) ) ; } }
Publish the contract to a file using the configured wsdl publisher