WebSphere Adapter for JDBC
Service Component Architecture (SCA) import and export files and Web Services Description Language (WSDL) files are artifacts produced during the enterprise service discovery process.
Examples are provided below of an export file and an import file, plus a corresponding WSDL file.
<?xml version="1.0" encoding="UTF-8"?> <scdl:Export xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:_="http://JDBCEMD/inbound" xmlns:eis="http://www.ibm.com/xmlns/prod/websphere/scdl/eis/6.0.0" xmlns:scdl="http://www.ibm.com/xmlns/prod/websphere/scdl/6.0.0" xmlns:wsdl="http://www.ibm.com/xmlns/prod/websphere/scdl/wsdl/6.0.0" name="inbound/JDBCInboundInterface"> <interfaces> <interface xsi:type="wsdl:WSDLPortType" portType="_:JDBCInboundInterface"/> </interfaces> <esbBinding xsi:type="eis:EISExportBinding" dataBindingType="com.ibm.j2ca.extension.emd.runtime.WBIDataBindingImpl"> <resourceAdapter name="JDBCEMDApp.IBM JDBC Adapter" type="com.ibm.j2ca.jdbc.JDBCResourceAdapter"> <properties/> </resourceAdapter> <connection type="com.ibm.j2ca.jdbc.inbound.JDBCActivationSpec" selectorType="com.ibm.j2ca.extension.emd.runtime.WBIFunctionSelectorImpl"> <properties> <BONamespace>http://www.ibm.com/xmlns/prod/websphere/j2ca/jdbc</BONamespace> <jdbcDriverClass>COM.ibm.db2.jdbc.app.DB2Driver</jdbcDriverClass> <databaseURL>jdbc:db2:somedb<databaseURL> <password>abcdefg</password> <userName>db2admin</userName> </properties> </connection> <methodBinding method="createDb2adminCustomer" nativeMethod="emitCreateAfterImageDb2adminCustomer"/> <methodBinding method="updateDb2adminCustomer" nativeMethod="emitUpdateAfterImageDb2adminCustomer"/> <methodBinding method="deleteDb2adminCustomer" nativeMethod="emitDeleteAfterImageDb2adminCustomer"/> </esbBinding> </scdl:Export>
<?xml version="1.0" encoding="UTF-8"?> <scdl:Import xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:_="http://JDBCEMD/outbound" xmlns:eis="http://www.ibm.com/xmlns/prod/websphere/scdl/eis/6.0.0" xmlns:scdl="http://www.ibm.com/xmlns/prod/websphere/scdl/6.0.0" xmlns:wsdl="http://www.ibm.com/xmlns/prod/websphere/scdl/wsdl/6.0.0" name="outbound/JDBCOutboundInterface"> <interfaces> <interface xsi:type="wsdl:WSDLPortType" portType="_:JDBCOutboundInterface"/> </interfaces> <esbBinding xsi:type="eis:EISImportBinding" dataBindingType="com.ibm.j2ca.extension.emd.runtime.WBIDataBindingImpl"> <resourceAdapter name="JDBCEMDApp.IBM JDBC Adapter" type="com.ibm.j2ca.jdbc.JDBCResourceAdapter"> <properties/> </resourceAdapter> <connection type="com.ibm.j2ca.jdbc.JDBCManagedConnectionFactory" interactionType="com.ibm.j2ca.jdbc.JDBCInteractionSpec"> <properties> <databaseURL>jdbc:db2:somedb</databaseURL> <jdbcDriverClass>COM.ibm.db2.jdbc.app.DB2Driver</jdbcDriverClass> <password>abcdefg</password> <userName>db2admin</userName> </properties> </connection> <methodBinding method="createDb2adminCustomer"> <interaction> <properties> <functionName>Create</functionName> </properties> </interaction> </methodBinding> <methodBinding method="updateDb2adminCustomer"> <interaction> <properties> <functionName>Update</functionName> </properties> </interaction> </methodBinding> <methodBinding method="deleteDb2adminCustomer"> <interaction> <properties> <functionName>Delete</functionName> </properties> </interaction> </methodBinding> <methodBinding method="retrieveDb2adminCustomer"> <interaction> <properties> <functionName>Retrieve</functionName> </properties> </interaction> </methodBinding> <methodBinding method="retrieveallDb2adminCustomer"> <interaction> <properties> <functionName>RetrieveAll</functionName> </properties> </interaction> </methodBinding> <methodBinding method="applychangesDb2adminCustomer"> <interaction> <properties> <functionName>ApplyChanges</functionName> </properties> </interaction> </methodBinding> </esbBinding> </scdl:Import>
<?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions name="CUSTOMER" targetNamespace="http://test/j2c/jdbc/customer" xmlns:tns="http://test/j2c/jdbc/customer" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:datans="http://test/j2c/jdbc/customer"> <wsdl:types> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:import namespace="http://test/j2c/jdbc/customer" schemaLocation="CUSTOMER.xsd"> </xsd:import> </xsd:schema> </wsdl:types> <wsdl:message name="CUSTOMERRequest"> <wsdl:part name="request" element="datans:CUSTOMER"></wsdl:part> </wsdl:message> <wsdl:portType name="Customer"> <wsdl:operation name="updateCustomer"> <wsdl:input message="tns:CustomerRequest"></wsdl:input> <wsdl:output message="tns:CustomerRequest"></wsdl:output> </wsdl:operation> <wsdl:operation name="createCustomer"> <wsdl:input message="tns:CustomerRequest"></wsdl:input> <wsdl:output message="tns:CustomerRequest"></wsdl:output> </wsdl:operation> <wsdl:operation name="retrieveCustomer"> <wsdl:input message="tns:CustomerRequest"></wsdl:input> <wsdl:output message="tns:CustomerRequest"></wsdl:output> </wsdl:operation> </wsdl:portType> </wsdl:definitions>
Last updated: Tue 12 Dec 2006 03:32:39
(c) Copyright IBM Corporation 2005, 2006.
This information center is powered by Eclipse technology (http://www.eclipse.org)