View Javadoc

    1   package org.codehaus.xfire.wsdl11.builder;
    2
    3   import org.codehaus.xfire.XFireRuntimeException;
    4   import org.codehaus.xfire.service.Service;
    5   import org.codehaus.xfire.transport.TransportManager;
    6   import org.codehaus.xfire.wsdl11.WSDL11ParameterBinding;
    7
    8   /***
    9    * Creates a WSDLBuilder for a service.
    10   */
    11  public class DefaultWSDLBuilderFactory
    12      implements WSDLBuilderFactory
    13  {
    14      public WSDLBuilder createWSDLBuilder(Service service,
    15                                           WSDL11ParameterBinding paramBinding,
    16                                           TransportManager transportManager)
    17      {
    18          try
    19          {
    20              return new WSDLBuilder(service, transportManager, paramBinding);
    21          }
    22          catch (XFireRuntimeException e)
    23          {
    24              throw (XFireRuntimeException) e;
    25          }
    26          catch (Exception e)
    27          {
    28              throw new XFireRuntimeException("Could not create wsdl builder", e);
    29          }
    30      }
    31  }