This discussion is archived
4 Replies Latest reply: Feb 7, 2013 10:00 PM by user366389 RSS

SOA calling a MS SQL table to insert data/

user366389 Newbie
Currently Being Moderated
I have configured an XA Driver to insert the data to the table on MS SQL Server. When i execute the Flow with a SOAP UI. I was able to insert the data the MS SQL table . But at the end the transaction is rolled back.

My Request is
<soapenv:Envelope xmlns:soapenv="" xmlns:mvn="">

Erros on SOAP UI are :

<env:Envelope xmlns:env="">
<faultstring>[FMWGEN][SQLServer JDBC Driver][SQLServer]Invalid object name 'dbo.SelfRegistration'.</faultstring>

From Managed server log the error is

Form weblogic server : -
Error committing transaction:; nested exception is: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.1.3.v20110304-r9073): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: weblogic.jdbc.sqlserverbase.ddc: [FMWGEN][SQLServer JDBC Driver][SQLServer]Invalid object name 'dbo.SelfRegistration'. Error Code: 208

The process is completed with out any error but why it is rolling abck the transaction at the end. The object table was existing in the database and i mapped to the table for inserting the data from receive input variable to invoke input variable. BPEL Instance executed it till the end but at the end the transaction is rolled back.

Venu Raja
  • 1. Re: SOA calling a MS SQL table to insert data/
    vladodias Guru
    Currently Being Moderated
    Invalid object name 'dbo.SelfRegistration'
    I'm assuming you can see a SelfRegistration table in your database... So, I guess dbo is not the right schema name...
  • 2. Re: SOA calling a MS SQL table to insert data/
    user366389 Newbie
    Currently Being Moderated
    No The table is in schema dbo ... i am using the jedveloper
    While creating a db adapter in reference service-> i select the schema name dbo adn then table self registration. based on that i was doing my mapping..

    <adapter-config name="FiebelService" adapter="Database Adapter" wsdlLocation="FiebelService.wsdl" xmlns="">

    <connection-factory location="eis/db/sql" UIConnectionName="generic JDBC" adapterRef=""/>
    <endpoint-interaction portType="FiebelService_ptt" operation="insert">
    <interaction-spec className="oracle.tip.adapter.db.DBWriteInteractionSpec">
    <property name="DescriptorName" value="FiebelService.Selfregistration"/>
    <property name="DmlType" value="insert"/>
    <property name="MappingsMetaDataURL" value="FiebelService-or-mappings.xml"/>
    <property name="DetectOmissions" value="true"/>
    <property name="GetActiveUnitOfWork" value="true"/>
    <property name="OutputCompletedXml" value="false"/>


    this is my fiebel service -mappings.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <object-persistence xmlns="" xmlns:xsd="" xmlns:eclipselink="" xmlns:xsi="" version="Eclipse Persistence Services - 2.1.3.v20110304-r9073">
    <class-mapping-descriptor xsi:type="object-relational-class-mapping-descriptor">
    <field table="SelfRegistration" name="SRC_Key" xsi:type="column"/>
    <query name="FiebelServiceSelect" xsi:type="read-all-query">
    <container xsi:type="list-container-policy">
    <attribute-mapping xsi:type="direct-mapping">
    <field table="SelfRegistration" name="SRC_Key" xsi:type="column"/>
    <attribute-mapping xsi:type="direct-mapping">
    <field table="SelfRegistration" name="SubscriberId" xsi:type="column"/>
    <attribute-mapping xsi:type="direct-mapping">
    <field table="SelfRegistration" name="Keyword" xsi:type="column"/>
    <attribute-mapping xsi:type="direct-mapping">
    <field table="SelfRegistration" name="CompletionDt" xsi:type="column"/>
    <attribute-mapping xsi:type="direct-mapping">
    <field table="SelfRegistration" name="ExpirationDt" xsi:type="column"/>
    <attribute-mapping xsi:type="direct-mapping">
    <field table="SelfRegistration" name="CreateDt" xsi:type="column"/>
    <attribute-mapping xsi:type="direct-mapping">
    <field table="SelfRegistration" name="CreateBy" xsi:type="column"/>
    <copying xsi:type="instantiation-copy-policy"/>
    <table name="dbo.SelfRegistration"/>
    <login xsi:type="database-login">

    i dont find any find any problem in execution.. i was able to execute the composite only at the end the transaction is rolled back..
  • 3. Re: SOA calling a MS SQL table to insert data/
    vladodias Guru
    Currently Being Moderated
    I would start looking for database triggers relating to this table...
  • 4. Re: SOA calling a MS SQL table to insert data/
    user366389 Newbie
    Currently Being Moderated
    Thanks i got the resolution. yes the object was not found since there is a difference in Database name .... but still the flow is executed in green colour and at the end it throws an exception as rolling back transaction.

    Solution: I had a one linux server on which the databases are installed.

    I have two application say x and y but i created only one XA Datasource to ms sql server since host name / ip address /usrname/pwd are same. i thought i can use same data source adn connecton name . But there is a difference in database name liek ABS , ABS_C.. when i create two data sources for two different connection pools for two data sources it was working fine.

    Venugopal SSSS Raja Patnaik


  • Correct Answers - 10 points
  • Helpful Answers - 5 points