Adding NameSpace as Attribute of Element

Hi all,
I have an element called Batch which has the attributes BatchID="" NoOfEntries="" and what I have to do is add another attribute but this attribute needs to be:
xmlns="urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1.0"
It doesnt seem to be adding this extra attribute, even if I add another simpler attribute such as Names="john" it wont add any more....
Is there a limit to the number of attributes you can add to an element using the following code:
elm.setAttribute("Name", "John");If there is no limit would I be able to add the above (xmlns) as an attribute as I know it has some strange characters in there?

Hi thanks for the help but I am slightly confused on this matter now,
Basically what I have is an element in an XML as in the following:
<bat:Batch Name=xyz" Age="123"
xmlns="urn:x-commerceone:document:com:commerceone:CBL:CBL.sox$1.0"
xmlns:bat="urn:x-commerceone:document:btsox:Batch.sox$1.0"
xmlns:sro="urn:x-commerceone:document:telcoapisox:ServiceRequestOrder.sox$1.0"
xmlns:dsl="urn:x-commerceone:document:btsox:DSL.sox$1.0"> I guess all these are definitions of namespaces. I cannot set the element name to bat:Batch as I think the colon isnt allowed and hance the use of the NSpace. The NSpace are as above,
I have located the element that I want to add the above definition to, this is the element elm.
Then using elm.setAttribute("", ""); I am adding the Name and Age attributes, but am having probs adding the namespace stuff and hence using the colon bat:Batch too,
Please could you explain a bit further on this, I am looking around in the forums but not getting anywhere fast. Basically I need to have the above attributes as my header in the XML,
Thanks again,

