ORA-30937: No schema definition for

Here are the steps I followed to load the xml
DBMS_XMLSCHEMA.REGISTERSCHEMA(
SCHEMAURL => 'security.xsd',
SCHEMADOC => BFILENAME('XML_DIR', 'security.xsd')
LOCAL => TRUE
CREATE TABLE TMP_XML_TABLES
xml_document XMLType
XMLType COLUMN xml_document
XMLSchema "security.xsd"
ELEMENT "security"
INSERT INTO TMP_XML_TABLES
VALUES
xmltype
BFILENAME('XML_CLOB_DIR', 'sec.xml'),
nls_charset_id('AL32UTF8')
I am getting below error.
ORA-30937: No schema definition for 'fido_flag' (namespace '##local') in parent '/security/security_
ORA-06512: at "SYS.XMLTYPE", line 295
ORA-06512: at line 1
Below is the XSD and XML file. Please let me know what is wrong with it.
security.xsd
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v2004 rel. 4 U (http://www.xmlspy.com) by Cary Liu (Cary Liu) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
     <xs:element name="security">
          <xs:complexType>
               <xs:sequence>
                    <xs:element ref="security_row" minOccurs="0" maxOccurs="unbounded"/>
                    <xs:element ref="variable_rate_row" minOccurs="0" maxOccurs="unbounded"/>
               </xs:sequence>
               <xs:attribute name="security_count" type="xs:long" use="optional"/>
               <xs:attribute name="variable_rate_count" type="xs:long" use="optional"/>
          </xs:complexType>
     </xs:element>
     <xs:element name="security_row">
          <xs:complexType>
               <xs:all>
                    <xs:element ref="security_id"/>
                    <xs:element ref="primary_asset_id"/>
                    <xs:element ref="delay_days"/>
                    <xs:element ref="arm_indicator"/>
                    <xs:element ref="camra_abs_und_coll"/>
                    <xs:element ref="camra_abs_und_coll_cpn"/>
                    <xs:element ref="initial_principal_pay_date"/>
                    <xs:element ref="final_principal_pay_date"/>
                    <xs:element ref="mtg_term"/>
                    <xs:element ref="original_face"/>
                    <xs:element ref="pool_number"/>
                    <xs:element ref="principal_pay_frequency"/>
                    <xs:element ref="pay_down_date"/>
                    <xs:element ref="principal_pay_bus_day_rule"/>
                    <xs:element ref="seasoned_mbs"/>
                    <xs:element ref="tba_stlmt_month"/>
                    <xs:element ref="accrual_flag"/>
                    <xs:element ref="accrual_rule"/>
                    <xs:element ref="base_payment_date"/>
                    <xs:element ref="day_count"/>
                    <xs:element ref="ex_interest_bond_code"/>
                    <xs:element ref="ex_days"/>
                    <xs:element ref="ex_div_date"/>
                    <xs:element ref="last_coupon_date"/>
                    <xs:element ref="for_bond_security_type"/>
                    <xs:element ref="dated_date"/>
                    <xs:element ref="issue_date"/>
                    <xs:element ref="first_coupon_date"/>
                    <xs:element ref="second_coupon_date"/>
                    <xs:element ref="mat_date"/>
                    <xs:element ref="interest_accrual_method"/>
                    <xs:element ref="odd_first_coupon_date"/>
                    <xs:element ref="odd_last_coupon_date"/>
                    <xs:element ref="payment_eom_rule"/>
                    <xs:element ref="pay_frequency"/>
                    <xs:element ref="pay_business_day_rule"/>
                    <xs:element ref="yield_day_count"/>
                    <xs:element ref="zero_coupon_type"/>
                    <xs:element ref="analyst"/>
                    <xs:element ref="analyst_recomm"/>
                    <xs:element ref="approval_flag"/>
                    <xs:element ref="camra_sec_type"/>
                    <xs:element ref="class"/>
                    <xs:element ref="comments"/>
                    <xs:element ref="holding_style"/>
                    <xs:element ref="issued_capital"/>
                    <xs:element ref="issued_capital_currency"/>
                    <xs:element ref="min_denomination"/>
                    <xs:element ref="price_multiplier"/>
                    <xs:element ref="pricing_identifier"/>
                    <xs:element ref="quantity_issued"/>
                    <xs:element ref="shares_outstanding"/>
                    <xs:element ref="quantity_type"/>
                    <xs:element ref="redemption_value"/>
                    <xs:element ref="scb_industry"/>
                    <xs:element ref="issue_desc1"/>
                    <xs:element ref="issue_desc2"/>
                    <xs:element ref="issue_desc3"/>
                    <xs:element ref="issue_short_name"/>
                    <xs:element ref="trading_lot_size"/>
                    <xs:element ref="unit_factor"/>
                    <xs:element ref="camra_exercise_date"/>
                    <xs:element ref="camra_expiration_date"/>
                    <xs:element ref="alliance_sector"/>
                    <xs:element ref="alliance_industry"/>
                    <xs:element ref="apace_security_type"/>
                    <xs:element ref="camra_gl_type"/>
                    <xs:element ref="emerg_mkt_ind"/>
                    <xs:element ref="form_13f_flag"/>
                    <xs:element ref="instrument_class"/>
                    <xs:element ref="issue_type"/>
                    <xs:element ref="mortgage_sector"/>
                    <xs:element ref="naic_code"/>
                    <xs:element ref="performance_segment"/>
                    <xs:element ref="program_type"/>
                    <xs:element ref="camra_sic_code2"/>
                    <xs:element ref="camra_sched_d_group"/>
                    <xs:element ref="camra_sched_d_state"/>
                    <xs:element ref="security_form"/>
                    <xs:element ref="security_type_distrib"/>
                    <xs:element ref="camra_sic_code"/>
                    <xs:element ref="structured_note_flag"/>
                    <xs:element ref="underlying_category"/>
                    <xs:element ref="primary_asset_id_type"/>
                    <xs:element ref="superticker"/>
                    <xs:element ref="default_status"/>
                    <xs:element ref="default_date"/>
                    <xs:element ref="accrue_in_default_ind"/>
                    <xs:element ref="ctd_bond"/>
                    <xs:element ref="contract_size"/>
                    <xs:element ref="derivative_type"/>
                    <xs:element ref="delivery_method"/>
                    <xs:element ref="conversion_factor"/>
                    <xs:element ref="flex_option_ind"/>
                    <xs:element ref="leap_option_ind"/>
                    <xs:element ref="orig_strike_price"/>
                    <xs:element ref="otc_flag"/>
                    <xs:element ref="part_paid_percent"/>
                    <xs:element ref="strike_price"/>
                    <xs:element ref="put_call_flag"/>
                    <xs:element ref="strike_price_type"/>
                    <xs:element ref="pay_currency"/>
                    <xs:element ref="rec_currency"/>
                    <xs:element ref="premium_amount"/>
                    <xs:element ref="warrant_style"/>
                    <xs:element ref="pay_status"/>
                    <xs:element ref="tick_amount"/>
                    <xs:element ref="right_warrant_option_type"/>
                    <xs:element ref="underlying_cusip"/>
                    <xs:element ref="var_margin_rule"/>
                    <xs:element ref="nominal_annual_income"/>
                    <xs:element ref="dividend_frequency"/>
                    <xs:element ref="dividend_reinvestment_ind"/>
                    <xs:element ref="dr_sponsoring"/>
                    <xs:element ref="dr_sponsor"/>
                    <xs:element ref="claim_type"/>
                    <xs:element ref="dated_date_cpi"/>
                    <xs:element ref="when_issued_ind"/>
                    <xs:element ref="series"/>
                    <xs:element ref="tranche"/>
                    <xs:element ref="guarantee_type"/>
                    <xs:element ref="deep_discount_ind"/>
                    <xs:element ref="perpetual_flag"/>
                    <xs:element ref="maturity_override"/>
                    <xs:element ref="camra_index_desc"/>
                    <xs:element ref="camra_index_spread"/>
                    <xs:element ref="coupon"/>
                    <xs:element ref="rate_benchmark"/>
                    <xs:element ref="rate_multiplier"/>
                    <xs:element ref="spread_to_benchmark"/>
                    <xs:element ref="rate_reset_frequency"/>
                    <xs:element ref="rate_base_reset_date"/>
                    <xs:element ref="reset_lag_days"/>
                    <xs:element ref="reset_lockout_days"/>
                    <xs:element ref="next_reset_date"/>
                    <xs:element ref="rate_calculate_switch"/>
                    <xs:element ref="rate_reset_bus_day_rule"/>
                    <xs:element ref="rate_reset_eom_rule"/>
                    <xs:element ref="rate_type"/>
                    <xs:element ref="mutual_fund_sponsor"/>
                    <xs:element ref="regulated_flag"/>
                    <xs:element ref="tia_1961_flag"/>
                    <xs:element ref="accumulation_income_flag"/>
                    <xs:element ref="fsa_indicator"/>
                    <xs:element ref="income_dist_policy"/>
                    <xs:element ref="mutual_fund_charge_type"/>
                    <xs:element ref="holdings_flag"/>
                    <xs:element ref="issuer_type"/>
                    <xs:element ref="issuer_id"/>
                    <xs:element ref="parent_issuer_id"/>
                    <xs:element ref="country"/>
                    <xs:element ref="currency"/>
                    <xs:element ref="country_of_origin"/>
                    <xs:element ref="risk_country"/>
                    <xs:element ref="currency_of_earnings"/>
                    <xs:element ref="currency_of_income"/>
                    <xs:element ref="currency_of_trade"/>
                    <xs:element ref="principal_currency"/>
                    <xs:element ref="exchange"/>
                    <xs:element ref="state_code"/>
                    <xs:element ref="muni_insurance"/>
                    <xs:element ref="conduit"/>
                    <xs:element ref="muni_note_type"/>
                    <xs:element ref="muni_issuer"/>
                    <xs:element ref="obligation_type"/>
                    <xs:element ref="oes_next_call_date"/>
                    <xs:element ref="offering_yield"/>
                    <xs:element ref="remarketing_agent"/>
                    <xs:element ref="tax_exempt_region"/>
                    <xs:element ref="fed_wire"/>
                    <xs:element ref="oid_flag"/>
                    <xs:element ref="oid_number"/>
                    <xs:element ref="oi_price"/>
                    <xs:element ref="camra_moody_sector"/>
                    <xs:element ref="restricted"/>
                    <xs:element ref="camra_class_144"/>
                    <xs:element ref="foreign_restriction_ind"/>
                    <xs:element ref="foreign_restriction_req"/>
                    <xs:element ref="sec_144a"/>
                    <xs:element ref="reg_s"/>
                    <xs:element ref="prvt_place_ind"/>
                    <xs:element ref="liquid_flag"/>
                    <xs:element ref="call_protection_period"/>
                    <xs:element ref="call_protection_type"/>
                    <xs:element ref="camra_make_whole_ind"/>
                    <xs:element ref="camra_conversion_price"/>
                    <xs:element ref="convertible_flag"/>
                    <xs:element ref="nra_tax_code"/>
                    <xs:element ref="tax_relief_at_source_ind"/>
                    <xs:element ref="tax_withholding_code"/>
                    <xs:element ref="tax_status"/>
                    <xs:element ref="voting_rights"/>
                    <xs:element ref="votes_per_share"/>
                    <xs:element ref="cum_voting_flag"/>
                    <xs:element ref="coupon_cap"/>
                    <xs:element ref="coupon_floor"/>
                    <xs:element ref="cross_currency_country"/>
                    <xs:element ref="cross_currency_fwd_rate"/>
                    <xs:element ref="cross_rate"/>
                    <xs:element ref="fwd_base_rate"/>
                    <xs:element ref="fwd_rate"/>
                    <xs:element ref="fwd_reset_date"/>
                    <xs:element ref="spot_base_rate"/>
                    <xs:element ref="spot_cross_rate"/>
                    <xs:element ref="fwd_point_difference"/>
                    <xs:element ref="fwd_broker_code"/>
                    <xs:element ref="fwd_side"/>
                    <xs:element ref="redemption_currency"/>
                    <xs:element ref="redenomination_date"/>
                    <xs:element ref="redenomination_flag"/>
                    <xs:element ref="amt_flag"/>
                    <xs:element ref="orig_entrydate"/>
                    <xs:element ref="orig_enteredby"/>
                    <xs:element ref="last_entrydate"/>
                    <xs:element ref="last_enteredby"/>
                    <xs:element ref="credit_family_id"/>
                    <xs:element ref="cusip"/>
                    <xs:element ref="isin"/>
                    <xs:element ref="sedol"/>
                    <xs:element ref="ticker"/>
                    <xs:element ref="apace_accrual_type"/>
                    <xs:element ref="capital_income_flag"/>
                    <xs:element ref="wal_date"/>
                    <xs:element ref="cfb_level_pay"/>
                    <xs:element ref="pending_corp_action"/>
                    <xs:element ref="pending_proxy_vote"/>
                    <xs:element ref="pms_live_indicator"/>
                    <xs:element ref="pms_price_type"/>
                    <xs:element ref="spark_flag"/>
                    <xs:element ref="whittingdale_debt_cat"/>
                    <xs:element ref="whittingdale_rating"/>
                    <xs:element ref="whittingdale_code"/>
                    <xs:element ref="expiration_date"/>
                    <xs:element ref="maturity_price"/>
                    <xs:element ref="commencement_date"/>
                    <xs:element ref="declared_payment_date"/>
                    <xs:element ref="drawer"/>
                    <xs:element ref="fv_volatility"/>
                    <xs:element ref="mv_volatility"/>
                    <xs:element ref="settle_period"/>
                    <xs:element ref="trading_margin"/>
                    <xs:element ref="compound_frequency"/>
                    <xs:element ref="coupon_rounding"/>
                    <xs:element ref="duration_to_reset"/>
                    <xs:element ref="float_rate_index_location"/>
                    <xs:element ref="periodic_basis_point_cap"/>
                    <xs:element ref="weighted_average_coupon"/>
                    <xs:element ref="whittingdale_issuer"/>
                    <xs:element ref="settlement_location"/>
                    <xs:element ref="attachment_lower"/>
                    <xs:element ref="attachment_upper"/>
                    <xs:element ref="exposure_type"/>
                    <xs:element ref="nth2default"/>
                    <xs:element ref="restruct_doc_clause"/>
                    <xs:element ref="swap_counterparty"/>
                    <xs:element ref="swaption_issue_date"/>
                    <xs:element ref="swaption_mat_date"/>
                    <xs:element ref="apace_call_price"/>
                    <xs:element ref="apace_call_date"/>
                    <xs:element ref="apace_callable_flag"/>
                    <xs:element ref="apace_put_price"/>
                    <xs:element ref="apace_put_date"/>
                    <xs:element ref="apace_putable_flag"/>
                    <xs:element ref="apace_day_count"/>
                    <xs:element ref="apace_io_ind"/>
                    <xs:element ref="apace_pass_thru_flag"/>
                    <xs:element ref="apace_price_method"/>
                    <xs:element ref="apace_price_source"/>
                    <xs:element ref="apace_depository_type"/>
                    <xs:element ref="apace_conv_ratio"/>
                    <xs:element ref="apace_floating_rate"/>
                    <xs:element ref="apace_frn_reset_code"/>
                    <xs:element ref="apace_frn_reset_date"/>
                    <xs:element ref="apace_step_conversion_date"/>
                    <xs:element ref="apace_step_conversion_rate"/>
                    <xs:element ref="apace_accrual_date_code"/>
                    <xs:element ref="apace_payment_date_code"/>
                    <xs:element ref="apace_payment_cycle_code"/>
                    <xs:element ref="apace_par_call_date"/>
                    <xs:element ref="apace_prerefund_price"/>
                    <xs:element ref="apace_prerefund_date"/>
                    <xs:element ref="apace_sink_fund_flag"/>
                    <xs:element ref="make_whole_call_flag"/>
                    <xs:element ref="fido_security_type_jvst"/>
                    <xs:element ref="fido_security_type_jstp"/>
                    <xs:element ref="fido_issuer_id"/>
                    <xs:element ref="fido_guarantor_id"/>
                    <xs:element ref="fido_name"/>
                    <xs:element ref="draft_id"/>
                    <xs:element ref="bbsw_at_last_reset"/>
                    <xs:element ref="delta"/>
                    <xs:element ref="price"/>
                    <xs:element ref="benchmark_index_sec"/>
                    <xs:element ref="index_multiplier"/>
                    <xs:element ref="index_spread"/>
                    <xs:element ref="index_link_location"/>
                    <xs:element ref="index_lag"/>
                    <xs:element ref="benchmark_rounding"/>
                    <xs:element ref="index_link_bus_day_rule"/>
                    <xs:element ref="calculation_type"/>
                    <xs:element ref="start_day_of_month"/>
                    <xs:element ref="pms_issue"/>
                    <xs:element ref="pms_name"/>
                    <xs:element ref="camra_cusip"/>
                    <xs:element ref="infoexpress_id"/>
                    <xs:element ref="issuer_desc"/>
                    <xs:element ref="parent_issuer_desc"/>
                    <xs:element ref="lead_mgr"/>
                    <xs:element ref="co_mgr"/>
                    <xs:element ref="superticker_desc"/>
                    <xs:element ref="fmc_id"/>
                    <xs:element ref="spintl_id"/>
                    <xs:element ref="tranche_type"/>
                    <xs:element ref="collateral_type"/>
                    <xs:element ref="ab_fund_desc"/>
                    <xs:element ref="adp_number"/>
                    <xs:element ref="underlying_account_id"/>
               </xs:all>
          </xs:complexType>
     </xs:element>
     <xs:element name="variable_rate_row">
          <xs:complexType>
               <xs:all>
                    <xs:element ref="security_id"/>
                    <xs:element ref="primary_asset_id"/>
                    <xs:element ref="sedol"/>
                    <xs:element ref="rate_type"/>
                    <xs:element ref="coupon"/>
                    <xs:element ref="effective_date"/>
                    <xs:element ref="delete_flag"/>
                    <xs:element ref="update_flag"/>
                    <xs:element ref="last_enteredby"/>
                    <xs:element ref="last_entrydate"/>
                    <xs:element ref="pms_live_indicator"/>
               </xs:all>
          </xs:complexType>
     </xs:element>
     <xs:element name="security_id" type="xs:string"/>
     <xs:element name="primary_asset_id" type="xs:string"/>
     <xs:element name="delay_days" type="xs:double" nillable="true"/>
     <xs:element name="arm_indicator" type="xs:string" nillable="true"/>
     <xs:element name="camra_abs_und_coll" type="xs:string" nillable="true"/>
     <xs:element name="camra_abs_und_coll_cpn" type="xs:double" nillable="true"/>
     <xs:element name="initial_principal_pay_date" type="xs:date" nillable="true"/>
     <xs:element name="final_principal_pay_date" type="xs:date" nillable="true"/>
     <xs:element name="mtg_term" type="xs:int" nillable="true"/>
     <xs:element name="original_face" type="xs:double" nillable="true"/>
     <xs:element name="pool_number" type="xs:string" nillable="true"/>
     <xs:element name="principal_pay_frequency" type="xs:string" nillable="true"/>
     <xs:element name="pay_down_date" type="xs:string" nillable="true"/>
     <xs:element name="principal_pay_bus_day_rule" type="xs:string" nillable="true"/>
     <xs:element name="seasoned_mbs" type="xs:string" nillable="true"/>
     <xs:element name="tba_stlmt_month" type="xs:string" nillable="true"/>
     <xs:element name="accrual_flag" type="xs:string" nillable="true"/>
     <xs:element name="accrual_rule" type="xs:string" nillable="true"/>
     <xs:element name="base_payment_date" type="xs:string" nillable="true"/>
     <xs:element name="day_count" type="xs:string" nillable="true"/>
     <xs:element name="ex_interest_bond_code" type="xs:string" nillable="true"/>
     <xs:element name="ex_days" type="xs:int" nillable="true"/>
     <xs:element name="ex_div_date" type="xs:date" nillable="true"/>
     <xs:element name="last_coupon_date" type="xs:date" nillable="true"/>
     <xs:element name="for_bond_security_type" type="xs:string" nillable="true"/>
     <xs:element name="dated_date" type="xs:date" nillable="true"/>
     <xs:element name="issue_date" type="xs:date" nillable="true"/>
     <xs:element name="first_coupon_date" type="xs:date" nillable="true"/>
     <xs:element name="second_coupon_date" type="xs:date" nillable="true"/>
     <xs:element name="mat_date" type="xs:date" nillable="true"/>
     <xs:element name="interest_accrual_method" type="xs:string" nillable="true"/>
     <xs:element name="odd_first_coupon_date" type="xs:date" nillable="true"/>
     <xs:element name="odd_last_coupon_date" type="xs:date" nillable="true"/>
     <xs:element name="payment_eom_rule" type="xs:string" nillable="true"/>
     <xs:element name="pay_frequency" type="xs:string" nillable="true"/>
     <xs:element name="pay_business_day_rule" type="xs:string" nillable="true"/>
     <xs:element name="yield_day_count" type="xs:string" nillable="true"/>
     <xs:element name="zero_coupon_type" type="xs:string" nillable="true"/>
     <xs:element name="analyst" type="xs:string" nillable="true"/>
     <xs:element name="analyst_recomm" type="xs:string" nillable="true"/>
     <xs:element name="approval_flag" type="xs:string" nillable="true"/>
     <xs:element name="camra_sec_type" type="xs:string" nillable="true"/>
     <xs:element name="class" type="xs:string" nillable="true"/>
     <xs:element name="comments" type="xs:string" nillable="true"/>
     <xs:element name="holding_style" type="xs:string" nillable="true"/>
     <xs:element name="issued_capital" type="xs:double" nillable="true"/>
     <xs:element name="issued_capital_currency" type="xs:string" nillable="true"/>
     <xs:element name="min_denomination" type="xs:double" nillable="true"/>
     <xs:element name="price_multiplier" type="xs:double" nillable="true"/>
     <xs:element name="pricing_identifier" type="xs:string" nillable="true"/>
     <xs:element name="quantity_issued" type="xs:double" nillable="true"/>
     <xs:element name="shares_outstanding" type="xs:decimal" nillable="true"/>
     <xs:element name="quantity_type" type="xs:string" nillable="true"/>
     <xs:element name="redemption_value" type="xs:double" nillable="true"/>
     <xs:element name="scb_industry" type="xs:string" nillable="true"/>
     <xs:element name="issue_desc1" type="xs:string" nillable="true"/>
     <xs:element name="issue_desc2" type="xs:string" nillable="true"/>
     <xs:element name="issue_desc3" type="xs:string" nillable="true"/>
     <xs:element name="issue_short_name" type="xs:string" nillable="true"/>
     <xs:element name="trading_lot_size" type="xs:double" nillable="true"/>
     <xs:element name="unit_factor" type="xs:double" nillable="true"/>
     <xs:element name="camra_exercise_date" type="xs:date" nillable="true"/>
     <xs:element name="camra_expiration_date" type="xs:date" nillable="true"/>
     <xs:element name="alliance_sector" type="xs:string" nillable="true"/>
     <xs:element name="alliance_industry" type="xs:string" nillable="true"/>
     <xs:element name="apace_security_type" type="xs:string" nillable="true"/>
     <xs:element name="camra_gl_type" type="xs:string" nillable="true"/>
     <xs:element name="emerg_mkt_ind" type="xs:string" nillable="true"/>
     <xs:element name="form_13f_flag" type="xs:string" nillable="true"/>
     <xs:element name="instrument_class" type="xs:string"/>
     <xs:element name="issue_type" type="xs:string"/>
     <xs:element name="mortgage_sector" type="xs:string" nillable="true"/>
     <xs:element name="naic_code" type="xs:string" nillable="true"/>
     <xs:element name="performance_segment" type="xs:string" nillable="true"/>
     <xs:element name="program_type" type="xs:string" nillable="true"/>
     <xs:element name="camra_sic_code2" type="xs:string" nillable="true"/>
     <xs:element name="camra_sched_d_group" type="xs:string" nillable="true"/>
     <xs:element name="camra_sched_d_state" type="xs:string" nillable="true"/>
     <xs:element name="security_form" type="xs:string" nillable="true"/>
     <xs:element name="security_type_distrib" type="xs:string" nillable="true"/>
     <xs:element name="camra_sic_code" type="xs:string" nillable="true"/>
     <xs:element name="structured_note_flag" type="xs:string" nillable="true"/>
     <xs:element name="underlying_category" type="xs:string" nillable="true"/>
     <xs:element name="primary_asset_id_type" type="xs:string"/>
     <xs:element name="superticker" type="xs:string" nillable="true"/>
     <xs:element name="default_status" type="xs:string" nillable="true"/>
     <xs:element name="default_date" type="xs:date" nillable="true"/>
     <xs:element name="accrue_in_default_ind" type="xs:string" nillable="true"/>
     <xs:element name="ctd_bond" type="xs:string" nillable="true"/>
     <xs:element name="contract_size" type="xs:double" nillable="true"/>
     <xs:element name="derivative_type" type="xs:string" nillable="true"/>
     <xs:element name="delivery_method" type="xs:string" nillable="true"/>
     <xs:element name="conversion_factor" type="xs:double" nillable="true"/>
     <xs:element name="flex_option_ind" type="xs:string" nillable="true"/>
     <xs:element name="leap_option_ind" type="xs:string" nillable="true"/>
     <xs:element name="orig_strike_price" type="xs:double" nillable="true"/>
     <xs:element name="otc_flag" type="xs:string" nillable="true"/>
     <xs:element name="part_paid_percent" type="xs:double" nillable="true"/>
     <xs:element name="strike_price" type="xs:double" nillable="true"/>
     <xs:element name="put_call_flag" type="xs:string" nillable="true"/>
     <xs:element name="strike_price_type" type="xs:string" nillable="true"/>
     <xs:element name="pay_currency" type="xs:string" nillable="true"/>
     <xs:element name="rec_currency" type="xs:string" nillable="true"/>
     <xs:element name="premium_amount" type="xs:double" nillable="true"/>
     <xs:element name="warrant_style" type="xs:string" nillable="true"/>
     <xs:element name="pay_status" type="xs:string" nillable="true"/>
     <xs:element name="tick_amount" type="xs:double" nillable="true"/>
     <xs:element name="right_warrant_option_type" type="xs:string" nillable="true"/>
     <xs:element name="underlying_cusip" type="xs:string" nillable="true"/>
     <xs:element name="var_margin_rule" type="xs:int" nillable="true"/>
     <xs:element name="nominal_annual_income" type="xs:double" nillable="true"/>
     <xs:element name="dividend_frequency" type="xs:string" nillable="true"/>
     <xs:element name="dividend_reinvestment_ind" type="xs:string" nillable="true"/>
     <xs:element name="dr_sponsoring" type="xs:string" nillable="true"/>
     <xs:element name="dr_sponsor" type="xs:string" nillable="true"/>
     <xs:element name="claim_type" type="xs:string" nillable="true"/>
     <xs:element name="dated_date_cpi" type="xs:double" nillable="true"/>
     <xs:element name="when_issued_ind" type="xs:string" nillable="true"/>
     <xs:element name="series" type="xs:string" nillable="true"/>
     <xs:element name="tranche" type="xs:string" nillable="true"/>
     <xs:element name="guarantee_type" type="xs:string" nillable="true"/>
     <xs:element name="deep_discount_ind" type="xs:string" nillable="true"/>
     <xs:element name="perpetual_flag" type="xs:string" nillable="true"/>
     <xs:element name="maturity_override" type="xs:string" nillable="true"/>
     <xs:element name="camra_index_desc" type="xs:string" nillable="true"/>
     <xs:element name="camra_index_spread" type="xs:double" nillable="true"/>
     <xs:element name="coupon" type="xs:double" nillable="true"/>
     <xs:element name="rate_benchmark" type="xs:string" nillable="true"/>
     <xs:element name="rate_multiplier" type="xs:double" nillable="true"/>
     <xs:element name="spread_to_benchmark" type="xs:double" nillable="true"/>
     <xs:element name="rate_reset_frequency" type="xs:string" nillable="true"/>
     <xs:element name="rate_base_reset_date" type="xs:date" nillable="true"/>
     <xs:element name="reset_lag_days" type="xs:double" nillable="true"/>
     <xs:element name="reset_lockout_days" type="xs:double" nillable="true"/>
     <xs:element name="next_reset_date" type="xs:date" nillable="true"/>
     <xs:element name="rate_calculate_switch" type="xs:string" nillable="true"/>
     <xs:element name="rate_reset_bus_day_rule" type="xs:string" nillable="true"/>
     <xs:element name="rate_reset_eom_rule" type="xs:string" nillable="true"/>
     <xs:element name="rate_type" type="xs:string" nillable="true"/>
     <xs:element name="mutual_fund_sponsor" type="xs:string" nillable="true"/>
     <xs:element name="regulated_flag" type="xs:string" nillable="true"/>
     <xs:element name="tia_1961_flag" type="xs:string" nillable="true"/>
     <xs:element name="accumulation_income_flag" type="xs:string" nillable="true"/>
     <xs:element name="fsa_indicator" type="xs:string" nillable="true"/>
     <xs:element name="income_dist_policy" type="xs:string" nillable="true"/>
     <xs:element name="mutual_fund_charge_type" type="xs:string" nillable="true"/>
     <xs:element name="holdings_flag" type="xs:string" nillable="true"/>
     <xs:element name="issuer_type" type="xs:string" nillable="true"/>
     <xs:element name="issuer_id" type="xs:string" nillable="true"/>
     <xs:element name="parent_issuer_id" type="xs:string" nillable="true"/>
     <xs:element name="country" type="xs:string" nillable="true"/>
     <xs:element name="currency" type="xs:string" nillable="true"/>
     <xs:element name="country_of_origin" type="xs:string" nillable="true"/>
     <xs:element name="risk_country" type="xs:string" nillable="true"/>
     <xs:element name="currency_of_earnings" type="xs:string" nillable="true"/>
     <xs:element name="currency_of_income" type="xs:string" nillable="true"/>
     <xs:element name="currency_of_trade" type="xs:string" nillable="true"/>
     <xs:element name="principal_currency" type="xs:string" nillable="true"/>
     <xs:element name="exchange" type="xs:string" nillable="true"/>
     <xs:element name="state_code" type="xs:string" nillable="true"/>
     <xs:element name="muni_insurance" type="xs:string" nillable="true"/>
     <xs:element name="conduit" type="xs:string" nillable="true"/>
     <xs:element name="muni_note_type" type="xs:string" nillable="true"/>
     <xs:element name="muni_issuer" type="xs:string" nillable="true"/>
     <xs:element name="obligation_type" type="xs:string" nillable="true"/>
     <xs:element name="oes_next_call_date" type="xs:date" nillable="true"/>
     <xs:element name="offering_yield" type="xs:double" nillable="true"/>
     <xs:element name="remarketing_agent" type="xs:string" nillable="true"/>
     <xs:element name="tax_exempt_region" type="xs:string" nillable="true"/>
     <xs:element name="fed_wire" type="xs:string" nillable="true"/>
     <xs:element name="oid_flag" type="xs:string" nillable="true"/>
     <xs:element name="oid_number" type="xs:int" nillable="true"/>
     <xs:element name="oi_price" type="xs:double" nillable="true"/>
     <xs:element name="camra_moody_sector" type="xs:string" nillable="true"/>
     <xs:element name="restricted" type="xs:string" nillable="true"/>
     <xs:element name="camra_class_144" type="xs:string" nillable="true"/>
     <xs:element name="foreign_restriction_ind" type="xs:string" nillable="true"/>
     <xs:element name="foreign_restriction_req" type="xs:double" nillable="true"/>
     <xs:element name="sec_144a" type="xs:string" nillable="true"/>
     <xs:element name="reg_s" type="xs:string" nillable="true"/>
     <xs:element name="prvt_place_ind" type="xs:string" nillable="true"/>
     <xs:element name="liquid_flag" type="xs:string" nillable="true"/>
     <xs:element name="call_protection_period" type="xs:int" nillable="true"/>
     <xs:element name="call_protection_type" type="xs:string" nillable="true"/>
     <xs:element name="camra_make_whole_ind" type="xs:string" nillable="true"/>
     <xs:element name="camra_conversion_price" type="xs:double" nillable="true"/>
     <xs:element name="convertible_flag" type="xs:string" nillable="true"/>
     <xs:element name="nra_tax_code" type="xs:string" nillable="true"/>
     <xs:element name="tax_relief_at_source_ind" type="xs:string" nillable="true"/>
     <xs:element name="tax_withholding_code" type="xs:string" nillable="true"/>
     <xs:element name="tax_status" type="xs:string" nillable="true"/>
     <xs:element name="voting_rights" type="xs:string" nillable="true"/>
     <xs:element name="votes_per_share" type="xs:int" nillable="true"/>
     <xs:element name="cum_voting_flag" type="xs:string" nillable="true"/>
     <xs:element name="coupon_cap" type="xs:double" nillable="true"/>
     <xs:element name="coupon_floor" type="xs:double" nillable="true"/>
     <xs:element name="cross_currency_country" type="xs:string" nillable="true"/>
     <xs:element name="cross_currency_fwd_rate" type="xs:double" nillable="true"/>
     <xs:element name="cross_rate" type="xs:double" nillable="true"/>
     <xs:element name="fwd_base_rate" type="xs:double" nillable="true"/>
     <xs:element name="fwd_rate" type="xs:double" nillable="true"/>
     <xs:element name="fwd_reset_date" type="xs:date" nillable="true"/>
     <xs:element name="spot_base_rate" type="xs:double" nillable="true"/>
     <xs:element name="spot_cross_rate" type="xs:double" nillable="true"/>
     <xs:element name="fwd_point_difference" type="xs:double" nillable="true"/>
     <xs:element name="fwd_broker_code" type="xs:string" nillable="true"/>
     <xs:element name="fwd_side" type="xs:string" nillable="true"/>
     <xs:element name="redemption_currency" type="xs:string" nillable="true"/>
     <xs:element name="redenomination_date" type="xs:date" nillable="true"/>
     <xs:element name="redenomination_flag" type="xs:string" nillable="true"/>
     <xs:element name="amt_flag" type="xs:string" nillable="true"/>
     <xs:element name="orig_entrydate" type="xs:dateTime" nillable="true"/>
     <xs:element name="orig_enteredby" type="xs:string" nillable="true"/>
     <xs:element name="last_entrydate" type="xs:dateTime" nillable="true"/>
     <xs:element name="last_enteredby" type="xs:string" nillable="true"/>
     <xs:element name="credit_family_id" type="xs:string" nillable="true"/>
     <xs:element name="cusip" type="xs:string" nillable="true"/>
     <xs:element name="isin" type="xs:string" nillable="true"/>
     <xs:element name="sedol" type="xs:string" nillable="true"/>
     <xs:element name="ticker" type="xs:string" nillable="true"/>
     <xs:element name="apace_accrual_type" type="xs:string" nillable="true"/>
     <xs:element name="capital_income_flag" type="xs:string" nillable="true"/>
     <xs:element name="wal_date" type="xs:date" nillable="true"/>
     <xs:element name="cfb_level_pay" type="xs:double" nillable="true"/>
     <xs:element name="pending_corp_action" type="xs:string" nillable="true"/>
     <xs:element name="pending_proxy_vote" type="xs:string" nillable="true"/>
     <xs:element name="pms_live_indicator" type="xs:string" nillable="true"/>
     <xs:element name="pms_price_type" type="xs:string" nillable="true"/>
     <xs:element name="spark_flag" type="xs:string" nillable="true"/>
     <xs:element name="whittingdale_debt_cat" type="xs:int" nillable="true"/>
     <xs:element name="whittingdale_rating" type="xs:int" nillable="true"/>
     <xs:element name="whittingdale_code" type="xs:string" nillable="true"/>
     <xs:element name="expiration_date" type="xs:date" nillable="true"/>
     <xs:element name="maturity_price" type="xs:double" nillable="true"/>
     <xs:element name="commencement_date" type="xs:date" nillable="true"/>
     <xs:element name="declared_payment_date" type="xs:date" nillable="true"/>
     <xs:element name="drawer" type="xs:string" nillable="true"/>
     <xs:element name="fv_volatility" type="xs:double" nillable="true"/>
     <xs:element name="mv_volatility" type="xs:double" nillable="true"/>
     <xs:element name="settle_period" type="xs:double" nillable="true"/>
     <xs:element name="trading_margin" type="xs:double" nillable="true"/>
     <xs:element name="compound_frequency" type="xs:string" nillable="true"/>
     <xs:element name="coupon_rounding" type="xs:double" nillable="true"/>
     <xs:element name="duration_to_reset" type="xs:string" nillable="true"/>
     <xs:element name="float_rate_index_location" type="xs:string" nillable="true"/>
     <xs:element name="periodic_basis_point_cap" type="xs:decimal" nillable="true"/>
     <xs:element name="weighted_average_coupon" type="xs:double" nillable="true"/>
     <xs:element name="whittingdale_issuer" type="xs:int" nillable="true"/>
     <xs:element name="settlement_location" type="xs:string" nillable="true"/>
     <xs:element name="attachment_lower" type="xs:double" nillable="true"/>
     <xs:element name="attachment_upper" type="xs:double" nillable="true"/>
     <xs:element name="exposure_type" type="xs:string" nillable="true"/>
     <xs:element name="nth2default" type="xs:double" nillable="true"/>
     <xs:element name="restruct_doc_clause" type="xs:string" nillable="true"/>
     <xs:element name="swap_counterparty" type="xs:string" nillable="true"/>
     <xs:element name="swaption_issue_date" type="xs:date" nillable="true"/>
     <xs:element name="swaption_mat_date" type="xs:date" nillable="true"/>
     <xs:element name="apace_call_price" type="xs:double" nillable="true"/>
     <xs:element name="apace_call_date" type="xs:date" nillable="true"/>
     <xs:element name="apace_callable_flag" type="xs:string" nillable="true"/>
     <xs:element name="apace_put_price" type="xs:double" nillable="true"/>
     <xs:element name="apace_put_date" type="xs:date" nillable="true"/>
     <xs:element name="apace_putable_flag" type="xs:string" nillable="true"/>
     <xs:element name="apace_day_count" type="xs:string" nillable="true"/>
     <xs:element name="apace_io_ind" type="xs:string" nillable="true"/>
     <xs:element name="apace_pass_thru_flag" type="xs:string" nillable="true"/>
     <xs:element name="apace_price_method" type="xs:string" nillable="true"/>
     <xs:element name="apace_price_source" type="xs:string" nillable="true"/>
     <xs:element name="apace_depository_type" type="xs:string" nillable="true"/>
     <xs:element name="apace_conv_ratio" type="xs:double" nillable="true"/>
     <xs:element name="apace_floating_rate" type="xs:string" nillable="true"/>
     <xs:element name="apace_frn_reset_code" type="xs:string" nillable="true"/>
     <xs:element name="apace_frn_reset_date" type="xs:date" nillable="true"/>
     <xs:element name="apace_step_conversion_date" type="xs:date" nillable="true"/>
     <xs:element name="apace_step_conversion_rate" type="xs:double" nillable="true"/>
     <xs:element name="apace_accrual_date_code" type="xs:string" nillable="true"/>
     <xs:element name="apace_payment_date_code" type="xs:string" nillable="true"/>
     <xs:element name="apace_payment_cycle_code" type="xs:string" nillable="true"/>
     <xs:element name="apace_par_call_date" type="xs:date" nillable="true"/>
     <xs:element name="apace_prerefund_price" type="xs:double" nillable="true"/>
     <xs:element name="apace_prerefund_date" type="xs:date" nillable="true"/>
     <xs:element name="apace_sink_fund_flag" type="xs:string" nillable="true"/>
     <xs:element name="make_whole_call_flag" type="xs:string" nillable="true"/>
     <xs:element name="effective_date" type="xs:date"/>
     <xs:element name="delete_flag" type="xs:string" nillable="true"/>
     <xs:element name="update_flag" type="xs:string" nillable="true"/>
     <xs:element name="fido_security_type_jvst" type="xs:int" nillable="true"/>
     <xs:element name="fido_security_type_jstp" type="xs:string" nillable="true"/>
     <xs:element name="fido_issuer_id" type="xs:int" nillable="true"/>
     <xs:element name="fido_guarantor_id" type="xs:int" nillable="true"/>
     <xs:element name="fido_name" type="xs:string" nillable="true"/>
     <xs:element name="draft_id" type="xs:string" nillable="true"/>
     <xs:element name="bbsw_at_last_reset" type="xs:double" nillable="true"/>
     <xs:element name="delta" type="xs:double" nillable="true"/>
     <xs:element name="price" type="xs:double" nillable="true"/>
     <xs:element name="benchmark_index_sec" type="xs:string" nillable="true"/>
     <xs:element name="index_multiplier" type="xs:double" nillable="true"/>
     <xs:element name="index_spread" type="xs:double" nillable="true"/>
     <xs:element name="index_link_location" type="xs:string" nillable="true"/>
     <xs:element name="index_lag" type="xs:double" nillable="true"/>
     <xs:element name="benchmark_rounding" type="xs:int" nillable="true"/>
     <xs:element name="index_link_bus_day_rule" type="xs:string" nillable="true"/>
     <xs:element name="calculation_type" type="xs:int" nillable="true"/>
     <xs:element name="start_day_of_month" type="xs:int" nillable="true"/>
     <xs:element name="pms_issue" type="xs:string" nillable="true"/>
     <xs:element name="pms_name" type="xs:string" nillable="true"/>
     <xs:element name="camra_cusip" type="xs:string" nillable="true"/>
     <xs:element name="infoexpress_id" type="xs:string" nillable="true"/>
     <xs:element name="issuer_desc" type="xs:string" nillable="true"/>
     <xs:element name="parent_issuer_desc" type="xs:string" nillable="true"/>
     <xs:element name="lead_mgr" type="xs:string" nillable="true"/>
     <xs:element name="co_mgr" type="xs:string" nillable="true"/>
     <xs:element name="superticker_desc" type="xs:string" nillable="true"/>
     <xs:element name="fmc_id" type="xs:string" nillable="true"/>
     <xs:element name="spintl_id" type="xs:string" nillable="true"/>
     <xs:element name="tranche_type" type="xs:string" nillable="true"/>
     <xs:element name="collateral_type" type="xs:string" nillable="true"/>
     <xs:element name="ab_fund_desc" type="xs:string" nillable="true"/>
     <xs:element name="adp_number" type="xs:string" nillable="true"/>
     <xs:element name="underlying_account_id" type="xs:string" nillable="true"/>
</xs:schema>
sec.xml
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<security security_count="1" variable_rate_count="0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="security.xsd">
<security_row><security_id>LZ002359750</security_id><primary_asset_id>B2479G9</primary_asset_id><delay_days xsi:nil="true"></delay_days><arm_indicator xsi:nil="true"></arm_indicator><camra_abs_und_coll xsi:nil="true"></camra_abs_und_coll><camra_abs_und_coll_cpn xsi:nil="true"></camra_abs_und_coll_cpn><initial_principal_pay_date xsi:nil="true"></initial_principal_pay_date><final_principal_pay_date xsi:nil="true"></final_principal_pay_date><mtg_term xsi:nil="true"></mtg_term><original_face xsi:nil="true"></original_face><pool_number xsi:nil="true"></pool_number><principal_pay_frequency xsi:nil="true"></principal_pay_frequency><pay_down_date xsi:nil="true"></pay_down_date><principal_pay_bus_day_rule xsi:nil="true"></principal_pay_bus_day_rule><seasoned_mbs xsi:nil="true"></seasoned_mbs><tba_stlmt_month xsi:nil="true"></tba_stlmt_month><accrual_flag>Y</accrual_flag><accrual_rule>1</accrual_rule><base_payment_date>0831</base_payment_date><day_count>ACT/ACT</day_count><ex_interest_bond_code xsi:nil="true"></ex_interest_bond_code><ex_days xsi:nil="true"></ex_days><ex_div_date xsi:nil="true"></ex_div_date><last_coupon_date>2017-08-31</last_coupon_date><for_bond_security_type>GER</for_bond_security_type><dated_date>2007-08-31</dated_date><issue_date>2007-08-31</issue_date><first_coupon_date>2008-08-31</first_coupon_date><second_coupon_date>2009-08-31</second_coupon_date><mat_date>2017-08-31</mat_date><interest_accrual_method>PER</interest_accrual_method><odd_first_coupon_date xsi:nil="true"></odd_first_coupon_date><odd_last_coupon_date xsi:nil="true"></odd_last_coupon_date><payment_eom_rule>Y</payment_eom_rule><pay_frequency>A</pay_frequency><pay_business_day_rule>BD</pay_business_day_rule><yield_day_count>ACT/ACT</yield_day_count><zero_coupon_type xsi:nil="true"></zero_coupon_type><analyst>SH</analyst><analyst_recomm xsi:nil="true"></analyst_recomm><approval_flag>Y</approval_flag><camra_sec_type xsi:nil="true"></camra_sec_type><class xsi:nil="true"></class><comments xsi:nil="true"></comments><holding_style>BE</holding_style><issued_capital xsi:nil="true"></issued_capital><issued_capital_currency>EUR</issued_capital_currency><min_denomination>50000</min_denomination><price_multiplier>0.01</price_multiplier><pricing_identifier xsi:nil="true"></pricing_identifier><quantity_issued>2250000</quantity_issued><shares_outstanding>2250000</shares_outstanding><quantity_type>PAR</quantity_type><redemption_value>100</redemption_value><scb_industry xsi:nil="true"></scb_industry><issue_desc1>DEUTSCHE BANK AG</issue_desc1><issue_desc2 xsi:nil="true"></issue_desc2><issue_desc3 xsi:nil="true"></issue_desc3><issue_short_name>DEUTSCHE BANK AG</issue_short_name><trading_lot_size>50000</trading_lot_size><unit_factor>1</unit_factor><camra_exercise_date xsi:nil="true"></camra_exercise_date><camra_expiration_date xsi:nil="true"></camra_expiration_date><alliance_sector>230</alliance_sector><alliance_industry>23030</alliance_industry><camra_gl_type xsi:nil="true"></camra_gl_type><emerg_mkt_ind xsi:nil="true"></emerg_mkt_ind><form_13f_flag xsi:nil="true"></form_13f_flag><instrument_class>FI</instrument_class><issue_type>BOND</issue_type><mortgage_sector>ZZ</mortgage_sector><naic_code xsi:nil="true"></naic_code><performance_segment>3</performance_segment><program_type xsi:nil="true"></program_type><camra_sic_code2 xsi:nil="true"></camra_sic_code2><camra_sched_d_group xsi:nil="true"></camra_sched_d_group><camra_sched_d_state xsi:nil="true"></camra_sched_d_state><security_form xsi:nil="true"></security_form><security_type_distrib xsi:nil="true"></security_type_distrib><camra_sic_code xsi:nil="true"></camra_sic_code><structured_note_flag>N</structured_note_flag><underlying_category xsi:nil="true"></underlying_category><primary_asset_id_type>aPACE</primary_asset_id_type><superticker>B2479G9</superticker><default_status>N</default_status><default_date xsi:nil="true"></default_date><accrue_in_default_ind>N</accrue_in_default_ind><ctd_bond xsi:nil="true"></ctd_bond><contract_size xsi:nil="true"></contract_size><derivative_type xsi:nil="true"></derivative_type><delivery_method xsi:nil="true"></delivery_method><conversion_factor xsi:nil="true"></conversion_factor><flex_option_ind xsi:nil="true"></flex_option_ind><leap_option_ind xsi:nil="true"></leap_option_ind><orig_strike_price xsi:nil="true"></orig_strike_price><otc_flag xsi:nil="true"></otc_flag><part_paid_percent xsi:nil="true"></part_paid_percent><strike_price xsi:nil="true"></strike_price><put_call_flag xsi:nil="true"></put_call_flag><strike_price_type xsi:nil="true"></strike_price_type><pay_currency

Then you hit a bug in your version of Oracle. You may want to investigate and update to a newer version. I get the following error when trying to register your schema in 10.2.0.1
ORA-31154: invalid XML document
ORA-19202: Error occurred in XML processing
LSX-00246: invalid QNAME "***_voting_flag"
This error is consistent with Spy 2008 as well (I didn't try Xerces but I've got two that agree so it's good for me).

Similar Messages

  • Problem with Schema Definitions for Persintence Units

    Hello,
    Is there any way to explicitly specify SCHEMA types for the persistence units which are under use?
    Details:
    In our SOA application, we have to use two different data sources within a single business component. For that I have created my persintence.xml file with two persistence-unit definitions and is using @PersistenceContext(unitName="") to get an entity manager reference.
    Things were going smoothly until we had 2 different users for the respective database schema's.
    Now, as per the change request, I am supposed to use only one database user account, who is having only the read and modify privileges on both the database schema's. I would like to know, is there any way to explicitly specify the schema type for both of my persistence-units. I tried with the default-schema in orm.xml, but for both the data sources, that schema is getting referred. As a work around, currently I am using the SCHEMA attribute with all my @Table annotation of entity classes.
    Any input which will give insight to this problem will be appreciated.
    Thanks in advance,
    Regards,
    Dipu.

    orm.xml is the default mapping file for a persistence unit. Can you try specifying a separate mapping file where you define the default schema for your unit and reference it from the mapping-file element in the persistence.xml as follows:
    <mapping-file>META-INF/secondORMap.xml</mapping-file>     
    You can find a working example in the code examples (see chapter 11) of my book at http://manning.com/panda/. You can download from resources section.
    -Debu
    Author EJB 3 In Action - http://manning.com/panda/

  • ORA-30937 when validating element referenced from included schema

    I've boiled my latest problem down to a simple test case. Basically it seems as though the included schema is the problem, but I can't figure out why:
    begin
    dbms_xmlschema.deleteSchema('http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd', dbms_xmlschema.DELETE_CASCADE_FORCE);
    dbms_xmlschema.registerSchema('http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd',
    '<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" versionfiltered="1-00" id="NDNASimpleTypes">
    <xsd:complexType name="MessageHeaderType">
    <xsd:sequence>
    <xsd:element name="MESSAGE_NUMBER" type="xsd:long"/>
    <xsd:element name="MESSAGE_TYPE" type="MessageTypeType"/>
    <xsd:element name="MESSAGE_DATE" type="xsd:dateTime"/>
    </xsd:sequence>
    </xsd:complexType>
    <xsd:simpleType name="MessageTypeType">
    <xsd:annotation>
    <xsd:documentation>The definition of the Sample Message Types</xsd:documentation>
    </xsd:annotation>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="2"/>
    <xsd:enumeration value="CT"/>
    <xsd:enumeration value="CA"/>
    <xsd:enumeration value="CD"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:schema>',TRUE,FALSE,FALSE,FALSE);
    dbms_xmlschema.deleteSchema('http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd', dbms_xmlschema.DELETE_CASCADE);
    dbms_xmlschema.registerSchema('http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd',
    '<xsd:schema xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" elementFormDefault="qualified" attributeFormDefault="unqualified" versionfiltered="1.0" id="Test">
    <xsd:include schemaLocation="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd"/>
    <xsd:element name="SAMPLE_MESSAGE">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="MESSAGE_HEADER" type="MessageHeaderType"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>',TRUE,TRUE,FALSE,FALSE);
    END;
    update xml_in
    set xml_data = xmltype ( '<?xml versionfiltered="1.0" encoding="UTF-8"?>
    <!--Sample XML file generated by XMLSpy v2005 rel. 3 U (http://www.altova.com)-->
    <SAMPLE_MESSAGE xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd">
    <MESSAGE_HEADER>
    <MESSAGE_NUMBER>2147483647</MESSAGE_NUMBER>
    <MESSAGE_TYPE>CT</MESSAGE_TYPE>
    <MESSAGE_DATE>2001-12-17T09:30:47</MESSAGE_DATE>
    </MESSAGE_HEADER>
    </SAMPLE_MESSAGE>
    where msg_id = 8
    and I get the error:
    ORA-30937: No schema definition for 'MESSAGE_NUMBER' (namespace 'http://www.forensic.gov.uk/eMessages/Pnclink/NDNA') in parent 'MESSAGE_HEADER'
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 27
    But if I remove the MESSAGE_NUMBER I get
    ORA-31154: invalid XML document
    ORA-19202: Error occurred in XML processing
    LSX-00213: only 0 occurrences of particle "MESSAGE_NUMBER", minimum is 1
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 37
    So it knows there is supposed to be a particle called message_number if it's not there, but not what to do with it if it is.
    One other thing, which I think is significant: If I amend my test.xsd schema so I define MESSAGE_HEADER there, so the only thing being referenced from testinclude.xsd is the SIMPLE type "MessageTypeType", I don't have a problem. It seems to be only when I include COMPLEX types.
    Any suggestions?

    Dave
    I can't register the XML Schemas with XML DB, since we do think versionfiltered is a valid attribute for a schema element...
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" versionfilt
    ered="1-00" id="NDNASimpleTypes">
      5
      6          <xsd:complexType name="MessageHeaderType">
      7                  <xsd:sequence>
      8                          <xsd:element name="MESSAGE_NUMBER" type="xsd:long"/>
      9                          <xsd:element name="MESSAGE_TYPE" type="MessageTypeType"/>
    10                          <xsd:element name="MESSAGE_DATE" type="xsd:dateTime"/>
    11                  </xsd:sequence>
    12          </xsd:complexType>
    13          <xsd:simpleType name="MessageTypeType">
    14                  <xsd:annotation>
    15                          <xsd:documentation>The definition of the Sample Message Types</xsd:documentation>
    16                  </xsd:annotation>
    17                  <xsd:restriction base="xsd:string">
    18                          <xsd:maxLength value="2"/>
    19                          <xsd:enumeration value="CT"/>
    20                          <xsd:enumeration value="CA"/>
    21                          <xsd:enumeration value="CD"/>
    22                  </xsd:restriction>
    23          </xsd:simpleType>
    24  </xsd:schema>');
    25  begin
    26    if (dbms_xdb.existsResource(:schemaPath)) then
    27      dbms_xdb.deleteResource(:schemaPath);
    28    end if;
    29    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    30  end;
    31  /
    Queuing DELETE Event
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.04
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,TRUE
      7    );
      8  end;
      9  /
    begin
    ERROR at line 1:
    ORA-30937: No schema definition for 'versionfiltered' (namespace '##local') in parent '/schema'
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 20
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 31
    ORA-06512: at line 2XMLSPY agrees with us on this...
    If I change version filtered to version I get
    SQL> var schemaURL varchar2(256)
    SQL> var schemaPath varchar2(256)
    SQL> --
    SQL> begin
      2    :schemaURL := 'http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd';
      3    :schemaPath := '/public/testinclude.xsd';
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
      2  /
    Queuing DELETE Event
    Call completed.
    Elapsed: 00:00:00.07
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1-
    00" id="NDNASimpleTypes">
      5
      6          <xsd:complexType name="MessageHeaderType">
      7                  <xsd:sequence>
      8                          <xsd:element name="MESSAGE_NUMBER" type="xsd:long"/>
      9                          <xsd:element name="MESSAGE_TYPE" type="MessageTypeType"/>
    10                          <xsd:element name="MESSAGE_DATE" type="xsd:dateTime"/>
    11                  </xsd:sequence>
    12          </xsd:complexType>
    13          <xsd:simpleType name="MessageTypeType">
    14                  <xsd:annotation>
    15                          <xsd:documentation>The definition of the Sample Message Types</xsd:documentation>
    16                  </xsd:annotation>
    17                  <xsd:restriction base="xsd:string">
    18                          <xsd:maxLength value="2"/>
    19                          <xsd:enumeration value="CT"/>
    20                          <xsd:enumeration value="CA"/>
    21                          <xsd:enumeration value="CD"/>
    22                  </xsd:restriction>
    23          </xsd:simpleType>
    24  </xsd:schema>');
    25  begin
    26    if (dbms_xdb.existsResource(:schemaPath)) then
    27      dbms_xdb.deleteResource(:schemaPath);
    28    end if;
    29    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    30  end;
    31  /
    Queuing DELETE Event
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.04
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,TRUE
      7    );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.20
    SQL> begin
      2    :schemaURL := 'http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd';
      3    :schemaPath := '/public/Test.xsd';
      4  end;
      5  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01
    SQL> call dbms_xmlSchema.deleteSchema(:schemaURL,4)
      2  /
    Queuing DELETE Event
    Call completed.
    Elapsed: 00:00:00.06
    SQL> declare
      2    res boolean;
      3    xmlSchema xmlType := xmlType(
      4  '<xsd:schema xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="ht
    tp://www.forensic.gov.uk/eMessages/Pnclink/NDNA" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0" id="Test">
      5
      6          <xsd:include schemaLocation="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/testinclude.xsd"/>
      7        <xsd:element name="SAMPLE_MESSAGE">
      8                  <xsd:complexType>
      9                          <xsd:sequence>
    10                                  <xsd:element name="MESSAGE_HEADER" type="MessageHeaderType"/>
    11                          </xsd:sequence>
    12                  </xsd:complexType>
    13          </xsd:element>
    14    </xsd:schema>');
    15  begin
    16    if (dbms_xdb.existsResource(:schemaPath)) then
    17      dbms_xdb.deleteResource(:schemaPath);
    18    end if;
    19    res := dbms_xdb.createResource(:schemaPath,xmlSchema);
    20  end;
    21  /
    Queuing DELETE Event
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.04
    SQL> begin
      2    dbms_xmlschema.registerSchema
      3    (
      4      :schemaURL,
      5      xdbURIType(:schemaPath).getClob(),
      6      TRUE,TRUE,FALSE,FALSE
      7    );
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.14
    SQL> var xmltext varchar2(4000)
    SQL> --
    SQL> begin
      2    :xmltext :=
      3  '<SAMPLE_MESSAGE xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:sc
    hemaLocation="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd">
      4     <MESSAGE_HEADER>
      5        <MESSAGE_NUMBER>2147483647</MESSAGE_NUMBER>
      6        <MESSAGE_TYPE>CT</MESSAGE_TYPE>
      7        <MESSAGE_DATE>2001-12-17T09:30:47</MESSAGE_DATE>
      8     </MESSAGE_HEADER>
      9  </SAMPLE_MESSAGE>';
    10  end;
    11  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.01
    SQL> drop table xml_in
      2  /
    Table dropped.
    Elapsed: 00:00:00.04
    SQL> create table xml_in
      2  (
      3    msg_id   number(4),
      4    xml_data xmltype
      5  )
      6  /
    Table created.
    Elapsed: 00:00:00.03
    SQL> insert into xml_in values ( 8, xmltype ('<FOO/>'))
      2  /
    1 row created.
    Elapsed: 00:00:00.01
    SQL> declare
      2    xmldata xmltype;
      3  begin
      4    xmldata := xmltype(:xmltext);
      5    xmldata.schemaValidate();
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.09
    SQL> update xml_in
      2     set xml_data = xmltype ( :xmltext )
      3   where msg_id = 8
      4  /
    1 row updated.
    Elapsed: 00:00:00.01
    SQL> select * from xml_in
      2  /
        MSG_ID
    XML_DATA
             8
    <SAMPLE_MESSAGE xmlns="http://www.forensic.gov.uk/eMessages/Pnclink/NDNA" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLo
    cation="ht
    tp://www.forensic.gov.uk/eMessages/Pnclink/NDNA http://www.forensic.gov.uk/eMessages/Pnclink/NDNA/Test.xsd">
      <MESSAGE_HEADER>
        <MESSAGE_NUMBER>2147483647</MESSAGE_NUMBER>
        <MESSAGE_TYPE>CT</MESSAGE_TYPE>
        <MESSAGE_DATE>2001-12-17T09:30:47</MESSAGE_DATE>
      </MESSAGE_HEADER>
    </SAMPLE_MESSAGE>
    Elapsed: 00:00:00.06
    SQL>

  • XML validation gives ORA-30937

    Hi,
    Could some one look at this as I am getting ORA-30937 while validating XML with a registered schema.
    Thanks in advance.
    Parappa
    SQL> DECLARE
    2 doc varchar2(3800) :=
    3 '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    4 <xs:schema targetNamespace="http://ibtco.com/common/exception/stack" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:stack="http://ibtco.com/common/exception/stack" elementFormDefault="qualified" attributeFormDefault="unqualified">
    5 <xs:complexType name="StackTextType">
    6 <xs:annotation>
    7 <xs:documentation>
    8 for holding the string information in exception
    9 </xs:documentation>
    10 </xs:annotation>
    11 <xs:simpleContent>
    12 <xs:extension base="xs:string"/>
    13 </xs:simpleContent>
    14 </xs:complexType>
    15 <xs:complexType name="StackElementType">
    16 <xs:annotation>
    17 <xs:documentation>
    18 for holding detail information in each stack element
    19 </xs:documentation>
    20 </xs:annotation>
    21 <xs:attribute name="Class" type="xs:Name" use="required"/>
    22 <xs:attribute name="Method" type="xs:Name" use="required"/>
    23 <xs:attribute name="LineNumber" type="xs:unsignedInt" use="required"/>
    24 <xs:attribute name="File" type="xs:Name" use="optional"/>
    25 <xs:attribute name="Native" type="xs:boolean" use="optional" default="false"/>
    26 </xs:complexType>
    27 <xs:complexType name="StackDetailType">
    28 <xs:annotation>
    29 <xs:documentation>
    30 for holding information in the stack trace
    31 </xs:documentation>
    32 </xs:annotation>
    33 <xs:sequence>
    34 <xs:element name="Element" type="stack:StackElementType" maxOccurs="unbounded"/>
    35 </xs:sequence>
    36 <xs:attribute name="Truncate" type="xs:boolean" use="optional" default="false"/>
    37 </xs:complexType>
    38 <xs:complexType name="RootExceptionType">
    39 <xs:annotation>
    40 <xs:documentation>
    41 for holding the stack trace information for each exception
    42 </xs:documentation>
    43 </xs:annotation>
    44 <xs:sequence>
    45 <xs:element name="Message" type="xs:string"/>
    46 <xs:choice>
    47 <xs:element name="StackDetail" type="stack:StackDetailType"/>
    48 <xs:element name="StackText" type="stack:StackTextType"/>
    49 </xs:choice>
    50 </xs:sequence>
    51 <xs:attribute name="Type" type="xs:NCName" use="required"/>
    52 </xs:complexType>
    53 <xs:complexType name="WrapperExceptionType">
    54 <xs:annotation>
    55 <xs:documentation>
    56 for defining top level element for exception stack
    57 </xs:documentation>
    58 </xs:annotation>
    59 <xs:sequence>
    60 <xs:element name="Message" type="xs:string"/>
    61 </xs:sequence>
    62 <xs:attribute name="Type" type="xs:NCName" use="required"/>
    63 </xs:complexType>
    64 <xs:element name="ExceptionStack">
    65 <xs:annotation>
    66 <xs:documentation>
    67 top level element exception stack
    68 </xs:documentation>
    69 </xs:annotation>
    70 <xs:complexType>
    71 <xs:sequence>
    72 <xs:element name="RootException" type="stack:RootExceptionType"/>
    73 <xs:element name="WrapperException" type="stack:WrapperExceptionType" minOccurs="0" maxOccurs="unbounded"/>
    74 </xs:sequence>
    75 </xs:complexType>
    76 </xs:element>
    77 </xs:schema>';
    78 BEGIN
    79 dbms_xmlschema.registerSchema('http://ibtco.com/common/exception/stack', doc);
    80 END;
    81 /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.07
    SQL> DECLARE
    2
    3 l_errormsgid VARCHAR2(30);
    4 l_errorinfo VARCHAR2(100);
    5 l_error_context CLOB; -- Error Stack
    6 l_error_context_data CLOB; -- XML Context
    7 l_var_xml_context VARCHAR2(4000);
    8 l_var_error_stack VARCHAR2(4000);
    9 l_sqlCode UTL_ERROR_LOGS.ERROR_CODE%TYPE;
    10 p_ErrorMsgId NUMBER := '0';
    11 p_ErrorInfo VARCHAR2(2000):= 'SUCCESS';
    12 l_xml_context SYS.XMLTYPE;
    13 l_count number :=0;
    14 l_ret NUMBER;
    15 BEGIN
    16
    17
    18
    19 -- Store XML in a clob
    20
    21 l_var_error_stack :=
    22 '<?xml version="1.0" encoding="UTF-8"?>
    23 <!--Sample XML file generated by XMLSpy v2005 sp1 U (http://www.xmlspy.com)-->
    24 <ExceptionStack
    25 xmlns="http://ibtco.com/common/exception/stack"
    26 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    27 xsi:schemaLocation="http://ibtco.com/common/exception/stack
    28 http://ibtco.com/common/exception/stack"
    29 >
    30 <Exception Type="RootCauseException">
    31 <Message>Exception Message</Message>
    32 <StackDetail Truncate="false">
    33 <Element LineNumber="0" File="Exception.java" Class="com.ibtco.common.exception.ExceptionManager" Method="manage" Native="false"/>
    34 <Element LineNumber="0" File="Exception.java" Class="com.ibtco.common.exception.ExceptionHandler" Method="handle" Native="false"/>
    35 <Element LineNumber="0" File="Exception.java" Class="com.ibtco.common.exception.Exception" Method="throw" Native="false"/>
    36 </StackDetail>
    37 </Exception>
    38 <Cause Type="WrappedException">
    39 <Message>String</Message>
    40 <StackDetail/>
    41 </Cause>
    42 <Cause Type="AnotherWrappedException">
    43 <Message>String</Message>
    44 <StackDetail/>
    45 </Cause>
    46 </ExceptionStack>';
    47
    48 DBMS_LOB.CREATETEMPORARY
    49 (
    50 lob_loc => l_error_context,
    51 cache => TRUE
    52 );
    53
    54 DBMS_LOB.WRITE
    55 (
    56 lob_loc =>l_error_context,
    57 amount => length(l_var_error_stack),
    58 offset => 1,
    59 buffer => l_var_error_stack
    60 );
    61
    62 l_xml_context := XMLTYPE(l_error_context);
    63
    64
    65 -- validate against XML schema
    66 --l_xml_context.schemavalidate();
    67 l_ret := l_xml_context.isschemavalid('http://ibtco.com/common/exception/stack');
    68 IF l_ret = 1 then
    69 dbms_output.put_line('Data is valid:' || l_ret );
    70 ELSE
    71 dbms_output.put_line('Data is invalid:' || l_ret);
    72 END IF;
    73 END;
    74 /
    DECLARE
    ERROR at line 1:
    ORA-30937: No schema definition for 'Exception' (namespace 'http://ibtco.com/common/exception/stack') in parent 'ExceptionStack'
    ORA-06512: at "SYS.XMLTYPE", line 348
    ORA-06512: at line 67
    Elapsed: 00:00:00.00
    SQL>
    Here are the actual scripts:
    DECLARE
    doc varchar2(3800) :=
    '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <xs:schema targetNamespace="http://ibtco.com/common/exception/stack" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:stack="http://ibtco.com/common/exception/stack" elementFormDefault="qualified" attributeFormDefault="unqualified">
         <xs:complexType name="StackTextType">
              <xs:annotation>
                   <xs:documentation>
                        for holding the string information in exception
                   </xs:documentation>
              </xs:annotation>
              <xs:simpleContent>
                   <xs:extension base="xs:string"/>
              </xs:simpleContent>
         </xs:complexType>
         <xs:complexType name="StackElementType">
              <xs:annotation>
                   <xs:documentation>
                        for holding detail information in each stack element
                   </xs:documentation>
              </xs:annotation>
              <xs:attribute name="Class" type="xs:Name" use="required"/>
              <xs:attribute name="Method" type="xs:Name" use="required"/>
              <xs:attribute name="LineNumber" type="xs:unsignedInt" use="required"/>
              <xs:attribute name="File" type="xs:Name" use="optional"/>
              <xs:attribute name="Native" type="xs:boolean" use="optional" default="false"/>
         </xs:complexType>
         <xs:complexType name="StackDetailType">
              <xs:annotation>
                   <xs:documentation>
                        for holding information in the stack trace
                   </xs:documentation>
              </xs:annotation>
              <xs:sequence>
                   <xs:element name="Element" type="stack:StackElementType" maxOccurs="unbounded"/>
              </xs:sequence>
              <xs:attribute name="Truncate" type="xs:boolean" use="optional" default="false"/>
         </xs:complexType>
         <xs:complexType name="RootExceptionType">
              <xs:annotation>
                   <xs:documentation>
                        for holding the stack trace information for each exception
                   </xs:documentation>
              </xs:annotation>
              <xs:sequence>
                   <xs:element name="Message" type="xs:string"/>
                   <xs:choice>
                        <xs:element name="StackDetail" type="stack:StackDetailType"/>
                        <xs:element name="StackText" type="stack:StackTextType"/>
                   </xs:choice>
              </xs:sequence>
              <xs:attribute name="Type" type="xs:NCName" use="required"/>
         </xs:complexType>
         <xs:complexType name="WrapperExceptionType">
              <xs:annotation>
                   <xs:documentation>
                        for defining top level element for exception stack
                   </xs:documentation>
              </xs:annotation>
              <xs:sequence>
                   <xs:element name="Message" type="xs:string"/>
              </xs:sequence>
              <xs:attribute name="Type" type="xs:NCName" use="required"/>
         </xs:complexType>
         <xs:element name="ExceptionStack">
              <xs:annotation>
                   <xs:documentation>
                        top level element exception stack
                   </xs:documentation>
              </xs:annotation>
              <xs:complexType>
                   <xs:sequence>
                        <xs:element name="RootException" type="stack:RootExceptionType"/>
                        <xs:element name="WrapperException" type="stack:WrapperExceptionType" minOccurs="0" maxOccurs="unbounded"/>
                   </xs:sequence>
              </xs:complexType>
         </xs:element>
    </xs:schema>';
    BEGIN
    dbms_xmlschema.registerSchema('http://ibtco.com/common/exception/stack', doc);
    END;
    -- Validate Error Stack XML
    DECLARE
         l_errormsgid VARCHAR2(30);
         l_errorinfo VARCHAR2(100);
         l_error_context          CLOB; -- Error Stack
         l_error_context_data     CLOB;     -- XML Context
         l_var_xml_context     VARCHAR2(4000);
         l_var_error_stack     VARCHAR2(4000);
         l_sqlCode          UTL_ERROR_LOGS.ERROR_CODE%TYPE;
         p_ErrorMsgId NUMBER := '0';
         p_ErrorInfo VARCHAR2(2000):= 'SUCCESS';
         l_xml_context SYS.XMLTYPE;
         l_count number :=0;
    l_ret     NUMBER;
    BEGIN
         -- Store XML in a clob
         l_var_error_stack :=
    '<?xml version="1.0" encoding="UTF-8"?>
    <!--Sample XML file generated by XMLSpy v2005 sp1 U (http://www.xmlspy.com)-->
    <ExceptionStack
    xmlns="http://ibtco.com/common/exception/stack"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://ibtco.com/common/exception/stack
    http://ibtco.com/common/exception/stack"
    >
    <Exception Type="RootCauseException">
    <Message>Exception Message</Message>
    <StackDetail Truncate="false">
    <Element LineNumber="0" File="Exception.java" Class="com.ibtco.common.exception.ExceptionManager" Method="manage" Native="false"/>
    <Element LineNumber="0" File="Exception.java" Class="com.ibtco.common.exception.ExceptionHandler" Method="handle" Native="false"/>
    <Element LineNumber="0" File="Exception.java" Class="com.ibtco.common.exception.Exception" Method="throw" Native="false"/>
    </StackDetail>
    </Exception>
    <Cause Type="WrappedException">
    <Message>String</Message>
    <StackDetail/>
    </Cause>
    <Cause Type="AnotherWrappedException">
    <Message>String</Message>
    <StackDetail/>
    </Cause>
    </ExceptionStack>';
         DBMS_LOB.CREATETEMPORARY
    lob_loc => l_error_context,
    cache => TRUE
         DBMS_LOB.WRITE
         lob_loc =>l_error_context,
         amount => length(l_var_error_stack),
         offset => 1,
         buffer => l_var_error_stack
         l_xml_context := XMLTYPE(l_error_context);
         -- validate against XML schema
         --l_xml_context.schemavalidate();
         l_ret := l_xml_context.isschemavalid('http://ibtco.com/common/exception/stack');
         IF l_ret = 1 then
              dbms_output.put_line('Data is valid:' || l_ret );
         ELSE
              dbms_output.put_line('Data is invalid:' || l_ret);
         END IF;
    END;
    /

    You schema definition goes like this:
    <xs:element name="ExceptionStack">
    <xs:annotation>
    <xs:documentation>
    top level element exception stack
    </xs:documentation>
    </xs:annotation>
    <xs:complexType>
    <xs:sequence>
    <xs:element name="RootException" type="stack:RootExceptionType"/>
    <xs:element name="WrapperException" type="stack:WrapperExceptionType" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>and your document goes like this:
    <ExceptionStack
    xmlns="http://ibtco.com/common/exception/stack"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://ibtco.com/common/exception/stack
    http://ibtco.com/common/exception/stack"
    >
    <Exception Type="RootCauseException">
    <Message>Exception Message</Message>
    <StackDetail Truncate="false">
    .In your schema definition, you have not defined the element named "Exception" or element named "Cause", but are using it in your document. You need to fix either the schema definition or the document to make them consistent.
    Message was edited by:
    Kamal Kishore

  • IDOC Schema Documentation for WPDWGR01

    We would like to get schema definition for WPDWGR01 IDoc Type.
    We tried to get the same from ifr.sap.com. We are not able to find it. URL ifr.sap.com goes to some other page.
    Please help us in getting schema definition for WPDWGR01.
    Regards
    NS Rajagopal

    Hi!
    Try transaction WE60. In Goto - User settings you can activate additional documentation for the field values.
    Regards,
    Christian

  • IDOC invoic /INVOIC02 Schema Definition

    Please help me
    Currently, I am working on one project which require me to translate from IDOC to EDI X12. The company mainly supports all EDI messages and I have no problem to translate to X12. But what I face with is IDOC Schema definition which the company does not have SAP system to generate it. So can you guys please send me an IDOC schema definition for Invoice 810(invoic/invoic02)? If you guys know some site which allow me to download that file please send a me direct link to that web site as I really need this file in order to complete my project.
    I used to download Idoc schema definitions from the sap website http://ifr.sap.com/catalog/query.asp but this site now no longer exist.
    Thank you so much for your help hope to hear good respond from you guys soon

    Hi Rahul,
    Firstly check out this blog by Shabarish, which discusses how you can give the condition in the editor using XPath expression. It also mentions the importance of specifying the correct parent node:-
    /people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
    Also, you must've imported the Idoc or an abstract type of the IDoc as the sender interface right?
    Only then you will be able to see it in the condition editor rite?
    Well if its the IDoc itself, just check if you have chosen the right IDoc while defining the rcvr determintation.
    If it is the abstract message interface of the IDoc, then check if you have added the correct IDoc to the message interface in repository and also if you have chosen the correct message interface while configuring the rcvr determination.
    If the above checks are all fine, also do a cache
    Regards,
    Sushumna

  • Schema support for RFC2307 (LDAP as NIS)

    Does anyone know of a way to easily import the schema from RFC2307 into OID? Anyone have a bulkload I can get to handle this?
    I've started putting the entries in by hand but it is getting tedious, I was hoping another kind soul has done the dirty work

    Hello Matthew:
    Here are the schema definitions for RFC2307: If you would rather have the files send me an email and Ill send you the files.
    Also, I would not use bulkload for just adding these schema extentions. Its overkill. Just copy the schema definitions into a file and use an ldapmodify command like this:
    ldapmodify -h your_host_name -p 389 -D cn=orcladmin -w your_password -v -f /tmp/NISschema.ldi
    # Beginning of LDIF file
    # This file contains all the schema elements required for use of LDAP as
    # Netowrk Information Service. The schema is based on RFC 2307.
    # These definitions are subject to change as and when the RFC is updated.
    # Contact: Saurabh Shrivastava ([email protected]) for issues related to
    # these schema definitions.
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.0 NAME 'uidNumber'
    DESC 'An integer uniquely identifying a user in an
    administrative domain'
    EQUALITY integerMatch SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.1 NAME 'gidNumber'
    DESC 'An integer uniquely identifying a group in an
    administrative domain'
    EQUALITY integerMatch SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.2 NAME 'gecos'
    DESC 'The GECOS field; the common name'
    EQUALITY caseIgnoreIA5Match
    SUBSTRINGS caseIgnoreIA5SubstringsMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.3 NAME 'homeDirectory'
    DESC 'The absolute path to the home directory'
    EQUALITY caseExactIA5Match
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.4 NAME 'loginShell'
    DESC 'The path to the login shell'
    EQUALITY caseExactIA5Match
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.5 NAME 'shadowLastChange'
    EQUALITY integerMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.6 NAME 'shadowMin'
    EQUALITY integerMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.7 NAME 'shadowMax'
    EQUALITY integerMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.8 NAME 'shadowWarning'
    EQUALITY integerMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.9 NAME 'shadowInactive'
    EQUALITY integerMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.10 NAME 'shadowExpire'
    EQUALITY integerMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.11 NAME 'shadowFlag'
    EQUALITY integerMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.12 NAME 'memberUid'
    EQUALITY caseExactIA5Match
    SUBSTRINGS caseExactIA5SubstringsMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.13 NAME 'memberNisNetgroup'
    EQUALITY caseExactIA5Match
    SUBSTRINGS caseExactIA5SubstringsMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.14 NAME 'nisNetgroupTriple'
    DESC 'Netgroup triple'
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.15 NAME 'ipServicePort'
    EQUALITY integerMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.16 NAME 'ipServiceProtocol' SUP name )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.17 NAME 'ipProtocolNumber'
    EQUALITY integerMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.18 NAME 'oncRpcNumber'
    EQUALITY integerMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.19 NAME 'ipHostNumber'
    DESC 'IP address as a dotted decimal, eg. 192.168.1.1,
    omitting leading zeros'
    EQUALITY caseIgnoreIA5Match
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26{128}' )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.20 NAME 'ipNetworkNumber'
    DESC 'IP network as a dotted decimal, eg. 192.168,
    omitting leading zeros'
    EQUALITY caseIgnoreIA5Match
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26{128}' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.21 NAME 'ipNetmaskNumber'
    DESC 'IP netmask as a dotted decimal, eg. 255.255.255.0,
    omitting leading zeros'
    EQUALITY caseIgnoreIA5Match
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26{128}' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.22 NAME 'macAddress'
    DESC 'MAC address in maximal, colon separated hex
    notation, eg. 00:00:92:90:ee:e2'
    EQUALITY caseIgnoreIA5Match
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26{128}' )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.23 NAME 'bootParameter'
    DESC 'rpc.bootparamd parameter'
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.24 NAME 'bootFile'
    DESC 'Boot image name'
    EQUALITY caseExactIA5Match
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.26 NAME 'nisMapName' SUP name )
    dn: cn=subschemasubentry
    changeType: modify
    add: attributeTypes
    attributeTypes: ( 1.3.6.1.1.1.1.27 NAME 'nisMapEntry'
    EQUALITY caseExactIA5Match
    SUBSTRINGS caseExactIA5SubstringsMatch
    SYNTAX '1.3.6.1.4.1.1466.115.121.1.26{1024}' SINGLE-VALUE )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.0 NAME 'posixAccount' SUP top AUXILIARY
    DESC 'Abstraction of an account with POSIX attributes'
    MUST ( cn $ uid $ uidNumber $ gidNumber $ homeDirectory )
    MAY ( userPassword $ loginShell $ gecos $ description ) )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.1 NAME 'shadowAccount' SUP top AUXILIARY
    DESC 'Additional attributes for shadow passwords' MUST uid
    MAY ( userPassword $ shadowLastChange $ shadowMin
    shadowMax $ shadowWarning $ shadowInactive $
    shadowExpire $ shadowFlag $ description ) )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.2 NAME 'posixGroup' SUP top STRUCTURAL
    DESC 'Abstraction of a group of accounts' MUST ( cn $ gidNumber )
    MAY ( userPassword $ memberUid $ description ) )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.3 NAME 'ipService' SUP top STRUCTURAL
    DESC 'Abstraction an Internet Protocol service. Maps an IP port and protocol (such as tcp or udp)
    to one or more names; the distinguished value of the cn attribute denotes the service's canonical
    name' MUST ( cn $ ipServicePort $ ipServiceProtocol ) MAY ( description ) )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.4 NAME 'ipProtocol' SUP top STRUCTURAL DESC 'Abstraction of an IP protocol. Maps a protocol number
    to one or more names. The distinguished value of the cn attribute denotes the protocol's canonical name'
    MUST ( cn $ ipProtocolNumber $ description ) MAY description )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.5 NAME 'oncRpc' SUP top STRUCTURAL DESC 'Abstraction of an Open Network Computing (ONC)
    [RFC1057] Remote Procedure Call (RPC) binding. This class maps an ONC RPC number to a name.
    The distinguished value of the cn attribute denotes the RPC service's canonical name'
    MUST ( cn $ oncRpcNumber $ description ) MAY description )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.6 NAME 'ipHost' SUP top AUXILIARY DESC 'Abstraction of a host, an IP device. The distinguished
    value of the cn attribute denotes the host's canonical name. Device SHOULD be used as a structural class'
    MUST ( cn $ ipHostNumber ) MAY ( l $ description $ manager ) )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.7 NAME 'ipNetwork' SUP top STRUCTURAL DESC 'Abstraction of a network. The distinguished value of
    the cn attribute denotes the network's canonical name' MUST ( cn $ ipNetworkNumber )
    MAY ( ipNetmaskNumber $ l $ description $ manager ) )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.8 NAME 'nisNetgroup' SUP top STRUCTURAL DESC 'Abstraction of a netgroup. May refer to other netgroups'
    MUST cn MAY ( nisNetgroupTriple $ memberNisNetgroup $ description ) )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.09 NAME 'nisMap' SUP top STRUCTURAL DESC 'A generic abstraction of a NIS map'
    MUST nisMapName MAY description )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.10 NAME 'nisObject' SUP top STRUCTURAL DESC 'An entry in a NIS map'
    MUST ( cn $ nisMapEntry $ nisMapName ) MAY description )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.11 NAME 'ieee802Device' SUP top AUXILIARY DESC 'A device with a MAC address; device SHOULD be
    used as a structural class' MAY macAddress )
    dn: cn=subschemasubentry
    changeType: modify
    add: objectClasses
    objectClasses: ( 1.3.6.1.1.1.2.12 NAME 'bootableDevice' SUP top AUXILIARY DESC 'A device with boot parameters; device SHOULD be
    used as a structural class' MAY ( bootFile $ bootParameter ) )
    # End of LDIF file
    Give me email if you have any trouble getting this schema loaded into OID.
    Thanks,
    Jay
    null

  • Replicat error: ORA-12899: value too large for column ...

    Hi,
    In our system Source and Target are on the same physical server and in the same Oracle instance. Just different schemes.
    Tables on the target were created as 'create table ... as select * from ... source_table', so they have a similar structure. Table names are also similar.
    I started replicat, it worked fine for several hours, but when I inserted Chinese symbols into the source table I got an error:
    WARNING OGG-00869 Oracle GoldenGate Delivery for Oracle, OGGEX1.prm: OCI Error ORA-12899: value too large for column "MY_TARGET_SCHEMA"."TABLE1"."*FIRSTNAME*" (actual: 93, maximum: 40) (status = 12899), SQL <INSERT INTO "MY_TARGET_SCHEMA"."TABLE1" ("USERID","USERNAME","FIRSTNAME","LASTNAME",....>.
    FIRSTNAME is Varchar2(40 char) field.
    I suppose the problem probably is our database is running with NLS_LENGTH_SEMANTICS='CHAR'
    I've double checked tables structure on the target - it's identical with the source.
    I also tried to manually insert this record into the target table using 'insert into ... select * from ... ' statement - it works. The problem seems to be in the replicat.
    How to fix this error?
    Thanks in advance!
    Oracle GoldenGate version: 11.1.1.1
    Oracle Database version: 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    NLS_LANG: AMERICAN_AMERICA.AL32UTF8
    NLS_LENGTH_SEMANTICS='CHAR'
    Edited by: DeniK on Jun 20, 2012 11:49 PM
    Edited by: DeniK on Jun 23, 2012 12:05 PM
    Edited by: DeniK on Jun 25, 2012 1:55 PM

    I've created the definition files and compared them. They are absolutely identical, apart from source and target schema names:
    Source definition file:
    Definition for table MY_SOURCE_SCHEMA.TABLE1
    Record length: 1632
    Syskey: 0
    Columns: 30
    USERID 134 11 0 0 0 1 0 8 8 8 0 0 0 0 1 0 1 3
    USERNAME 64 80 12 0 0 1 0 80 80 0 0 0 0 0 1 0 0 0
    FIRSTNAME 64 160 98 0 0 1 0 160 160 0 0 0 0 0 1 0 0 0
    LASTNAME 64 160 264 0 0 1 0 160 160 0 0 0 0 0 1 0 0 0
    PASSWORD 64 160 430 0 0 1 0 160 160 0 0 0 0 0 1 0 0 0
    TITLE 64 160 596 0 0 1 0 160 160 0 0 0 0 0 1 0 0 0
    Target definition file:
    Definition for table MY_TAEGET_SCHEMA.TABLE1
    Record length: 1632
    Syskey: 0
    Columns: 30
    USERID 134 11 0 0 0 1 0 8 8 8 0 0 0 0 1 0 1 3
    USERNAME 64 80 12 0 0 1 0 80 80 0 0 0 0 0 1 0 0 0
    FIRSTNAME 64 160 98 0 0 1 0 160 160 0 0 0 0 0 1 0 0 0
    LASTNAME 64 160 264 0 0 1 0 160 160 0 0 0 0 0 1 0 0 0
    PASSWORD 64 160 430 0 0 1 0 160 160 0 0 0 0 0 1 0 0 0
    TITLE 64 160 596 0 0 1 0 160 160 0 0 0 0 0 1 0 0 0
    Edited by: DeniK on Jun 25, 2012 1:56 PM
    Edited by: DeniK on Jun 25, 2012 1:57 PM

  • [Error ORABPEL - 10900]... : Can not find definition for element 'process'

    Hi,
    When I try to deploy a bpel process using JDeveloper I'm having the following xml parse error:
    Error(21):
    [Error ORABPEL-10900]: xml parser error
    [Description]: in line 21 of "file:/C:/JDeveloper/jdev/mywork/NERGA/CriarProjectoSA/bpel/CriarProjectoSA.bpel", XML parsing failed because file:/C:/JDeveloper/jdev/mywork/NERGA/CriarProjectoSA/bpel/CriarProjectoSA.bpel<Line 21, Column 63>: XML-24538: (Error) Can not find definition for element 'process'.
    [Potential fix]: Fix the invalid XML.
    I don't understand why... Any idea?

    Ok.
    This is my BPEL code. The sapattern tags are from a program that is generating part of the code. The JDeveloper doesn't show any error, I only get the error when I try to deploy.
    <?xml version = "1.0" encoding = "UTF-8" ?>
    <process name="CriarProjectoSA"
    targetNamespace="http://xmlns.oracle.com/CriarProjectoSA"
    suppressJoinFailure="no"
    xmlns="http://xmlns.oracle.com/CriarProjectoSA"
    xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
    xmlns:ns4="http://xmlns.oracle.com/CriarProjectoSA"
    xmlns:ns7="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ns5="http://schemas.oracle.com/xpath/extension"
    xmlns:ns6="http://xmlns.oracle.com/bpel/workflow/xpath"
    xmlns:ns11="http://www.oracle.com/XSL/Transform/java/oracle.tip.esb.server.headers.ESBHeaderFunctions"
    xmlns:ns9="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
    xmlns:ns1="http://xmlns.oracle.com/ValidacaoProjectos"
    xmlns:ns3="http://www.nerga.pt" xmlns:ns2="http://tempuri.org/"
    xmlns:bpelx="http://schemas.oracle.com/bpel/extension"
    xmlns:ns10="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
    xmlns:ns8="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    <!--Generated by Telelogic System Architect on 05/01/2007 11:06:18 by easm-->
    <sapattern>
    <guid>41207640-d934-480f-902a-b3764f3d9c9f</guid>
    </sapattern>
    <partnerLinks>
    <partnerLink name="client" partnerLinkType="ns4:CriarProjectoSA"
    myRole="CriarProjectoSAProvider"/>
    <partnerLink name="NergaIS" partnerLinkType="ns2:ServiceSoap_PL"
    myRole="ServiceSoap_Role" partnerRole="ServiceSoap_Role"/>
    <partnerLink name="ValidacaoProjectos"
    partnerLinkType="ns1:ValidacaoProjectos"
    myRole="ValidacaoProjectosRequester"
    partnerRole="ValidacaoProjectosProvider"/>
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>e728e550-f404-47bf-aa13-72429480cbc6</guid>
    <guid>3111d1af-0b31-4d02-b3fc-73d14ce95405</guid>
    <guid>e9cdca59-888a-4e67-af54-a63ce2347ad3</guid>
    </sapattern>
    </partnerLinks>
    <variables>
    <variable name="outputVariable"
    messageType="ns4:CriarProjectoSAResponseMessage"/>
    <variable name="inputVariable"
    messageType="ns4:CriarProjectoSARequestMessage"/>
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>2503e820-3add-4cd1-bbc5-5cc5fff57090</guid>
    <guid>8bcc3532-46b7-4e88-816f-72ecdaee76ab</guid>
    </sapattern>
    <variable name="invocaVP_initiate_InputVariable"
    messageType="ns1:ValidacaoProjectosRequestMessage"/>
    <variable name="recebeVP_onResult_InputVariable"
    messageType="ns1:ValidacaoProjectosResponseMessage"/>
    <variable name="InvocaAdicionarProjecto_InputVariable"
    messageType="ns2:AdicionarProjectoSoapIn"/>
    <variable name="InvocaAdicionarProjecto_OutputVariable"
    messageType="ns2:AdicionarProjectoSoapOut"/>
    </variables>
    <sequence>
    <receive name="recebeTemplate" joinCondition="False" partnerLink="client"
    portType="ns4:CriarProjectoSA" operation="process"
    variable="inputVariable" createInstance="yes">
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>e728e550-f404-47bf-aa13-72429480cbc6</guid>
    <guid>68e62379-55ac-48eb-b681-aee8f5a7696d</guid>
    </sapattern>
    </receive>
    <scope variableAccessSerializable="no" name="ValidarExigências"
    joinCondition="False">
    <faultHandlers>
    <catchAll>
    <assign name="assignInvalid">
    <bpelx:append>
    <bpelx:from expression="concat(ns8:getVariableData('inputVariable','payload','/ns3:Template/ns3:Projecto/ns3:Observacoes'), string('Projecto inválido!!'))"/>
    <bpelx:to variable="inputVariable" part="payload"
    query="/ns3:Template/ns3:Projecto/ns3:Observacoes"/>
    </bpelx:append>
    </assign>
    </catchAll>
    </faultHandlers>
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>2e56af66-6622-43e0-9adc-6d5f109cf374</guid>
    </sapattern>
    <sequence name="ValidarExigências" joinCondition="False">
    <assign name="assignVPIn">
    <copy>
    <from variable="inputVariable" part="payload"/>
    <to variable="invocaVP_initiate_InputVariable" part="payload"/>
    </copy>
    </assign>
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>2e56af66-6622-43e0-9adc-6d5f109cf374</guid>
    </sapattern>
    <invoke name="invocaVP" joinCondition="False"
    partnerLink="ValidacaoProjectos" portType="ns1:ValidacaoProjectos"
    operation="initiate"
    inputVariable="invocaVP_initiate_InputVariable">
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>f3bc9c04-f4d2-4e96-acc8-7a6c88a8ced5</guid>
    </sapattern>
    </invoke>
    <receive name="recebeVP" joinCondition="False"
    partnerLink="ValidacaoProjectos"
    portType="ns1:ValidacaoProjectosCallback" operation="onResult"
    createInstance="no" variable="recebeVP_onResult_InputVariable">
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>e9cdca59-888a-4e67-af54-a63ce2347ad3</guid>
    <guid>1eba96a8-330a-4e4d-a14b-cdf6641fa614</guid>
    </sapattern>
    </receive>
    <assign name="assignVPOut">
    <copy>
    <from variable="recebeVP_onResult_InputVariable" part="payload"/>
    <to variable="inputVariable" part="payload"/>
    </copy>
    </assign>
    </sequence>
    </scope>
    <scope variableAccessSerializable="no" name="AdicionarProjecto"
    joinCondition="False">
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>89c02eae-7788-4892-a616-e46b65ef1b50</guid>
    </sapattern>
    <sequence name="InvocarISAdicionarProjecto" joinCondition="False">
    <assign name="assignIS">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns3:Template/ns3:Projecto/ns3:NomeProjecto"/>
    <to variable="InvocaAdicionarProjecto_InputVariable" part="parameters"
    query="/ns2:AdicionarProjecto/ns2:nome"/>
    </copy>
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns3:Template/ns3:Projecto/ns3:TipoProjecto"/>
    <to variable="InvocaAdicionarProjecto_InputVariable" part="parameters"
    query="/ns2:AdicionarProjecto/ns2:tipo"/>
    </copy>
    </assign>
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>89c02eae-7788-4892-a616-e46b65ef1b50</guid>
    </sapattern>
    <invoke name="InvocaAdicionarProjecto" joinCondition="False"
    partnerLink="NergaIS" portType="ns2:ServiceSoap"
    operation="AdicionarProjecto"
    inputVariable="InvocaAdicionarProjecto_InputVariable"
    outputVariable="InvocaAdicionarProjecto_OutputVariable">
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>76519bd3-c506-4c79-8190-8ff09abdd27d</guid>
    </sapattern>
    </invoke>
    </sequence>
    </scope>
    <assign name="assignOutput">
    <copy>
    <from variable="inputVariable" part="payload"
    query="/ns3:Template/ns3:Projecto"/>
    <to variable="outputVariable" part="payload"/>
    </copy>
    </assign>
    <reply name="devolveProjecto" joinCondition="False" partnerLink="client"
    portType="ns4:CriarProjectoSA" operation="process"
    variable="outputVariable">
    <sapattern>
    <!--The System Architect objects used in the pattern. To ensure traceability to System Architect DO NOT REMOVE-->
    <guid>e728e550-f404-47bf-aa13-72429480cbc6</guid>
    <guid>0dbefef0-3d04-4356-abbc-b291ea40d256</guid>
    </sapattern>
    </reply>
    </sequence>
    </process>

  • .v2.XMLParseException:Can not find definition for element 'descriptor'

    I am getting the following error, while running 'empps.jsp' ...when executing the tutorial given at
    ERROR Details:
    500 Internal Server Error
    javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: Error getting property 'employees' from bean of type jsftoplink.model.EmployeesClient: Exception [TOPLINK-25004] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.XMLMarshalExceptionException Description: An error occurred unmarshalling the documentInternal Exception: Exception [TOPLINK-27101] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.platform.xml.XMLPlatformExceptionException Description: An error occurred while parsing the document.Internal Exception: oracle.xml.parser.v2.XMLParseException: Can not find definition for element 'class-descriptor-type'     at com.sun.faces.taglib.html_basic.DataTableTag.doEndTag(DataTableTag.java:501)     at emps.jspService(_emps.java:629)
    Pls help me in resolving this issue.

    I am still gettng the same error. The xml file is now
    <?xml version="1.0" encoding="UTF-8"?>
    <CUSTOMER xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="" ID="568945">
    <FIRSTNAME>Arnold</FIRSTNAME>
    <LASTNAME>McEriccson</LASTNAME>
    <ADDRESS>
    <LINE1>31, Nomadic Avevnue</LINE1>
    <LINE2>Pasadena Clove</LINE2>
    <CITY>WoolTown, MT</CITY>
    <ZIP>45263</ZIP>
    </ADDRESS>
    <BIRTHDATE>1967-08-13</BIRTHDATE>
    </CUSTOMER>
    The xsd file is:
    <?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:element name="CUSTOMER">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="FIRSTNAME" type="xs:string"/> <xs:element name="LASTNAME" type="xs:string"/> <xs:element name="ADDRESS"> <xs:complexType>
    <xs:sequence>
    <xs:element name="LINE1" type="xs:string"/> <xs:element name="LINE2" type="xs:string"/> <xs:element name="CITY"/>
    <xs:element name="ZIP" type="xs:int"/> </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="BIRTHDATE" type="xs:date"/> </xs:sequence>
    <xs:attribute name="ID" type="xs:double"/> </xs:complexType>
    </xs:element>
    </xs:schema>
    There seems to be something fairly obvious that i am missing.

  • SQL Error: ORA-12899: value too large for column

    Hi,
    I'm trying to understand the above error. It occurs when we are migrating data from one oracle database to another:
    Error report:
    SQL Error: ORA-12899: value too large for column "USER_XYZ"."TAB_XYZ"."COL_XYZ" (actual: 10, maximum: 8)
    12899. 00000 - "value too large for column %s (actual: %s, maximum: %s)"
    *Cause:    An attempt was made to insert or update a column with a value
    which is too wide for the width of the destination column.
    The name of the column is given, along with the actual width
    of the value, and the maximum allowed width of the column.
    Note that widths are reported in characters if character length
    semantics are in effect for the column, otherwise widths are
    reported in bytes.
    *Action:   Examine the SQL statement for correctness.  Check source
    and destination column data types.
    Either make the destination column wider, or use a subset
    of the source column (i.e. use substring).
    The source database runs - Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    The target database runs - Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    The source and target table are identical and the column definitions are exactly the same. The column we get the error on is of CHAR(8). To migrate the data we use either a dblink or oracle datapump, both result in the same error. The data in the column is a fixed length string of 8 characters.
    To resolve the error the column "COL_XYZ" gets widened by:
    alter table TAB_XYZ modify (COL_XYZ varchar2(10));
    -alter table TAB_XYZ succeeded.
    We now move the data from the source into the target table without problem and then run:
    select max(length(COL_XYZ)) from TAB_XYZ;
    -8
    So the maximal string length for this column is 8 characters. To reduce the column width back to its original 8, we then run:
    alter table TAB_XYZ modify (COL_XYZ varchar2(8));
    -Error report:
    SQL Error: ORA-01441: cannot decrease column length because some value is too big
    01441. 00000 - "cannot decrease column length because some value is too big"
    *Cause:   
    *Action:
    So we leave the column width at 10, but the curious thing is - once we have the data in the target table, we can then truncate the same table at source (ie. get rid of all the data) and move the data back in the original table (with COL_XYZ set at CHAR(8)) - without any issue.
    My guess the error has something to do with the storage on the target database, but I would like to understand why. If anybody has an idea or suggestion what to look for - much appreciated.
    Cheers.

    843217 wrote:
    Note that widths are reported in characters if character length
    semantics are in effect for the column, otherwise widths are
    reported in bytes.You are looking at character lengths vs byte lengths.
    The data in the column is a fixed length string of 8 characters.
    select max(length(COL_XYZ)) from TAB_XYZ;
    -8
    So the maximal string length for this column is 8 characters. To reduce the column width back to its original 8, we then run:
    alter table TAB_XYZ modify (COL_XYZ varchar2(8));varchar2(8 byte) or varchar2(8 char)?
    Use SQL Reference for datatype specification, length function, etc.
    For more info, reference {forum:id=50} forum on the topic. And of course, the Globalization support guide.

  • JPA: how to organize multiple databases having the same schema definition?

    Hi there,
    I'm new to Java EE but I could finish some test projects on GlassFish 3 / Java EE 6 platform.
    Now it's time to build the actual system and I need some help in that.
    So, I can't really tell you the exact purpose of this system but let's look at the following example which is very close to what I need.
    Say there is a database schema definition (DDL) for Oracle 11g and this schema is storing the inventory of a shop. So tables like product, category, price etc
    Say there are 50 shops, and I'm getting a new database for each shop every month holding their inventory.
    So every month I'm receiving a SQL file with INSERTs (DML) for every shop for the DDL I mentioned above.
    I'm getting 50 SQL files for the 50 shops every month, so in a year you're talking about 600 SQL files to import.
    If it was php/MySQL I could import them into a separate database each, call it shop1_May11, shop2_May11 etc reflecting the shop name and the month in the database name.
    This is my question how you guys think I should achieve this in Jave EE / Oracle.
    As the DDL is the same I thought to create an Entity for each table and use the Java Persistance API to create the databases and then I'd import the month/shop specific SQL files.
    But this means I'm gonna create 50 new schemas in Oracle every month?
    Or what's the best way to achieve this?
    Thanks in advance
    Edited by: 833519 on May 18, 2011 5:28 AM
    Edited by: 833519 on May 18, 2011 5:29 AM
    Edited by: 833519 on May 18, 2011 5:31 AM

    JPA helps a lot in persisting and retrieving data that has relationships without having to worry about the relationships at a sQL level.
    So you get a java programmer that builds relationships using Java classes (the entities) and a persistence provider worries about the sql required to materialize those relationships.
    You seem to be using SQL inserts for persisting the data and you want to generate the reports from SQL as well.
    You can use it but you won't be gaining much of its advantages for this project.
    Consider reporting applications like the jasperserver for the reports.
    Also, I have seen people get away with using one database for this type of thing and just adding a clientid (and optionally branchid) to each table.

  • Where can I find Adapter Specific Message Attributes ASMA Schema Definition

    Hi all,
    I'm on PI 7.1 and want to use the Mail adapter in XIPAYLOAD mode.
    I want to map to the ASMA schema definition in the Enterprise Service Builder.
    I'm wondering where I can get this "new" schema?
    For example the "old" mail adapter xml schema could be found in Note 748024.
    REgards,
    John
    Note 748024 - XI Mail Adapter XML Schema "Old"
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=748024
    SAP Help Configuring the Receiver mail adapter
    http://help.sap.com/saphelp_nwpi71/helpdata/en/43/96cb0fb9335b77e10000000a11466f/frameset.htm
    Note 856599
    https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=856599
    Should I use MailPackage or ASMA?
               A: SP14 introuced the Adapter Specific Message Attributes (ASMA) that can be used to import and export adapter/transport specific headers into and out of XI. This is a generic mechanism for all adapters and other components such as mapping and routing can directly access or manipulate these values. The functionality provided by MailPackage is available in ASMA. Therefore, it is recommended that new scenarios use ASMA instead of MailPackage.

    John,
    the idea behind ASMA is exactly not to depend on modifying the payload to be able to map data that is just relevant to the communication layer, not the application.
    Instead of having a target XSD that you need to map your source message to, filling the communication details, instead you create XI specific message headers (the so called "adapter specific message attributes") that go in the message within the SOAP Header, hence not requiring any modification of the payload whatsoever.
    Notice that not having to modify the payload doesn't mean not having a mapping program, since the mapping can modify both the payload and the header, and sometimes it's a good approach to fill the ASMAs in a mapping, just bypassing the payload to the output unmodified.
    BR,
    Henrique.

  • Not able to define the Simulator definition for adapter service

    Hi all,
    I am trying to define a simulator definition for adapter service(which is a synchronous adapter service) but I am not able to define the same. As soon as I input Name, serice Name, Service version, Process Name, PIP, Type and Service Type and click on "Next" or "Save And Return" I am getting the error as--
    "ORA-01555: snapshot too old: rollback segment number 3 with name "_SYSSMU3_2097677531$" too small ORA-06512: at line 1".
    Can any one suggest me why I am getting this error. I already had defined the simulators before, and at that time I didn't faced this error, but now I am not able to define the same.
    Pls help me to resolve this problem.

    Its an issue with your database rather than with CAVS. Try increasing your rollback segment space.

  • Unable to find a WSDL that has a definition for service

    Dear all
    I have a very simple composite applicationexposing a web service. When I deploy the application I get:
    There was an error deploying the composite on soa_server1: Deployment Failed: Unable to find a WSDL that has a definition for service {http://soa/sf/login}bpelprocess1_client_ep and port loginPort_pt. Please make sure that the port attribute for the binding defined in the composite file is correct by checking the namespace, service name, and port name. In addition, check that the WSDL associated with the binding namespace is imported and currently reachable (check the import nodes at the top of the composite file). Finally, validate the HTTP proxy settings for the server.
    However the build process shows no errors. The entire application was built using Jdeveloper 11.1.1.5 using a pre-constructed WSDL. The SOA suite is 11.1.1.5
    Any pointers will be really appreciated.
    Thanks
    The composite is this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <!-- Generated by Oracle SOA Modeler version 1.0 at [2/28/13 2:25 PM]. -->
    <composite name="SOA2" revision="1.0" label="2013-02-28_14-25-14_553"
    mode="active" state="on" xmlns="http://xmlns.oracle.com/sca/1.0"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"
    xmlns:orawsp="http://schemas.oracle.com/ws/2006/01/policy"
    xmlns:ui="http://xmlns.oracle.com/soa/designer/">
    <import namespace="http://soa/sf/login" location="loginToSFDC.wsdl"
    importType="wsdl"/>
    <service name="bpelprocess1_client_ep" ui:wsdlLocation="loginToSFDC.wsdl">
    <interface.wsdl interface="http://soa/sf/login#wsdl.interface(loginPort)"/>
    <binding.ws port="http://soa/sf/login#wsdl.endpoint(bpelprocess1_client_ep/loginPort_pt)"/>
    </service>
    <component name="BPELProcess1" version="2.0">
    <implementation.bpel src="BPELProcess1.bpel"/>
    <property name="bpel.config.transaction" type="xs:string" many="false">required</property>
    </component>
    <wire>
    <source.uri>bpelprocess1_client_ep</source.uri>
    <target.uri>BPELProcess1/bpelprocess1_client</target.uri>
    </wire>
    </composite>
    The WSDL used to generate the BPEL is:
    <?xml version= '1.0' encoding= 'UTF-8' ?>
    <definitions
    targetNamespace="http://soa/sf/login"
    xmlns="http://schemas.xmlsoap.org/wsdl/"
    xmlns:tns1="http://soa/sf/login"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:flt="urn:fault.partner.soap.sforce.com"
    xmlns:obj="urn:sobject.partner.soap.sforce.com"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:typ="urn:partner.soap.sforce.com"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
    >
    <types>
    <xsd:schema targetNamespace="http://uk.gov.fca.sf/login" elementFormDefault="qualified" xmlns:tns1="http://uk.gov.fca.sf/login"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:flt="urn:fault.partner.soap.sforce.com"
    xmlns:obj="urn:sobject.partner.soap.sforce.com" xmlns:typ="urn:partner.soap.sforce.com"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/">
    <xsd:import namespace="urn:partner.soap.sforce.com" schemaLocation="xsd/partner_types.xsd"/>
    <xsd:import namespace="urn:fault.partner.soap.sforce.com" schemaLocation="xsd/partner_faults.xsd"/>
    <xsd:import namespace="urn:sobject.partner.soap.sforce.com" schemaLocation="xsd/partner_objects.xsd"/>
    </xsd:schema>
    </types>
    <message name="loginInMessage">
    <part name="loginIn" element="typ:login"/>
    <part name="LoginScopeHeaderIn" element="typ:LoginScopeHeader"/>
    <part name="CallOptionsIn" element="typ:CallOptions"/>
    </message>
    <message name="loginOutMessage">
    <part name="return" element="typ:loginResponse"/>
    </message>
    <portType name="loginPort">
    <operation name="loginOp">
    <input message="tns1:loginInMessage"/>
    <output message="tns1:loginOutMessage"/>
    </operation>
    </portType>
    <binding name="loginPortSOAP11Binding" type="tns1:loginPort">
    <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="loginOp">
    <soap:operation style="document" soapAction="http://soa:8101/login/loginOp"/>
    <input>
    <soap:body use="literal" parts="in"/>
    </input>
    <output>
    <soap:body use="literal" parts="return"/>
    </output>
    </operation>
    </binding>
    <binding name="loginPortSOAP12Binding" type="tns1:loginPort">
    <soap12:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="loginOp">
    <soap12:operation style="document" soapAction="http://uk.gov.fca.sf:7101/login/loginOp" soapActionRequired="false"/>
    <input>
    <soap12:body use="literal" parts="in"/>
    </input>
    <output>
    <soap12:body use="literal" parts="return"/>
    </output>
    </operation>
    </binding>
    <service name="loginSrvc">
    <port name="login_port_11" binding="tns1:loginPortSOAP11Binding">
    </port>
    <port name="login_port_12" binding="tns1:loginPortSOAP12Binding">
    </port>
    </service>
    <partnerLinkType name="ProviderRole"
    xmlns="http://schemas.xmlsoap.org/ws/2003/05/partner-link/">
    <role name="Role1">
    <portType name="tns1:loginPort"/>
    </role>
    </partnerLinkType>
    </definitions>

    Hi,
    I don't see a loginPort_pt port in the wsdl, but it is referenced by the composite...
    There's only ports login_port_11 and login_port_12 defined...
    Cheers,
    Vlad

Maybe you are looking for