Namespace Element within Outbound XML Message

Hi there,
I am using XI 2.0 and trying to map an IDoc to an XML message to be passed onwards via JMS to a 3rd Party MQ System.
I've created the mapping without too many issues but the 3rd Party says that I need to remove the namespace element tag from my final message as they don't want to see this (It's not in their DTD). Is there any way in XI 2.0 to suppress this part of the XML output so that you only get the main XML definition tag...
i.e. rather than the final message being...
<?xml version="1.0" encoding="UTF-8"?>
<ns0:MessageType xmlns:ns0="namespace">
<first_tag>Data<first_tag/>...
Instead produce...
<?xml version="1.0" encoding="UTF-8"?>
<first_tag>Data<first_tag/>...
Any help would be much appreciated.
Regards,
Gordon

Gordon--
I think I have some good news, and some bad news.
The good news is that you should be able to remove the namespace alias declaration attribute ('xmlns:ns0=...')  and namespace qualifiers ('ns0:[tagname]').  You can do this by writing a dispatcher function and adding it to the JMS adapter.
The bad news is that this means you'll have to code the transformation that removes the tags.  Dispatchers are essentially the 'user exits' of XI.  This transformation can be either Java or XSLT -- XSLT is probably easier for a case like this.
There is a touch of documentation about how to do this in the adapter engine online help (or the 'Adapter Engine' guide for XI 2.0 SR1).  See the sections for the JMS adapter for help on installing your dispatcher transformation.  See the section "Using the Dispatcher: Example" for a bit of help on using dispatchers.
If you do it in Java, your dispatcher class will have to be accessible in the adapter engine classpath.  If you do it in XSLT, I'm not sure where the .xsl file goes -- perhaps in the Adapter Engine working directory?
--Dan King
Capgemini

Similar Messages

  • Outbound xml messages

    Hello All,
    How to send outbound xml messages from oracle EBS ?
    Any form ? page ? tool ?

    Hi Bharat
    Please follow below steps
    Implement the BADI through SPRO
    Give Enhancement Implementation name like Z_BIF_O_POERPREQ
    Short Text: Enhancement Implementation of /sca/BIF_O_POERPREQ
    Composite Implementation Z_BIF_O_POERPREQ
    Click on  create composite implementation, Maintain the name and short text for Composite Implementation
    Click local object
    Click green tick mark
    Maintain the following fields (watch for customer namespace and CL at implementation class column) and click create button:
    Badi Implementation : Z_BIF_O_POERPREQ
    Implementation Class : Z_CL_BIF_O_POERPREQ
    Select the dropdown under BADI Definition /sca/BIF_O_POERPREQ
    Click green tick mark
    Select the line and click copy Sample Class
    Click local object
    Then Implement all the three methods Before Conversion, After Conversion and Event Creation as it is necessary.
    As i mentioned above you will find the BADI Defintion in the drop down and copy the sample class code, if you have any specific requirement enhance the code or else it is sufficient to carry the standard changes in the form of XML.
    Best Regards
    Vinod

  • Possibility to transfer additional parameters in outbound XML message

    Hi,
    is there any possibility to transfer additional parameters in outbound XML message using (BADI: BBP_SAPXML1_OUT_BADI).
    Additional parameters are,
    1. Communication Method for the Business Partner
    2. R/3 Vendor # & logical system for Business Partner
    3. Relationship between Business Partner Number and R/3 Vendor Number is ‘BP GUID’.
    How can we extended the structure in the BADI.
    Please give me qucik response.
    Thanks & Regards.
    Surya

    Look for structure which the interface parameters are referring, there you should see some dummy structures referring to INCL_EEW* for e.g. in PO header INCL_EEW_PD_HEADER_SSF_PO. Add additional fields and pass the data accordingly.
    Regards, IA

  • Adding an extra element to a XML message

    Hello,
    We are generating XML-files using DBMS_XMLQUERY on a Oracle Database 10g Enterprise Edition Release 10.2.0.3.0.
    This works fine. But now one of our customers needs an extra element (header) in the XML file. How do I get this job done?
    The XML-file needs to look like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <aankomstBevestiging>
    <header>
    <retailPartnerCode>retailPartnerCode</retailPartnerCode>
    <bestandsNaam>bestandsNaam</bestandsNaam>
    <berichtNaam>berichtNaam</berichtNaam>
    <berichtDatumTijd>2001-12-31T12:00:00</berichtDatumTijd>
    </header>
    <aankomst>
    <artikelNummer>artikelNummer</artikelNummer>
    <kleurNummer>kleurNummer</kleurNummer>
    <maat>maat</maat>
    <status>status</status>
    <aantalOntvangen>1</aantalOntvangen>
    <werkelijkeAankomstDatum>2001-01-01</werkelijkeAankomstDatum>
    <ggb>1</ggb>
    <goederenSoort>goederenSoort</goederenSoort>
    </aankomst>
    </aankomstBevestiging>
    Currently the output looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <aankomstBevestiging>
    <aankomst>
    <artikelNummer>artikelNummer</artikelNummer>
    <kleurNummer>kleurNummer</kleurNummer>
    <maat>maat</maat>
    <status>status</status>
    <aantalOntvangen>1</aantalOntvangen>
    <werkelijkeAankomstDatum>2001-01-01</werkelijkeAankomstDatum>
    <ggb>1</ggb>
    <goederenSoort>goederenSoort</goederenSoort>
    </aankomst>
    </aankomstBevestiging>
    The code generating this XML:
    procedure create_xml_file(
    is
    l_xml clob;
    l_ctx DBMS_XMLQUERY.ctxhandle;
    PROCEDURE clob_to_xml (p_file IN VARCHAR2,
    p_clob IN CLOB,
    p_dir in varchar2,
    p_setrowsettag in varchar2 default 'Dataset',
    p_setrowtag in varchar2 default 'Table'
    IS
    l_output UTL_FILE.file_type;
    l_amt NUMBER DEFAULT 5000;
    l_offset NUMBER DEFAULT 1;
    l_length NUMBER DEFAULT NVL (DBMS_LOB.getlength (p_clob), 0);
    BEGIN
    l_output := UTL_FILE.fopen (p_dir, p_file, 'w', 32760);
    WHILE (l_offset < l_length)
    LOOP
    UTL_FILE.put (l_output, DBMS_LOB.SUBSTR (p_clob, l_amt, l_offset));
    UTL_FILE.fflush (l_output);
    l_offset := l_offset + l_amt;
    END LOOP;
    UTL_FILE.new_line (l_output);
    UTL_FILE.fclose (l_output);
    END clob_to_xml;
    BEGIN
    l_ctx := DBMS_XMLQUERY.newcontext('select mvw.rpr_artikel_nr "artikelNummer",
    mvw.rpr_kleur_nr "kleurNummer",
    mvw.rpr_maat_code "Maat",
    mat.locus_status_code "Status",
    mat.ontvangen_aantal "aantalOntvangen",
    mat.werkelijke_aankomst_datum "werkelijkeAankomstDatum",
    mat.ontvangst_order_nr "ggb",
    mat.ontvangst_order_nr "goederenSoort"
    from wdp_magazijn_aankomsten mat
    , wdp_rpr_artikel_maat_vw mvw
    where mvw.maa_id = mat.maa_id;);
    DBMS_XMLQUERY.setrowsettag (l_ctx, 'aankomstBevestiging' );
    DBMS_XMLQUERY.setrowtag (l_ctx, 'aankomst');
    DBMS_XMLQUERY.setdateformat (l_ctx, 'dd-MM-yyyy HH:mm:ss');
    DBMS_XMLQUERY.setencodingtag (l_ctx, 'UTF-8');
    l_xml := DBMS_XMLQUERY.getxml(l_ctx);
    DBMS_XMLQUERY.closecontext (l_ctx);
    clob_to_xml (p_file_name,l_xml, l_dir );
    end if;
    end;
    /

    Posted this messages also in PL/SQL XML programming
    Adding an extra element to a XML message

  • How to search for a particular element within a XML variable using studio?

    All,
    I am using studio 7.0 to develop a webbased application. In this, i need to access
    an oracle db using a WLAI Application View from my Workflow. I get some data back
    from Oracle as an XML variable and then apply an XPath statement to access the
    individual columns returned.
    My problem arises when there are no records in the db matching my criteria and
    an empty XML variable is returned to me from the app view. In these cases my
    XPath statement fails in studio causing an improper exit.
    Does anybody know how to check for content in a XML varaible using studio? So
    that if there is content i can proceed with XPath and if there is no content,
    then i will take a different route.
    Thanks in advance
    Regards
    Sri

    If I remember correctly, the adapter will return an XML document that contains
    XML elements for each row. You can just simply check the count of these elements
    with an XPath statement: ie. count(response/row)
    "Sri " <[email protected]> wrote:
    >
    All,
    I am using studio 7.0 to develop a webbased application. In this, i need
    to access
    an oracle db using a WLAI Application View from my Workflow. I get some
    data back
    from Oracle as an XML variable and then apply an XPath statement to access
    the
    individual columns returned.
    My problem arises when there are no records in the db matching my criteria
    and
    an empty XML variable is returned to me from the app view. In these
    cases my
    XPath statement fails in studio causing an improper exit.
    Does anybody know how to check for content in a XML varaible using studio?
    So
    that if there is content i can proceed with XPath and if there is no
    content,
    then i will take a different route.
    Thanks in advance
    Regards
    Sri

  • XML within a XML message

    Is it possible to send a message that contains an XML as "text" and it was read it using a Function Module?
    Is there a length restriction for defining a Data Type for field that will hold the XML?
    Edited by: Ruben Hopkins on Jun 3, 2008 3:10 PM

    Hi,
    CDATA is the solution for your problem. With the use of CDATA you can put the nodes one one string or either retrive he XML.
    Refer
    http://help.sap.com/saphelp_nw04/helpdata/en/bb/576658dca511d4990b00508b6b8b11/frameset.htm
    /thread/107795 [original link is broken]
    Reg CDATA Section in XML
    OR
    You can even set the MIME type of the page to "text/xml".
    while creating the page if you create it with extention .xml, the system would automatically set this for the page.
    and just place the string holding the XML in the layout .
    Thanks
    Swarup

  • XML Messages generated by XI using namespace aliases...

    I have a question regarding the XML messages that are generated by XI as part of the mapping, etc.
    I receive e.g. the following XML document in the payload of my message sent to a legacy system:
    <ns1:ArticleRequest xmlns:ns1="http://www.basis.ko.com/XMLSchemas/ArticleRequest/2.0" function="retrieve">
         <ns1:ArticleNumber>109</ns1:ArticleNumber>
    </ns1:ArticleRequest>
    Unfortunately the system cannot handle the ns1: prefixes correctly and would prefer if the XML message were using the default namespace.
    Can XI be configured to produce the XML using the default namespace (in case the interface has just one namespace this should be semantically identical)
    <ArticleRequest xmlns="http://www.basis.ko.com/XMLSchemas/ArticleRequest/2.0" function="retrieve">
         <ArticleNumber>109</ArticleNumber>
    </ArticleRequest>
    and furthermore, is there a way to include the xsi:schemaLocation attribute in the resulting XML document?
    like this:
    <ArticleRequest xmlns:ns1="http://www.basis.ko.com/XMLSchemas/ArticleRequest/2.0" function="retrieve" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.basis.ko.com/XMLSchemas/ArticleRequest/2.0 ArticleRequest.xsd" >
         <ArticleNumber>109</ArticleNumber>
    </ArticleRequest>
    kind regards for your help,
    Peter

    Hi Udo,
    I'm not sure how the XSL Mapping can remove the namespace alias and exchange it with default namespace. The xsl:copy-of just does a duplication of the selected node. Do you have any additional input on this one?
    Regarding the second hint, 'manipulate the field XML namespace in the message type', I could not find a place where to do this - as I am using 'External Definition' (XSDs imported into XI). Still when I change the namespace I will always receive the prefix in front of each element.
    Any additional help is highly appreciated.
    regards,
    Peter

  • How to Add namespace to all elements in a xml document

    Hi,
    I am trying to read an xml file that does not have any namespace definitions. I have been able to create another schema in which i specify the namespace defination as shown below.
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://TargetNamespace.com/AckPaymentFile_PL" targetNamespace="http://TargetNamespace.com/AckPaymentFile_PL" xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd" nxsd:version="DTD" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <include schemaLocation="PM_XML_FILE_ACK_SCHEMA_NO_NAMESPACE.xsd"/>
    </xs:schema>
    Once i do it, i am able to see the namespace has been assigned to the root element. I am looking for a way to assign the namespace and prefix tag to all elements in the xml document. If i don't i am unable to access any part of the xml document, keep getting please verify if xpath is correct.
    Thanks
    Sridhar

    Hello,
    Once you've answered all the above.
    If you can run xpath that supports functions against the xml, the expression:
    count(//phone)Otherwise, without leaving SQL:
    select count(*) from
    xmltable('//phone' passing
      -- Your XML goes here, could be a table column with type XMLTYPE.
      xmltype('<person><phone>123-456-7890</phone><phone>098-765-4321</phone></person>')
      columns phone varchar2(24 char) path '/phone'
    ;

  • Outbound Proxy - No XML message seen !!!!!!!!!!

    Hi All
    I am trying to use outbound ABAP proxy from an R/3 system . I have written  a Z program to triger the execute_asynchronous method of the proxy generated. Now when i go to see the SXMB_MONI txn to see any XML message flow i dont see anything .
    Any pointers so to what need to be perfect to see a XML message is the monitor for an outbound proxy??
    Thanks in advance for your help
    rohan

    Hi,
    Generally the message goes in the schedule mode when the target system is not available or the connection to target system is broken. Pl check the target system.
    You can use this weblog as checklist.
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies - Activate Proxy
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies - ABAP Server Proxy
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Client Proxy
    Thanks,
    Prateek
    Message was edited by: Prateek Shah

  • Outbound status to delete XML messages in PI

    Hi,
    we are using a deletion process in PI wiith the pg RSXMB_DELETE_MESSAGES but the XML messages with a outbound status = 1 cannot be deleted. It seems that the pg SXMS_REFRESH_ADAPTER_STATUS permits to change the status to 6 but does not work for me.
    So, I need guidance. For information, we condigured the deletion period (10 days).
    Thank you

    Hi Pascal,
    You should try to manually confirm the messages (in SXMB_MONI - Cancel Processing of messages with Error CTRL F8) and then run all the deletion jobs again.
    Please see Note 872388 and 820149 for details. Following is the relevant portion from 872388:
    "Check if there are asynchronous messages in error status.
    Asynchronous messages in error status are neither deleted nor archived.
    This behaviour is different to erroneous synchronous messages which get
    deleted after their retention period (see step 5) has expired).
    Asynchronous erronous messages, however, must be cancelled and then be
    archived. You can either use transaction SXMB_MONI, search for erronous
    messages and manually cancel them. Or you can use the report provided by
    SAP: RSXMB_CANCEL_MESSAGES. Should you decide (for non-productive
    systems only) that you would like to delete these manually cancelled
    messages, please use note 820149."
    Regards
    joel

  • Getting different namespace in inbound XML message consumed by BPEL after translated from EDI to XML in B2B using Inbound Agreement

    Hello B2B Gurus,
    I am able to process B2B inbound  files successfully from Trading Partner --> B2B --> BPEL. When it comes to BPEL i am not able to parse/transform the received XML as i am getting selection failures in assign and empty nodes in transformation. When i look at the input XML payload which i received in ReceiveB2BConsume Payload i observed that i am getting namespace as " xmlns="NS_495C37A0921C418BB66A86A6E75B2CA120070312140549" instead of actual namespace xmlns="urn:oracle:b2b:X12/V4010/856" which is in my XSD as well and i am getting the XML start tag <?xml version="1.0" encoding="UTF-8" ?> 2 times. :
    <?xml version="1.0" encoding="UTF-8" ?>
      <?xml version="1.0" encoding="UTF-8" ?>
    <Transaction-856  xmlns="NS_495C37A0921C418BB66A86A6E75B2CA120070312140549" mlns:xsi="http://www.w3.org/2001/XMLSchema-instance" XDataVersion="1.0" Standard="X12" Version="V4010" CreatedDate="2013-08-21T16:33:57" CreatedBy="XEngine_2956" GUID="{00C28978-0AA1-11E3-88B9-80C16E7DC6DA}">
    <Internal-Properties>
    </Transaction-856>
    I went back and checked the XSD which i loaded in the B2B Console and i am having the following namespace
    "<xsd:schema xmlns="urn:oracle:b2b:X12/V4010/856" targetNamespace="urn:oracle:b2b:X12/V4010/856" xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0" elementFormDefault="qualified">"
    I am not sure why the XML translated from EDI in B2B console has the different namespace and XML start tag 2 times. Can you please help me resolve the issue. Let me know if i am missing anything.
    Thanks in Advance..

    Hi,
    Please set property as b2b.setDynamicNameSpace=false.
    To use EDI ecs and xsd files from Oracle B2B 10g version, set this property to true.
    When using EDI ecs and xsd files in Oracle B2B 11g which were used in Oracle B2B 10g, the XEngine may generate dynamic namespace for the translated xml. For example,
    xmlns="NS_31CA8D0F33324F95A0BF15D85539C27E20060518215520" 
    To turn off dynamic namespace generation for inbound EDI messages, set this property to false.
    Thanks
    Satendra Pare

  • Outbound SOAP Message with Attachment

    The requirement is to invoke a web service by sending attachments in the outbound SOAP message. The attachment body needs to be assigned in the message flow, using an element E1 extracted from the message incoming into the flow.
    I am trying to use attachments variable to set content-type (text/xml) and body using E1. However, these are not getting assigned to attachments variable, as seen by logging the variable.
    I was told that $attachments cannot be changed inside the flow (it is marked black in the console unlike the header and body that are marked green). If that is the case, how do we invoke services using attachments from a message flow?
    Any pointers would be appreciated.

    Hi,
    A SOAP message may need to be transmitted together with attachments of various sorts, ranging from facsimile images of legal documents to engineering drawings. Such data are often in some binary format. For example, most images on the Internet are transmitted using either GIF or JPEG data formats. In this document we describe a standard way to associate a SOAP message with one or more attachments in their native format in a multipart MIME structure for transport.
    yes it is possible to send attachment with the SOAP.
    SOAP Message Packages
    A "SOAP message package" contains a primary SOAP 1.1 message. It may also contain additional entities that are not lexically within the SOAP message but are related in some manner. These entities may contain data in formats other than XML. The primary SOAP 1.1 message in a message package may reference the additional entities. Such additional entities are often informally referred to as "attachments." This section describes how to construct SOAP message packages and how SOAP processors will process them.
    A SOAP message package is constructed using the Multipart/Related media type, which is defined in RFC 2387. The rules for the construction of SOAP message packages are as follows:
    The primary SOAP 1.1 message must be carried in the root body part of the Multipart/Related structure. Consequently the type parameter of the Multipart/Related media header will always equal the Content-Type header for the primary SOAP 1.1 message, i.e., text/xml.
    The MIME Multipart/Related encapsulation of a SOAP message is semantically equivalent to a SOAP protocol binding in that the SOAP message itself is not aware that it is being encapsulated. That is, there is nothing in the primary SOAP message proper that indicates that the SOAP message is encapsulated .
    For more details you can refer these links
    http://www.w3.org/TR/SOAP-attachments
    http://www.w3.org/TR/soap12-af/
    regards
    Aashish Sinha
    PS : reward points if helpful

  • How to read elements in a xml file sent as a string

    Hi,
    I am new to BPEL and i am working on a requirement where i receive the XML message as a String from an AQ. And I am not able parse the xml to read the individual elements of it. Appreciate your help on this.
    The (sample)input message from Q is which i am able to see in the BPEL console:
    <BUGINFO_XML>
    <XML_MESSAGE>
    <?xml version="1.0"?>
    <BUGINFO>
    <SR_ID>3-29OU7OF</SR_ID>
    <OBJECT_TYPE>UPDATE_PREBUG</OBJECT_TYPE>
    <RESERVED_BUG_NUM>8221084</RESERVED_BUG_NUM>
    <TYPE>Predefect Update</TYPE>
    <AUDIENCE>INTERNAL</AUDIENCE>
    <COMMENT>TEST activity by Sireesha</COMMENT>
    </BUGINFO>
    </XML_MESSAGE>
    </BUGINFO_XML>
    and the corresponding xsd file is:
    <schema targetNamespace="http://xmlns.oracle.com/xdb/ORIONCC"
    xmlns="http://www.w3.org/2001/XMLSchema"
    xmlns:ORIONCC="http://xmlns.oracle.com/xdb/ORIONCC"
    elementFormDefault="unqualified" attributeFormDefault="qualified">
    <complexType name="BUGINFO_XML">
    <sequence>
    <element name="XML_MESSAGE" type="string" nillable="true" minOccurs="0"/>
    </sequence>
    </complexType>
    <element name="BUGINFO_XML" type="ORIONCC:BUGINFO_XML" />
    </schema>
    i have created a variable(called VariableXML) of element type of the above xsd type({http://xmlns.oracle.com/xdb/ORIONCC}BUGINFO_XML) and using ora:parseEscapedXML method, i copied the input data to this variable and i can see the data copied fine to this variable, but after that i am not able to traverse to the individual element of it say i want the value of SR_ID which i am not able to get.
    <VariableXML>
    <BUGINFO_XML>
    <SR_ID>3-29OU7OF</SR_ID>
    <OBJECT_TYPE>UPDATE_PREBUG</OBJECT_TYPE>
    <RESERVED_BUG_NUM>8221084</RESERVED_BUG_NUM>
    <TYPE>Predefect Update</TYPE>
    <AUDIENCE>INTERNAL</AUDIENCE>
    <COMMENT>TEST activity by Sireesha</COMMENT>
    </BUGINFO_XML>
    </VariableXML>
    When i see the structure of this variable in the Assign activity i can see only up to '/ns2:BUGINFO_XML/XML_MESSAGE' but not the individual elements.
    Please let me know how can i parse this xml to read the elements of it.
    I am using jdev 11.1.1.4 and weblogic 10.3
    Thanks,
    Sireesha
    Edited by: user12217808 on Jul 27, 2012 7:10 AM

    Thanks for replying Tarak,
    I have taken the XML generated by VariableXML variable and generated a XSD out of it and that looks like below.
    <?xml version="1.0" encoding="windows-1252" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns="http://www.example.org"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified">
    <xsd:element name="BUGINFO_XML">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="SR_ID" type="xsd:string"/>
    <xsd:element name="OBJECT_TYPE" type="xsd:string"/>
    <xsd:element name="RESERVED_BUG_NUM" type="xsd:integer"/>
    <xsd:element name="TYPE" type="xsd:string"/>
    <xsd:element name="AUDIENCE" type="xsd:string"/>
    <xsd:element name="COMMENT" type="xsd:string"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    Then I have created a variable called VariableBugInfo of this element type ({http://www.example.org}BUGINFO_XML) and tried parsing it as below.
    <assign name = 'Assign2'>
    <copy>
    <from expression="oraext:parseXML(bpws:getVariableData('VariableXML','/ns2:BUGINFO_XML'))"/>
    <to variable="VariableBugInfo" query="/ns4:BUGINFO_XML"/>
    </copy>
    </assign>
    then i got the below error in the bpel console when im testing my bpel process.
    The following exception occurred while attempting to execute operation copy at line 118
    <?xml-stylesheet href="chrome://global/locale/intl.css" type="text/css"?>
    -<parsererror>
    XML Parsing Error: junk after document element
    Location: http://slce26vm164.us.oracle.com:7001/em/ai/sca/share/audit/nfdg/displayInstance.jsp?locatorobjkey=Farm_mosbpelmosbpelsoa_server1soa-infra&instanceid=bpel%3A70555
    Line Number 7, Column 1:
    <sourcetext>
    <root class="javax.xml.xpath.XPathExpressionException">internal xpath error<stack><f>oracle.xml.xpath.JXPathExpression.evaluate#242</f><f>com.collaxa.cube.xml.xpath.BPELXPathUtil.evaluate#240</f><f>com.collaxa.cube.engine.ext.bpel.common.BPELWMPHelper.evalFromValue#339</f><f>com.collaxa.cube.engine.ext.bpel.v1.wmp.BPEL1AssignWMP.__executeStatements#137</f><f>com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform#158</f><f>com.collaxa.cube.engine.CubeEngine._performActivity#2463</f><f>com.collaxa.cube.engine.CubeEngine.performActivity#2334</f><f>com.collaxa.cube.engine.CubeEngine.handleWorkItem#1115</f><f>com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal#73</f><f>com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage#220</f><f>com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory#328</f><f>com.collaxa.cube.engine.CubeEngine.endRequest#4350</f><f>com.collaxa.cube.engine.CubeEngine.endRequest#4281</f><f>com.collaxa.cube.engine.CubeEngine.createAndInvoke#679</f><f>com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke#654</f><f>com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke#293</f><f>...</f></stack></root>
    ^
    </sourcetext>
    </parsererror>
    but when i tried a normal copy from VariableXML BUGINFO to VariableBugInfo as below, i am not getting any error but its not actually copying the contents to individual tags, because after this Assign i created a simple string variable(objTypeVar) and when i tried to copy TYPE element value to it, it says 'The result is empty for the XPath expression : "/ns4:BUGINFO_XML/ns4:TYPE".'
    <assign name="Assign2">
    <copy>
    <from variable="VariableXML" query="/ns2:BUGINFO_XML"/>
    <to variable="VariableBugInfo" query="/ns4:BUGINFO_XML"/>
    </copy>
    </assign>
    <assign name="Assign3">
    <copy>
    <from variable="VariableBugInfo"
    query="/ns4:BUGINFO_XML/ns4:TYPE"/>
    <to variable="objTypeVar"/>
    </copy>
    </assign>
    Result in console for VariableBugInfo for Assign2:
    <VariableBugInfo>
    <BUGINFO_XML>
    <SR_ID>3-29OU7OF</SR_ID>
    <OBJECT_TYPE>UPDATE_PREBUG</OBJECT_TYPE>
    <RESERVED_BUG_NUM>8221084</RESERVED_BUG_NUM>
    <TYPE>Predefect Update</TYPE>
    <AUDIENCE>INTERNAL</AUDIENCE>
    <COMMENT>TEST activity by Sireesha</COMMENT>
    </BUGINFO_XML>
    </VariableBugInfo>
    For Assign 3:
    Error in evaluate <from> expression at line "141". The result is empty for the XPath expression : "/ns4:BUGINFO_XML/ns4:TYPE".
    I feel there is something i am missing in the XSD and the target namespace which is causing the issue. I am not sure what i should provide in the target namesapce in the new xsd which i created based on the value of VariableXML , so that it actually parses the xml and copies exact elements of it.
    Please let me know if i am doing something wrong anywhere.
    Thanks,
    Sireesha

  • Error in generating Outbound Xml in SNC

    Hi All:
    We are working on SNC 7.0 vrsion along with Pi 7.0 and ECC 6.0.
    When SNC gets a PO from ECC and supplier confirms it then we are not able to see any outbound xml file generation in SNC .
    Due to this nothing is coming out from SNC.
    Folowing are the configuration has been done in SNC.
    A> Outbound processing message ReplishmentOrderConfirmation_Out has been configured properly for sender and receiver.
    B> All required ODM and TSODM has been activated properly.
    C> Structure in proxy name space has been re generated properly for above mentioned outbound message.
    D> No badi has been activated as of now in SNC area.
    Whats happening in SNC once supplier confirms PO.
    A>Error dump saying that Assertion Failed .
    My question.
    A> Do we have to activate any badi by default to generate any outbound xml?
    B> Is there any report by which we can check weather proxy structure has been called or not for generating outbound Xml?
    C>How to generate and activate TSODM and related POS in time series Order Data Management ?
    D>Report to check that what Time Series Object has been activated as of now ?
    Please let us know ur views to slove this
    thanks
    Ganesh

    Hi Ganesh,
    If you have errors within proxy setup, you will get the XML blocked in SXMB_XI transaction.
    As I could see from your description, the problems might be due to any one of these reasons.
    1. Validation Checks - PO Confirmation invloves a validation check before getting published. There might an error if this fails.
    2. ODM and TSDM not initialised properly - Try to generate and activate the necessary ODM and TSDM data types.
    Cheran

  • Retrieve element from an XML variable

    I have a BPEL process that takes in a XML message and from that message I want to parse out one element.
    Using BPEL v10.1.3.3.0
    Here is the xsd's, (use a wrapper for adding the name space)
    <?xml version="1.0" encoding="UTF-8"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="TempNamespace"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    nxsd:version="DTD">
    <include schemaLocation="VendorMasterBridge_2_1.xsd"/>
    </schema>
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="VendorMasterBridge">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="VendorMaster" minOccurs="1" maxOccurs="unbounded">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="VendorNumber" minOccurs="1" type="xs:string"/>
    <xs:element name="VendorName" minOccurs="0" type="xs:string"/>
    <xs:element name="BatchCtrlNbr" minOccurs="0" type="xs:string"/>
    <xs:element name="Error" minOccurs="0" type="xs:string"/>
    <xs:element name="VendorMasterFields" minOccurs="0">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="DateCreated" minOccurs="0" type="xs:dateTime"/>
    <xs:element name="Address1" minOccurs="0" type="xs:string"/>
    <xs:element name="Address2" minOccurs="0" type="xs:string"/>
    <xs:element name="PassReqdAutoCreate" minOccurs="0" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:sequence>
    <xs:attribute name="id" use="optional" type="xs:string"/>
    <xs:attribute name="version" use="optional" type="xs:string" default="2.1"/>
    <xs:attribute name="timestamp" use="optional" type="xs:dateTime"/>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    I use the Assign activity to try and get the Address1 field
    <assign name="Assign_1">
    <copy>
    <from variable="Vendxml" part="VendorMasterBridge"
    query="/ns3:VendorMasterBridge/VendorMaster/VendorMasterFields/Address1"/>
    <to variable="addr"/>
    </copy>
    </assign>
    When I deploy and run the BPEL process I get this error
    <selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>empty variable/expression result.
    xpath variable/expression expression "/ns3:VendorMasterBridge/VendorMaster/VendorMasterFields/Address1" is empty at line 87, when attempting reading/copying it.
    Please make sure the variable/expression result "/ns3:VendorMasterBridge/VendorMaster/VendorMasterFields/Address1" is not empty.
    </summary>
    </part></selectionFailure>
    Here is the XML used for input
    <invWriteVendor_Enqueue_InputVariable>
    <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="VendorMasterBridge">
    <VendorMasterBridge xmlns:ns0="TempNamespace" id="RMS">
    <VendorMaster xmlns="">
    <VendorNumber>1077952523</VendorNumber>
    <VendorName>UNIFLEX</VendorName>
    <VendorMasterFields>
    <Address1>383 W COMBO AVE</Address1>
    <Address2>PO BOX 9004</Address2>
    <City>HICKSVILLE</City>
    <StateCode>NY</StateCode>
    <Zip>11801-9004</Zip>
    <Country>USA</Country>
    <TelephoneNumber>05169322400</TelephoneNumber>
    <StatusCode>00</StatusCode>
    </VendorMasterFields>
    </VendorMaster>
    </VendorMasterBridge>
    </part></invWriteVendor_Enqueue_InputVariable>
    Can someone help me know what I am doing wrong?
    If I do an assign of the input xml to another xml of the same message type all the fields transfer. I only run into this issue if I am trying to access a specific element.
    Thanks for any help on this,

    Thanks for the reply, but could you be a little more specific? Problem with the namespace where, in the incoming message? Is it defined wrong in the BPEL process? A mis-match somewhere?
    I kind of figured it was a namespace issue but I can not seem to track it down.

Maybe you are looking for

  • Unable to provision users in OIM 11.1.1.3 using DBUM connector 9.1.0.4.

    Hi, I installed OIM 11.1.1.3 and i am able to access it. Now i am trying to provision an user to a database table using "User Database Management connector". I worked on it by using version 9.1.0.4, but i failed to provision the users. I am getting a

  • How to get data  from an internal table in some other program

    I would like to get data from the internal table in the other program. When I using FM "LIST_FROM_MEMORY" to get the data, it doesn't work and the exception is not fount. If any special code need in the other program, like write data to memory . Many

  • Time Machine - The First Back-Up

    I have a 300 GB Maxtor OneTouch II, and I am attempting to use Time Machine with this external drive. So, Time Machine begins to back up to the drive at a rather quick pace until the download window disappeared at 13.16 GB out of 60 GB. I believed th

  • I want to display the Employee details in table format without using iGrid

    Hi all, Can anybody help me that I want to display the Employee details return by transaction in table  format without using iGrid.

  • New V245 won't see the DVD drive

    I have a new SunFire V245 that won't recognize the DVD drive. Running probe-scsi, probe-scsi-all and probe-ide don't display a DVD drive. I know it is getting power because the light blinks when I power up the unit. The part number for the DVD drive