View Javadoc

    1   package org.codehaus.xfire.xmlbeans;
    2
    3   import org.codehaus.xfire.aegis.AegisBindingProvider;
    4   import org.codehaus.xfire.service.binding.ObjectServiceFactory;
    5   import org.codehaus.xfire.soap.SoapConstants;
    6   import org.codehaus.xfire.transport.TransportManager;
    7
    8   /***
    9    * @author <a href="mailto:dan@envoisolutions.com">Dan Diephouse</a>
    10   */
    11  public class XmlBeansServiceFactory
    12          extends ObjectServiceFactory
    13  {
    14      public XmlBeansServiceFactory()
    15      {
    16          setStyle(SoapConstants.STYLE_DOCUMENT);
    17          setWsdlBuilderFactory(new XmlBeansWSDLBuilderFactory());
    18      }
    19
    20      public XmlBeansServiceFactory(TransportManager transportManager)
    21      {
    22          super(transportManager);
    23
    24          AegisBindingProvider provider = new AegisBindingProvider(new XmlBeansTypeRegistry());
    25          setBindingProvider(provider);
    26
    27          setStyle(SoapConstants.STYLE_DOCUMENT);
    28          setWsdlBuilderFactory(new XmlBeansWSDLBuilderFactory());
    29      }
    30  }