Similar Messages

  • Adding namespace doens't work

    Hi,
    I need to add the namespace to a IDOC. It seens to, that XI doesn't add the namespace for IDOC.
    To do that I implement a java mapping like this :
    public void execute(InputStream in, OutputStream out)
              throws StreamTransformationException {
                        Document source = null; // Source message
              String sourceString = null; // Source XML message as a string
              // Create out of the InputStream the Source XML document
              try {
                   DocumentBuilderFactory factory =
                        DocumentBuilderFactory.newInstance();
                   source = factory.newDocumentBuilder().parse(in);
                   // Add namespace to document
                   Element root = source.getDocumentElement();
                   String messageNamespace = null;
                   messageNamespace = (String)param.get(StreamTransformationConstants.INTERFACE_NAMESPACE);
                   root.setAttribute("xmlns",messageNamespace);
    During runtime the result of this mapping ist the following :
    <?xml version="1.0" encoding="utf-8"?>
    <ORDERS05 xmlns="urn:sap-com:document:sap:idoc:messages">
    <IDOC xmlns="" BEGIN="1">
    <......
    Why the mappingruntime add the xmlns="" in the IDOC tag ?
    Any hints ?
    Regards,
    Gerald

    Hello Gerald,
    We'd the same problem here. Actually R3 didn't put a namespace inside the IDOC XML format.  I opened a message some months ago. Here the answer from SAP:
    +"...XML namespaces are a part of the XML syntax as attributes and elements.
    Some XML documents will use them and others not. (The same as some XML
    documents will contain attributes and others not). When XML namespaces
    are used the syntax is with these xmlns- resp. xmlns:
    In this case unfortunately there exists no BAdI or a user exit. So the
    only way I see is a modification of the standard.
    Within Include "LEDI7F04" there is a paragraph
    Idoctyp immer
        CLEAR OUT_STRING.
        IF EDIDC-IDOCTP CA '_'. " enthält mind. ein _
          CONCATENATE START_CONTROL_IDOCTYP CDATA_START_TAG EDIDC-IDOCTP
                      CDATA_END_TAG END_CONTROL_IDOCTYP
                      INTO OUT_STRING.
        ELSE.
          CONCATENATE START_CONTROL_IDOCTYP EDIDC-IDOCTP END_CONTROL_IDOCTYP
                      INTO OUT_STRING.
        ENDIF.
    This builds the "" for your scenario.
    As the coding is different for Unicode and Non-Unicode, you have to
    make such a coding modification for the Unicode case within Include
    "LEDI7F05" in the following paragraph:
    idoctyp immer
        concatenate i_string start_control_idoctyp edidc-idoctp
                               end_control_idoctyp into i_string.
      [within form "control_record_xml"]
    As there is a BAdI for the Unicode case, I recommend to use the BAdI
    instead of a modification.
    Hope that this information could help you!!
    Regards,
    Gustavo Kauffman

  • Getting exception after adding new View attribute in OCO

    Hi,
    I have added a new field in Oracle Customers Online -> Customers -> Accounts Summary page. I had changed the query in the VO and added the view attribute through JDeveloper and created the corresponding VORowImpl java class. I have referred the same View attribute in the page bean also. When i am doing the testing i am getting the exception. Any idea to resolve this issue. I have given the customization details below.
    Page bean: IMCAccountsSummaryEditPG.xml
    Newly added line..
                                            <oa:messageStyledText id="CreditHold" dataType="VARCHAR2" prompt="CreditHold" text="CreditHold" viewName="IMCCustAcoountsVO1" viewAttr="CreditHold" maximumLength="30" sortState="yes" shortDesc="Credit Hold"/>
    VO: IMCCustAcoountsVO.xml
    Refer credit_hold in the query and CreditHold in the view attribute for the newly added column.
    <?xml version="1.0" encoding='windows-1252'?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!-- $Header: IMCCustAcoountsVO.xml 115.6 2005/01/20 23:11:08 kttang noship $ -->
    <ViewObject
    Name="IMCCustAcoountsVO"
    BindingStyle="Oracle"
    CustomQuery="true"
    RowClass="oracle.apps.imc.customer.account.server.IMCCustAcoountsVORowImpl"
    ComponentClass="oracle.apps.imc.customer.account.server.IMCCustAcoountsVOImpl"
    MsgBundleClass="oracle.jbo.common.JboResourceBundle"
    FetchMode="FETCH_AS_NEEDED"
    UseGlueCode="false" >
    <SQLQuery><![CDATA[
    SELECT account_number, account_name , pc.name AS profile_class ,
    rat.name AS payment_terms, TO_CHAR(TRUNC(act.creation_date)) creation_date , lu.meaning AS status, act.status AS theStatus,
    DECODE(1,1,'viewDisabled', 'viewEnabled') credit_summary, act.party_id AS party_id, act.cust_account_id, pt.party_name, 'updateEnabled' update_account
    , lu1.meaning AS credit_hold
    FROM HZ_CUST_ACCOUNTS act, HZ_CUSTOMER_PROFILES cp, HZ_CUST_PROFILE_CLASSES pc,
    ar_lookups lu,
    ar_lookups lu1,
    ra_terms rat, hz_parties pt
    WHERE act.PARTY_ID = :0
    AND act.cust_account_id = cp.cust_account_id
    AND cp.profile_class_id = pc.profile_class_id
    AND cp.SITE_USE_ID IS NULL
    AND cp.standard_terms = rat.term_id (+)
    AND lu.lookup_type= 'CODE_STATUS'
    AND lu.lookup_code = act.status
    AND lu1.lookup_type(+) = 'FOB'
    AND lu1.lookup_code(+) = act.fob_point
    AND act.party_id = pt.party_id
    ]]></SQLQuery>
    <DesignTime>
    <Attr Name="_isCodegen" Value="true" />
    <Attr Name="_version" Value="9.0.3.13.75" />
    <Attr Name="_CodeGenFlagNew" Value="36" />
    </DesignTime>
    <ViewAttribute
    Name="AccountNumber"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Precision="30"
    Type="java.lang.String"
    AliasName="ACCOUNT_NUMBER"
    ColumnType="VARCHAR2"
    Expression="ACCOUNT_NUMBER"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="AccountName"
    IsQueriable="false"
    IsPersistent="false"
    Precision="240"
    Type="java.lang.String"
    AliasName="ACCOUNT_NAME"
    ColumnType="VARCHAR2"
    Expression="ACCOUNT_NAME"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="240" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="ProfileClass"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Precision="30"
    Type="java.lang.String"
    AliasName="PROFILE_CLASS"
    ColumnType="VARCHAR2"
    Expression="PROFILE_CLASS"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="PaymentTerms"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Precision="15"
    Type="java.lang.String"
    AliasName="PAYMENT_TERMS"
    ColumnType="VARCHAR2"
    Expression="PAYMENT_TERMS"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="15" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="CreationDate"
    IsQueriable="false"
    IsPersistent="false"
    Precision="15"
    Type="java.lang.String"
    AliasName="CREATION_DATE"
    ColumnType="VARCHAR2"
    Expression="CREATION_DATE"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="7" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="Status"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Precision="80"
    Type="java.lang.String"
    AliasName="STATUS"
    ColumnType="VARCHAR2"
    Expression="STATUS"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="80" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="Thestatus"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Precision="1"
    Type="java.lang.String"
    AliasName="THESTATUS"
    ColumnType="VARCHAR2"
    Expression="THESTATUS"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="1" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="CreditSummary"
    IsQueriable="false"
    IsPersistent="false"
    Precision="22"
    Type="java.lang.String"
    AliasName="CREDIT_SUMMARY"
    ColumnType="VARCHAR2"
    Expression="CREDIT_SUMMARY"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="PartyId"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Precision="15"
    Scale="0"
    Type="oracle.jbo.domain.Number"
    AliasName="PARTY_ID"
    ColumnType="VARCHAR2"
    Expression="PARTY_ID"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="CustAccountId"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Precision="15"
    Scale="0"
    Type="oracle.jbo.domain.Number"
    AliasName="CUST_ACCOUNT_ID"
    ColumnType="VARCHAR2"
    Expression="CUST_ACCOUNT_ID"
    SQLType="NUMERIC" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="PartyName"
    IsQueriable="false"
    IsPersistent="false"
    IsNotNull="true"
    Precision="360"
    Type="java.lang.String"
    AliasName="PARTY_NAME"
    ColumnType="VARCHAR2"
    Expression="PARTY_NAME"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="360" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="UpdateAccount"
    IsPersistent="false"
    Precision="13"
    Type="java.lang.String"
    AliasName="UPDATE_ACCOUNT"
    ColumnType="VARCHAR2"
    Expression="UPDATE_ACCOUNT"
    SQLType="VARCHAR" >
    <DesignTime>
    <Attr Name="_DisplaySize" Value="13" />
    </DesignTime>
    </ViewAttribute>
    <ViewAttribute
    Name="CreditHold"
    IsPersistent="false"
    Precision="255"
    Type="java.lang.String"
    AliasName="CREDIT_HOLD"
    ColumnType="VARCHAR2"
    Expression="CREDIT_HOLD"
    SQLType="VARCHAR" >
    </ViewAttribute>
    </ViewObject>
    Exception:
    oracle.apps.fnd.framework.OAException: Programming error. Row ([email protected]3) must be of type oracle.apps.fnd.framework.OARow.
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1223)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2898)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
         at oa_html._OA._jspService(_OA.java:105)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: Programming error. Row ([email protected]3) must be of type oracle.apps.fnd.framework.OARow.
         at oracle.apps.fnd.framework.webui.OADictionaryDataViewObject.getItem(OADictionaryDataViewObject.java:97)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer._renderTableRows(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderTableRows(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderTableContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.TableRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.table.OATableBean.render(OATableBean.java:635)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer._renderTableContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:398)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3209)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2888)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
         at oa_html._OA._jspService(_OA.java:105)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    oracle.apps.fnd.framework.OAException: Programming error. Row ([email protected]3) must be of type oracle.apps.fnd.framework.OARow.
         at oracle.apps.fnd.framework.webui.OADictionaryDataViewObject.getItem(OADictionaryDataViewObject.java:97)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer._renderTableRows(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderTableRows(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderTableContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.TableRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.desktop.TableRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.table.OATableBean.render(OATableBean.java:635)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.HeaderRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer._renderTableContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.renderWithNode(Unknown Source)
         at oracle.cabo.ui.composite.UINodeRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.oracle.desktop.PageLayoutRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.XhtmlLafRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.BodyRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.OABodyBean.render(OABodyBean.java:398)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderIndexedChild(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.renderContent(Unknown Source)
         at oracle.cabo.ui.BaseRenderer.render(Unknown Source)
         at oracle.cabo.ui.laf.base.xhtml.DocumentRenderer.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.BaseUINode.render(Unknown Source)
         at oracle.cabo.ui.partial.PartialPageUtils.renderPartialPage(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageBean.render(OAPageBean.java:3209)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2888)
         at oracle.apps.fnd.framework.webui.OAPageBean.renderDocument(OAPageBean.java:2700)
         at oa_html._OA._jspService(_OA.java:105)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:417)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:267)
         at oracle.jsp.JspServlet.internalService(JspServlet.java:186)
         at oracle.jsp.JspServlet.service(JspServlet.java:156)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:456)
         at org.apache.jserv.JServConnection.run(JServConnection.java:294)
         at java.lang.Thread.run(Thread.java:534)
    Let me know if you need more details.
    Thanks in Advance
    Regards,
    Kesavan

    First this is not the right way to do it. You should extend the VO and create a new vo and add the new attribute, then use personalization to add a new item, create substitution to represent the old VO with your new VO. Did you follow these steps to do the extension ?

  • Converting Schema attributes to elements

    I have trouble registering a schema into Oracle. The problem seems to be that the schema defines Attributes and Oracle does not like Attributes.
    Does someone have a XSL to convert schema attributes into elements?
    I am able to convert the attributes in the XML data file to elements.
    Any help will be appreciated
    Thanks
    SP

    The following xml schema is from the Oracle XML guide. It has attributes in it.
    I've used XMLSpy to validate my xsd before, and it indicated they where valid when indeed it was not. That is why I now use the link I sent previously.
    The purchase-order XML schema is contained in file po.xsd:
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:annotation>
    <xsd:documentation xml:lang="en">
    Purchase order schema for Example.com.
    Copyright 2000 Example.com. All rights reserved.
    </xsd:documentation>
    </xsd:annotation>
    <xsd:element name="purchaseOrder" type="PurchaseOrderType"/>
    <xsd:element name="comment" type="xsd:string"/>
    <xsd:complexType name="PurchaseOrderType">
    <xsd:sequence>
    <xsd:element name="shipTo" type="USAddress"/>
    <xsd:element name="billTo" type="USAddress"/>
    <xsd:element ref="comment" minOccurs="0"/>
    <xsd:element name="items" type="Items"/>
    </xsd:sequence>
    <xsd:attribute name="orderDate" type="xsd:date"/>
    </xsd:complexType>
    <xsd:complexType name="USAddress">
    <xsd:sequence>
    <xsd:element name="name" type="xsd:string"/>
    <xsd:element name="street" type="xsd:string"/>
    <xsd:element name="city" type="xsd:string"/>
    <xsd:element name="state" type="xsd:string"/>
    <xsd:element name="zip" type="xsd:decimal"/>
    </xsd:sequence>
    <xsd:attribute name="country" type="xsd:NMTOKEN" fixed="US"/>
    </xsd:complexType>
    <xsd:complexType name="Items">
    <xsd:sequence>
    <xsd:element name="item" minOccurs="0" maxOccurs="unbounded">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="productName" type="xsd:string"/>
    <xsd:element name="quantity">
    <xsd:simpleType>
    <xsd:restriction base="xsd:positiveInteger">
    <xsd:maxExclusive value="100"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="USPrice" type="xsd:decimal"/>
    <xsd:element ref="comment" minOccurs="0"/>
    <xsd:element name="shipDate" type="xsd:date" minOccurs="0"/>
    </xsd:sequence>
    <xsd:attribute name="partNum" type="SKU" use="required"/>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>

  • Namespace prefix in SOAP Elements causes problems in XI

    Hi guys,
    I'm using code generated by NW Developer Studio for use inside Portal components acting as a web service consumer. The problem is that the code generated includes a namespace prefix for each element in the body of the message, but XI doesn't like the namespace prefixes and throws back a DeliveryException.
    The SOAP message created by the generated NWDS code is:
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wn3="http://www.w3.org/1999/XMLSchema" xmlns:wn2="http://www.w3.org/2000/10/XMLSchema" xmlns:wn1="http://www.w3.org/2001/XMLSchema" xmlns:wn0="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wn4="http://allieddomecq.com/poc" xmlns:tns="http://allieddomecq.com/poc">
         <SOAP-ENV:Body>
              <wn4:PortalSOAP_MT_Request>
                   <wn4:CustomerIdentifier>0001000064</wn4:CustomerIdentifier>
                   <wn4:SalesOrganization>ES50</wn4:SalesOrganization>
                   <wn4:SystemIdentifier>R3D</wn4:SystemIdentifier>
              </wn4:PortalSOAP_MT_Request>
         </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    The problem is the "wn4" prefixes on the CustomerIdentifier, SalesOrganization, and SystemIdentifier tags. When we send the soap request from XML Spy without the prefixes, the response comes back OK with the expected data.
    I've had a very good look around the generated code - the serializers for creating the soap request - but could not find what exactly might be changed to leave off the prefixes.
    Alternatively, is there something I could ask our XI consultant to do, to make his component accept the request with the redundant prefixes in the tags?
    Many thanks for any advice/help,
    Laura

    Hi Laura,
    you have to realize that the two documents
    <ns:CustomerRecord xmlns:ns="http://company.com">
    <ns:CustomerNumber> </ns:CustomerNumber>
    <ns:CustomerDetails> </ns:CustomerDetails>
    </ns:CustomerRecord>
    and
    <ns:CustomerRecord xmlns:ns="http://company.com">
    <CustomerNumber> </CustomerNumber>
    <CustomerDetails> </CustomerDetails>
    </ns:CustomerRecord>
    from an XMl point of view have totally fifferent structure. Thus, a mapping which is able to deal with the first structure will fail for the second and vice versa.
    Surely, both structures somehow can carry the same information, but they do this with different languages (Maybe you can compare this to the fact, that you may deliver the same information in English or in German language).
    When you model the structure in Integration Repository using datatypes and message types (what I think you did), you will always get a structure that looks like the second one. This is just a convention (like the convention that all information in this forum should be presented in English). When defining a message mapping for this structure it also relies on this fact and thus will not understand the other kind of document.
    External Definitions are more flexible. They are also able to understand structures that are modelled the other way. This greater flexibility is due to the fact that External Definitions were designed to understand structures that come from an external world where different conventionts might be used.
    To come to a conclusion: If the structure you have to deal with has been defined externally then it is not intended that you model it inside the Integration Builder using datatypes and message types. In this case the external source should provide a description of the message as XSD, WSDL, or DTD. You upload this as External Definition, and everything works fine.
    If you have designed the structure yourself, you can model it with datatypes and message types. But then you will always get a structure which looks like the second one. In this case you should make sure that all other participants in the game also stick to that structure. Then everything will be fine, too.
    Greetings Stephan

  • [svn:fx-trunk] 5587: Adding @namespace to halo and haloclassic defaults. css themes.

    Revision: 5587
    Author: [email protected]
    Date: 2009-03-26 12:06:28 -0700 (Thu, 26 Mar 2009)
    Log Message:
    Adding @namespace to halo and haloclassic defaults.css themes.
    QE: Could you please check if this fixes the recent themes issues, and that -compatibility-version=3.0.0 still works as expected too?
    Dev: No
    Doc: No
    Checkintests: Pass
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/halo/defaults.css
    flex/sdk/trunk/frameworks/projects/haloclassic/defaults.css

    I just saw that we are using xmlns:mx="http://www.adobe.com/2006/mxml" in all our custom components written in mxml, including our main application.
    In our custom css, I have the default namespace set to:
    @namespace "library://ns.adobe.com/flex/mx";
    could this result in these warnings ?

  • Did not find needed xsi:type attribute on element anyType

    The followings exception is thrown when using the access a web service using the
    proxy jar.
    The return xml contains
    <debts xm:bind="debts is return.safaccount.debts">
    <anyType xm:multiple="debt in return.safaccount.debts">{debt}</anyType>
    </debts>
    debts is a vector contains Serializable Object class.
    How do you resolve this?
    <Nov 14, 2002 2:36:27 PM ICT> <Error> <HTTP> <101019> <[ServletContext(id=553030
    0,name=EAIService,context-path=/EAIService)] Servlet failed with IOException
    java.rmi.RemoteException: web service invoke failed; nested exception is:
    javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.sch
    ema.binding.DeserializationException: did not find needed xsi:type attribute on
    element <anyType>
    javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.bind
    ing.DeserializationException: did not find needed xsi:type attribute on element
    <anyType>
    at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:296)
    at weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage.java:35
    9)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:465)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav

    Hi Daniel,
    This is really an "constructing and XMLMap issue" with WebLogic Workshop, so I
    would post it on that newsweb group:
    weblogic.developer.interest.workshop
    BTW: Serialization/Deserialization required instanciable classes with no-arg constructors.
    You should attach the WSDL for this web service, so that folks can see what Workshop
    generated for the schema element(s). This (the schema elements) is probably where
    the problem starts :-) Also, state if that is the default xmlmap generated by
    Workshop, or a custom one.
    Regards,
    Mike Wooten
    "daniel" <[email protected]> wrote:
    >
    The followings exception is thrown when using the access a web service
    using the
    proxy jar.
    The return xml contains
    <debts xm:bind="debts is return.safaccount.debts">
    <anyType xm:multiple="debt in return.safaccount.debts">{debt}</anyType>
    </debts>
    debts is a vector contains Serializable Object class.
    How do you resolve this?
    <Nov 14, 2002 2:36:27 PM ICT> <Error> <HTTP> <101019> <[ServletContext(id=553030
    0,name=EAIService,context-path=/EAIService)] Servlet failed with IOException
    java.rmi.RemoteException: web service invoke failed; nested exception
    is:
    javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.sch
    ema.binding.DeserializationException: did not find needed xsi:type attribute
    on
    element <anyType>
    javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.bind
    ing.DeserializationException: did not find needed xsi:type attribute
    on element
    <anyType>
    at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:296)
    at weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage.java:35
    9)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
    a:465)
    at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav

  • How to create/add attributes in element list in Screen (example 100)

    HI,
    how to create/add attributes in element list in Screen (example 100)
    I mean after creating screen ..it has "OK CODE " attribute in element list tab in 100 screen.
    I want to create "container" in Element list tab in my screen 100 program
    I want to create new layout " container" in the element tab (i know if i click on layout button where i can create manually)
    Thanks
    Edited by: Raja on Apr 29, 2009 4:19 PM

    Hi Raja,
    Do you remember how you resolved this problem? I am facing the same. Appreciate your response.
    Thanks,
    Shailaja

  • Adding namespace qualification to elements...

    <!-- -- Begin data to be encrypted ----->
    <m:sayHello xmlns:m="http://www.bea.com/servers/wls/samples/examples/webservices/basic/javaclass3">
    <intVal xsi:type="xsd:int">3</intVal>
    <string xsi:type="xsd:string">ABCDEFG</string>
    </m:sayHello>
    <!----- End data to be encrypted -- -->
    Above is the data that I'm encrypting.
    I'd like to ***add*** xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" to BOTH the <intVal> and <string> elements. Is this possible?
    The other option would be to OMIT the xsi:type and make it less strict but as I understand the value of type MUST BE an "NMTOKEN" -- so presumably can't be anything loosey-goosey?
    =======================================================
    So I'd like the data I'm encrypting to look like this:
    =======================================================
    <m:sayHello xmlns:m="http://www.bea.com/servers/wls/samples/examples/webservices/basic/javaclass3">
    <intVal xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:int">3</intVal>
    <string xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xsd:string">ABCDEFG</string>
    </m:sayHello>
    =================================
    Here is my web-services.xml file:
    =================================
    <?xml version="1.0" encoding="UTF-8" ?>
    - <web-services>
    - <web-service useSOAP12="false" targetNamespace="http://www.bea.com/servers/wls/samples/examples/webservices/basic/javaclass3" name="HelloWorld" style="rpc" uri="/HelloWorld">
    - <security>
    - <user>
    <name>ivory</name>
    <password>itfloats</password>
    </user>
    - <encryptionKey>
    <name>s1as</name>
    <password>changeit</password>
    </encryptionKey>
    - <spec:SecuritySpec xmlns:spec="http://www.openuri.org/2002/11/wsse/spec" spec:Namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" spec:Id="default-spec">
    <spec:UsernameTokenSpec PasswordType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText" />
    <spec:BinarySecurityTokenSpec EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" />
    <spec:EncryptionSpec spec:EncryptBody="true" spec:EncryptionMethod="http://www.w3.org/2001/04/xmlenc#tripledes-cbc" spec:KeyWrappingMethod="http://www.w3.org/2001/04/xmlenc#rsa-1_5" />
    </spec:SecuritySpec>
    <spec:SecuritySpec xmlns:spec="http://www.openuri.org/2002/11/wsse/spec" spec:Namespace="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" spec:Id="nothingburger-spec" />
    </security>
    - <components>
    <java-class name="jcComp0" class-name="examples.webservices.basic.javaclass3.HelloWorld" />
    </components>
    - <operations>
    - <operation name="sayHello" method="sayHello(int,java.lang.String)" component="jcComp0" in-security-spec="default-spec" out-security-spec="nothingburger-spec">
    - <params>
    <param style="in" xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:int" location="body" name="intVal" class-name="int" />
    <param style="in" xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:string" location="body" name="string" class-name="java.lang.String" />
    <return-param xmlns:xsd="http://www.w3.org/2001/XMLSchema" type="xsd:string" location="body" name="result" class-name="java.lang.String" />
    </params>
    </operation>
    </operations>
    </web-service>
    </web-services>

    Hi Stefan,
    I am partially able to add prefix to the XML.
    Here what I did for Module Configuration:
    1. Added Module  AF_Modules/XMLAnonymizerBean after std module in Soap Receiver Adapter
    2. Parameter Name: anonymizer.acceptNamespaces
        Parameter Value : http://xyz/mdm ns0
    Below is the reponse xml with namespace prefix only in the root tag,  no prefix for child tags.
    <?xml version='1.0' encoding='utf-8'?>
    <ns0:getUpdateListResp xmlns:ns0='http://xyz/mdm'>
    <item>46246</item>
    <item>46247</item>
    <item>46248</item>
    </ns0:getUpdateListResp>
    How do I get the namespace prefix to all the tags in the XML?
    Thanks,
    Laxman

  • Adding namespace qualified element nodes

    Is there a way to add namespace qualified element nodes to
    a document stored in a BDBXML container using the XmlModify class
    (BDBXML version 2.3.10, Linux)? Or, for that matter, any other
    handles?
    Particularly, is it possible to achieve this using the PHP
    extension?
    Let me give an example.
    When doing queries, you can set a namespace in the XmlQueryContext
    or in the XQuery expression itself:
    # prefix cannot be '' as of BDBXML 2.3.10
    $qc->setnamespace('a', 'http://as-guides.com/wev1');
    declare namespace a = "http://as-guides.com/wev1"; ...
    declare default element namespace "http://as-guides.com/wev1"; ...
    You can then refer to your namespace qualified elements as "a:Bla"
    etc. Or just as "Bla" if you make your namespace the default
    namespace.
    So far, so good.
    Now what if I want to add a namespace qualified element to
    my document? However I go about setting the namespace I always end
    up with either an apparently namespace qualified element which the
    namespace is not registered for or an element in the empty
    namespace.
    What I want is my element to adhere to the namespace
    "http://as-guides.com/wev1", which is set as the default
    element namespace in my document.
    Here is an example document.
    <Broadcast xmlns="http://as-guides.com/wev1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://as-guides.com/wev1 ds.xsd">
    <Start epoch="1186100400">2007-08-03T00:20:00Z</Start>
    <End epoch="1186100700">2007-08-03T00:25:00Z</End>
    <Content>
    <Title>Tagesschau</Title>
    <Genre>Nachrichten</Genre>
    </Content>
    </Broadcast>
    And here is my PHP code.
    $docname = '2007-08-02-1186100400-25758173-ard.xml_41368';
    $mgr = new xmlmanager;
    $cont = $mgr->opencontainer($argv[1]);
    $cont->addalias('tv');
    $qc = $mgr->createquerycontext();
    $qc->setnamespace('a', 'http://as-guides.com/wev1');
    $qexp = $mgr->prepare('/a:Broadcast', $qc);
    $mod = $mgr->createmodify();
    $mod->addappendstep($qexp, XmlModify_Element, 'a:now', time());
    $doc = $cont->getdocument($docname);
    $docval = new xmlvalue($doc);
    echo $docval->asString(), "\n";
    $uc = $mgr->createupdatecontext();
    $mod->execute($docval, $qc, $uc);
    Here is what gets added as last child node under "Broadcast":
    <a:now xmlns="">1189605065</a:now>
    So the namespace prefix I specified is added verbatim, without
    regard to the namespace settings in $qc (XmlQueryContext) - which
    do work fine for the query. No namespace declaration for "a"
    is added to the document. The resulting XML is invalid, as
    xmllint correctly points out.
    namespace error : Namespace prefix a on now is not defined
    So settings in XmlQueryContext do not seem to have any bearing on
    my update. XmlUpdateContext, on the other hand, does not have any
    methods defined for setting the namespace.
    Not setting the namespace in $qc (XmlQueryContext) and specifying
    it in the XQuery itself didn't work either. I left out the call to
    "setnamespace()" and changed the query to:
    declare default element namespace "http://as-guides.com/wev1";
    /Broadcast
    And I changed "a:now" to just "now". Here is what got added:
    <now xmlns="">1189607498</now>
    I didn't expect this second version to work, but I did expect the first
    one to work.
    What is the meaning of supplying XmlQueryContext to the execute()
    method?
    Is there a way to add namespace qualified elements to a document?
    If so, how can it be done?

    Thanks for your answer, George. I haven't quite understood how to make it do the trick, though.
    To change one document I did:
    dbxml> open tv.dbxml
    dbxml> setnamespace a http://as-guides.com/wev1
    Binding a -> http://as-guides.com/wev1
    dbxml> getdoc 2007-08-02-1186104300-25758380-sat1.xml_40564
    1 documents found
    dbxml> print
    <?xml version="1.0" encoding="UTF-8"?>
    <Broadcast xmlns="http://as-guides.com/wev1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://as-guides.com/wev1 ds.xsd">
    <Start epoch="1186104300">2007-08-03T01:25:00Z</Start>
    <End epoch="1186105800">2007-08-03T01:50:00Z</End>
    <VPS>03:25</VPS>
    <Content>
    <Title>Moin</Title>
    </Content>
    </Broadcast>
    dbxml> append doc(2007-08-02-1186104300-25758380-sat1.xml_40564)/a:Broadcast element "" "<a:now xmlns:a='http://as-guides.com/wev1'>NOW</a:now>"
    Appending into nodes: doc(2007-08-02-1186104300-25758380-sat1.xml_40564)/a:Broadcast an object of type: element with name: and content: <a:now xmlns:a='http://as-guides.com/wev1'>NOW</a:now>
    0 modifications made.
    No change made to my document. I used the doc() function instead of collection() as in the example you gave. Using collection() as in your example (verbatim) I get an error message:
    stdin:17: append failed, Error: XmlModify::execute: Cannot perform a modification on an XmlValue that isn't either Node or Document type
    This is in the FAQ, but I don't quite get it.
    http://www.oracle.com/technology/products/berkeley-db/faq/xml_faq.html#49
    Anyway, I can still perform modifications outside of the container and then replace the document. Or wait till 2.4.
    Thanks for your answer and the good work. Regards,
    Michael

  • Adding namespace prefix to the XMLa root element

    I am facing a problem in our application. I am assigning an XML content to a XSD variable. While assignment operation is performed the prefix of the XML root element alone is getting replaced with default namespace, though the source XML has the prefix. Please let me know if any patch or workaround is available to address this issue.
    Thanks!

    Hi All,
    we are also facing the same issue, Please provide the solution if anyone knows. We are also using the SOA Suite 11g Version.

  • XSLT : Trouble Adding Namespace

    I need to add namespace xmlns:prx="urn:sap.com:proxy:SB1:/1SAI/TAS04BED82951A661E02EC4:701:2008/06/06" to my xml document after doing a PI message mapping.
    When I run the following XSLT code in my XML editing software, it works as desired.  When I import the XSL program and use it at runtime, it is not adding the namespace.  Can anyone help?
    XSLT:
    <?xml version='1.0' encoding='utf-8'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:prx="urn:sap.com:proxy:SB1:/1SAI/TAS04BED82951A661E02EC4:701:2008/06/06">
    <xsl:output method="xml" indent="yes" encoding="UTF-8"/>
      <xsl:template match="@* | node()">
        <xsl:copy>
          <xsl:apply-templates select="@* | node()"/>
        </xsl:copy>
      </xsl:template>
      <xsl:template match="/*">
        <xsl:copy>
          <xsl:copy-of select="document('')/xsl:stylesheet/namespace::*[not(local-name() = 'xsl')]"/>
          <xsl:apply-templates select="@* | node()"/>
        </xsl:copy>
      </xsl:template>
    </xsl:stylesheet>
    Source:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:ChartOfAccountsReplicationConfimation xmlns:ns0="http://sap.com/xi/SAPGlobal20/Global">
      <MessageHeader>
        <UUID>4C321305CA1400AAE10080000A98800D</UUID>
        <ReferenceUUID>4bff533d-2452-00f2-e100-80000a98800c</ReferenceUUID>
        <CreationDateTime>2010-07-06T13:57:30Z</CreationDateTime>
        <SenderBusinessSystemID>ERP_GTPSRM_ECC6_S1</SenderBusinessSystemID>
        <RecipientBusinessSystemID>EDG_030_BusinessSystem</RecipientBusinessSystemID>
      </MessageHeader>
      <Log>
        <BusinessDocumentProcessingResultCode>3</BusinessDocumentProcessingResultCode>
        <MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
        <Item>
          <Note>Processed by PI</Note>
        </Item>
      </Log>
    </ns0:ChartOfAccountsReplicationConfimation>
    Desired Target:
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:ChartOfAccountsReplicationConfimation xmlns:ns0="http://sap.com/xi/SAPGlobal20/Global" xmlns:prx="urn:sap.com:proxy:SB1:/1SAI/TAS04BED82951A661E02EC4:701:2008/06/06">
         <MessageHeader>
              <UUID>4C321305CA1400AAE10080000A98800D</UUID>
              <ReferenceUUID>4bff533d-2452-00f2-e100-80000a98800c</ReferenceUUID>
              <CreationDateTime>2010-07-06T13:57:30Z</CreationDateTime>
              <SenderBusinessSystemID>ERP_GTPSRM_ECC6_S1</SenderBusinessSystemID>
              <RecipientBusinessSystemID>EDG_030_BusinessSystem</RecipientBusinessSystemID>
         </MessageHeader>
         <Log>
              <BusinessDocumentProcessingResultCode>3</BusinessDocumentProcessingResultCode>
              <MaximumLogItemSeverityCode>1</MaximumLogItemSeverityCode>
              <Item>
                   <Note>Processed by PI</Note>
              </Item>
         </Log>
    </ns0:ChartOfAccountsReplicationConfimation>

    HI Stefen,
    I had one XSL question,i have seen in the blogs you have given correct answers regarding the XSLT.
    My requirement is  the source file is :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="UTF-8"/>
    <ns0:Esri_Identify
    xmlns:ns0="http://ottawa.ca/ecc/esri/ecctoesri">
       <Identify>
          <MapDescription>
             <Name/>
             <Rotation/>
          </MapDescription>
          <MapImageDisplay>
             <ImageHeight/>
             <ImageWidth/>
             <ImageDPI/>
          </MapImageDisplay>
          <SearchShape>
             <X/>
             <Y/>
          </SearchShape>
          <Tolerance/>
          <IdentifyOption/>
          <LayerIDs>
             <Int/>
          </LayerIDs>
       </Identify>
    </ns0:Esri_Identify>
    and expected is :
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="UTF-8"/>
    <ns0:Esri_Identify
    xmlns:ns0="http://ottawa.ca/ecc/esri/ecctoesri">
       <Identify>
          <MapDescription>
             <Name/>
             <Rotation/>
          </MapDescription>
          <MapImageDisplay>
             <ImageHeight/>
             <ImageWidth/>
             <ImageDPI/>
          </MapImageDisplay>
         <SearchShape xmlns:q4="http://www.esri.com/schemas/ArcGIS/10.0" xsi:type="q4:PointN" xmlns="">
             <X/>
             <Y/>
          </SearchShape>
          <Tolerance/>
          <IdentifyOption/>
          <LayerIDs>
             <Int/>
          </LayerIDs>
       </Identify>
    </ns0:Esri_Identify>
    I need to pass the name space for searchshape element, can you please help me in this regard.
    Thanks,

  • Default xml namespace and attributes

    Hi,
    I was trying to use default xml namespaces, but came upon something strange.
    I got the following piece of xml:
    <animal type="sheep" xmlns="http://blabla">
        <name>josh</name>
        <age>2</age>
    </animal>
    and the following code
    public static var ns:Namespace = new Namespace("http://blabla");
    var xml:XML; // xml will be read into this var, not going into details here
    public function myfunc():void {
      default xml namespace = ns;
      trace(  xml.animal.@type );
    now for some reason, the elements are correctly traversed using the default namespace. But the attribute isn't found. After a bit of debugging, I found that I could only retrieve the attribute when using xml.animal.attribute(new QName("", "type")). Am I doing something wrong here? Why isn't the attribute in the same default namespace as the element?
    Kind regards,
    Jan

    The attribute should be in the element's namespace. If I run this snippet on the timeline, it outputs the correct values.
    var xml:XML =
    <xml>
    <animal type="sheep" xmlns="http://blabla">
      <name>josh</name>
      <age>2</age>
    </animal>
    <animal type="cow" xmlns="http://blabla">
      <name>jim</name>
      <age>2</age>
    </animal>
    </xml>
    var ns:Namespace = new Namespace("http://blabla");
    default xml namespace = ns;
    trace( xml.animal.@type ); // OUTPUT: sheepcow

  • JMS adapter adding namespace to PIP. Please help!

    Hi Experts,
      I have a XI scenario where 4C1 PIP is being sent to TIBCO.
      The issue is that, the output PIP has a namespace <Pip4C1InventoryReportNotification xmlns:jms1="http://www.tibco.com/namespaces/tnt/plugins/jms">
      But no where in XI this namespace has been specified. I suspect that this namespace is getting added in JMS adapter side.
      Can this namespace be easily removed in JMS adpter so that PIP element is generated as <Pip4C1InventoryReportNotification> ? If Yes, then how can we do that?
    Thanks & Regards
    Gopal

    From the namespace and the prefix, I guess that the Tibco jms libraries add that namespace. If this is true, you cannot do anything in PI and you have to check, if Tibco can work with that namespace or remove it.
    Regards
    Stefan

  • Error Reading Attribute of Element inside BPEL

    How to read
    <data>
    <attr xmlns:psml='urn:oasis:names:tc:PSML:2:0:core' name='ABC'>
    <value>a</value>
    </attr>
    </data>
    I am using Xpath /ns1:data/attr[@name='ABC']/value but its giving Error. While If I remove the 'urn:oasis:names:tc:PSML:2:0:core' namespace It works fine..
    Any help appreciated.

    which bo is it ?
    you can do a hard select
    or
    trying this example is from :
    [http://fuller.mit.edu/workflow/object_attributes.htm]
    it describes how to get the VKOrg element from the SALESORGANIZATION Object Attribute of the BO VBAK
    * swc_get_property is a macro that retrieves a single value attribute of an object
    * (This single value attribute can include another object)
    swc_get_property self 'SalesOrganization' salesorganization. " self is an object
    swc_get_property salesorganization                           " salesorganization is an object
                     'SalesOrganization'                         " SalesOrganization is an element
                     verkaufsorganisation-vkorg.                 " (actually it is the object key field)
    I hope this might help you
    bye

Maybe you are looking for

  • How can I delete an old exchange email account

    I have a new iPad Air. I restored it from a backup of my old iPad 3. My work exchange email account came with it but does not work. When I followed the procedures my work support provided I found a new email account was created with the same name.  I

  • 0ORGUNIt time dependent hierarchy not showing all valid nodes in BO , but in BW its correctly shown

    Hi All, We have 0ORGUNIT hierarchy shown in one of the Webi reports. 0ORGUNIT is time dependent hierarchy. In BW report we can see below nodes for hierarchy Hierarchy                     Valid From         Valid To Z05 Root Company        01.07.2013 

  • Dynamic content in JList renderer

    Hi all I've got a gui with a JList with rather complex content. I render that content with a custom ListCellRenderer that uses a JPanel. This works perfectly well for "non animated" things like text, JLabels etc. Now I want to add to these panels in

  • Can't open iTunes after accidently unplugging iPod--help!

    Having problems opening iTunes after I accidently unplugged my 60G video iPod while it was loading. iTunes kind of froze, with the spinning beach ball, and I had to force quit to stop it. I restarted the computer for good measure, but now, when I try

  • How can I drop a call that never disconnect.

    Hi, I'm running CUCM 8.51 + UCCX 8.51. I have several Application Trigger each one running different CSQ. Today I realize a call have more than 94 hours waiting in a queue when agents are in Ready state so look like the call never disconnected. How c