Thursday, October 13, 2011

Modifying auditLevel in SOA 11g code

It is possible to configure the auditLevel within your SOA 11g code by adding a single line within composite.xml.

By doing so, when the code is deployed, it will assume that auditLevel. This can be overriden manually at any time via the EM console.
<?xml version="1.0" encoding="UTF-8"?>
<composite name="QueryCustomer" applicationName="Test" mode="active" revision="1.0" state="on" xmlns="http://xmlns.oracle.com/sca/1.0" xmlns:ui="http://xmlns.oracle.com/soa/designer/">
  <import location="http://soadev:8001/soa-infra/Customer.wsdl" namespace="http://xmlns.oracle.com/EnterpriseServices/Core/Customer/V2" importType="wsdl"/>
  <import namespace="http://ns.ipnweb.com/Customer"
          location="QueryCustomer.wsdl"
          importType="wsdl"/>
  <service ui:wsdlLocation="QueryCustomer.wsdl" name="QueryCustomer_ep">
    <interface.wsdl interface="http://ns.ipnweb.com/Order#wsdl.interface(ICustomerService)"/>
    <binding.ws port="http://ns.ipnweb.com/Order#wsdl.endpoint(ICustomerService/ICustomerService_pt)" location="oramds:/apps/AIAMetaData/wsdl/QueryCustomer.wsdl"/>
  </service>
  <property name="oracle.composite.faultPolicyFile">oramds:/apps/AIAMetaData/faultPolicies/fault-policies.xml</property>
  <property name="oracle.composite.faultPolicyFile">oramds:/apps/AIAMetaData/faultPolicies/fault-bindings.xml</property>
  <property name="auditLevel" many="false">Inherit</property>
  <component name="QueryCustomer">
    <implementation.mediator src="QueryCustomer.mplan"/>
    <property name="passThroughHeader">true</property>
  </component>
  .
  .
  .
</composite>

Valid values for auditLevel include:
  • Inherit
  • Off
  • Production
  • Development

References:

Ahmed Aboulnaga

1 comment:

sabapathy said...

Hi,

Is it possible to access that composite level "auditLevel" property in BPEL process ?

Because I do want to set composite instance title based on auditLevel set in EM console.

Thanks,
S.Sabapathy