High Availbility

OS & Virtualization

Friday, July 04, 2008

How to create PLSQL webservice

How to create PLSQL webservice

Required Software

Generating webservice ear

  1. Create a config.xml file
    class="com.evermind.sql.DriverManagerDataSource" name="OracleDS" location="jdbc/OracleCoreDS" xa-location="jdbc/xa/OracleXADS" ejb-location="jdbc/OracleDS" connection-driver="oracle.jdbc.driver.OracleDriver" username="store"
    password="store"
    url="jdbc:oracle:thin:@localhost:1521:ORCL" inactivity-timeout="30"/>

  2. Run the following command
    set JAVA_HOME=c:\j2sdk1.4.2_06set
    ORACLE_HOME=c:\oracle\oc4j
    set CLASSPATH=.;%ORACLE_HOME%\webservices\lib\wsdl.jar;%ORACLE_HOME%\lib\xmlparserv2.jar;%ORACLE_HOME%\soap\lib\soap.jar
    call %JAVA_HOME%\bin\java -jar %ORACLE_HOME%\webservices\lib\WebServicesAssembler.jar -config .\config.xml