<?xml version="1.0" encoding="UTF-8"?>

<connector xmlns="http://java.sun.com/xml/ns/j2ee"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
           http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
           version="1.5">

   <vendor-name>Red Hat Middleware LLC</vendor-name>
   <eis-type>Teiid WS Connector</eis-type>
   <resourceadapter-version>1.0</resourceadapter-version>
   <license>
      <description>
 JBoss, Home of Professional Open Source.
 Copyright 2006, Red Hat Middleware LLC, and individual contributors
 as indicated by the @author tags. See the copyright.txt file in the
 distribution for a full listing of individual contributors.

 This is free software; you can redistribute it and/or modify it
 under the terms of the GNU Lesser General Public License as
 published by the Free Software Foundation; either version 2.1 of
 the License, or (at your option) any later version.

 This software is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 Lesser General Public License for more details.

 You should have received a copy of the GNU Lesser General Public
 License along with this software; if not, write to the Free
 Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 02110-1301 USA, or see the FSF site: http://www.fsf.org.
      </description>
      <license-required>true</license-required>
   </license>
   <resourceadapter>
      <resourceadapter-class>org.teiid.resource.adapter.ws.WSResourceAdapter</resourceadapter-class>

      <outbound-resourceadapter>
         <connection-definition>
            <managedconnectionfactory-class>org.teiid.resource.adapter.ws.WSManagedConnectionFactory</managedconnectionfactory-class>

            <config-property>
                <description>{$display:"URL, End Point",$description:"URL for HTTP, Service Endpoint for SOAP",$required:"true"}</description>
                <config-property-name>EndPoint</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
            </config-property>
            
            <config-property>
                <description>{$display:"WebService Security Used",$allowed:["None","HTTPBasic", "Digest", "WSSecurity", "Kerberos","OAuth"], $description:"Type of Authentication to used with the web service.", $required:"true", $defaultValue:"None"}</description>
                <config-property-name>SecurityType</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                <config-property-value>None</config-property-value>
            </config-property>
                        
            <config-property>
                <description>{$display:"Authentication User Name",$description:"Name value for authentication",$advanced:"true"}</description>
                <config-property-name>AuthUserName</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
            </config-property>

            <config-property>
                <description>{$display:"Authentication User Password",$description:"Password value for authentication",$advanced:"true",$masked:"true"}</description>
                <config-property-name>AuthPassword</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
            </config-property>
                                    
            <config-property>
                <description>{$display:"CXF Configuration File",$description:"CXF client configuration File or URL"}</description>
                <config-property-name>ConfigFile</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
            </config-property>
                        
            <config-property>
                <description>{$display:"Configuration Name",$description:"DEPRECATED: see EndPointName"}</description>
                <config-property-name>ConfigName</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
            </config-property>
            
             <config-property>
                <description>{$display:"End Point Name",$description:"Local part of the end point QName to use with this connection.  Defaults to teiid"}</description>
                <config-property-name>EndPointName</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                <config-property-value>teiid</config-property-value>
            </config-property>
            
             <config-property>
                <description>{$display:"Service Name",$description:"Local part of the service QName to use with this connection.  Defaults to teiid"}</description>
                <config-property-name>ServiceName</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                <config-property-value>teiid</config-property-value>
            </config-property>
            
            <config-property>
                <description>{$display:"Namespace URI",$description:"Namespace URI of the service QName to use with this connection.  Defaults to http://teiid.org"}</description>
                <config-property-name>NamespaceUri</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
                <config-property-value>http://teiid.org</config-property-value>
            </config-property>
            
            <config-property>
                <description>{$display:"Request Timeout",$description:"Timeout for request"}</description>
                <config-property-name>RequestTimeout</config-property-name>
                <config-property-type>java.lang.Long</config-property-type>
            </config-property>     
            
            <config-property>
                <description>{$display:"Connect Timeout",$description:"Timeout for connection"}</description>
                <config-property-name>ConnectTimeout</config-property-name>
                <config-property-type>java.lang.Long</config-property-type>
            </config-property> 
            
            <config-property>
                <description>{$display:"WSDL",$description:"WSDL file or URL for the web service",$advanced:"true"}</description>
                <config-property-name>Wsdl</config-property-name>
                <config-property-type>java.lang.String</config-property-type>
            </config-property>
                         
            <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
            <connectionfactory-impl-class>org.teiid.resource.spi.WrappedConnectionFactory</connectionfactory-impl-class>
            <connection-interface>javax.resource.cci.Connection</connection-interface>
            <connection-impl-class>org.teiid.resource.spi.WrappedConnection</connection-impl-class>

         </connection-definition>
         
         <transaction-support>NoTransaction</transaction-support>
        
        <authentication-mechanism>
            <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
            <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
        </authentication-mechanism>
        <reauthentication-support>false</reauthentication-support>
      </outbound-resourceadapter>
   </resourceadapter>
</connector>
