Include messageID in the custom XML document

Hello B2B Gurus
Requirement is to include the B2B messageID in XML Payload? For CUstom documents how can this be acheived? is it possible to extract the message ID from the B2B_WIRE_MESSAGE table before the message is sent across the wire to the destination end point.
Our Requirement is to package the cutom documnet as a SOAP message and also include MessageID in the SOAP headers. SOAP packaging can be acheived through middleware but I am not sure how to extract the messageID? I thought about callout .... but seems like callout interface doesn't provide any additioanl api's to extract the messageID. Please help.

Hi Anuj
Thanks for your response.
Yes it is for O/B Custom Documents. I have used the BPEL Advanced function "generate-guid()" for the messageID generation and I could see the B2B_WIRE_MESSAGE.messageID being populated with the generted messageiD.
No issues here. Is there an issue with ithis approach?
Also, I have noticed that the messageID generated internally by B2B is very different from userGenerated messageID.
For example: B2B Generated Message ID looks like 8A7F95E8131049BE5D9000001693F06F
where as user genrated looks like 2d363037353031393135323537363133
do I need to use any special functions to keep the messageID consistent with B2B generated messageID?
Thanks

Similar Messages

  • UCCX 8 - Dramatic change in the Create File Document step that is used by the Create XML Document step in order to read an XML file

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    For the last 5 years (and in IPCC3.x/4.x,UCCX/5.x/7.x) I've used the same basic subflow to read a XML document that contains holiday dates where the queue should be closed.  I've re-used this script on 20+ client installs and it's always worked.  The structure of the script allows you to pass the path and filename of the XML document as parameters to the subflow. (The document is in the repository)
    I loaded this script in UCCX 8.0.2 recently and it crashed with a Java.IO error.  It looked like it was trying to read the file system directly and not the repository. (In the Linux appliance model this kind of makes sense but why is the step trying to read the file system directly?)
    So I open a TAC case (SR# 615243125) and TAC tells me that the method of using the Create File Document step is not supported anymore and that I should specify the filename directly in the Create XML Document step
    The problem that I see (aside from having to edit all my scripts that use XML files) is that the Create XML Document step is looking for the input to be a type DOCUMENT and not a type STRING.  This seems to imply that I have to hardcode the document in each script that I deploy for a customer.  When it was a string it was easy to construct the full file path from parameters and pass to the subflow.
    Questions to the group
    #1 Am I missing something here?
    #2  Do you assume that you'll be able to load a script that worked fine in UCCX 7 into UCCX 8 and that it should completely function when you're doing everything according to the step reference documentation.
    #3 Cisco didn’t document this in any way that I can find.
    #4 How can you use the Create XML Document step in a fashion that would let you construct the path of the file and the filename previously in the script so you could pass it to a subflow ?  It would seem this functionality has been killed in UCCX 8
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    (Background)
    Create File Document Step
    The input filename is a STRING, could be an explicit path and filename in the repository or a variable that represents that path and string
    The output of this step is a DOCUMENT to be used in the Create XML Document step
    The string FILE_FullPathHolidayFiles references  en_us\folderName\documentName.xml
    The document was properly uploaded into the repository only, NOT trying to directly read c:\foo\blah…
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    The create XML document input can only be a type DOCUMENT

    #1 Am I missing something here?
    You are mixing two different issues together here.
    The Create File Document step is indeed not needed or supported for creating an XML document. That is why there is a unique step; to trigger XML parsing within the MIVR subsystem.
    Accessing the file system is restricted to a single folder within the VOS model (i.e. 8.0+). This folder is not backed up, replicated, or cleaned up automatically. It was intended to give developers some FS access as a temporary swap location only.
    #2  Do you assume that you'll be able to load a script that
    worked fine in UCCX 7 into UCCX 8 and that it should completely
    function when you're doing everything according to the step reference
    documentation.
    Assume nothing; read the documentation and attend one of the dozens of partner training sessions that CCBU put on advising of the upcoming changes.
    #3 Cisco didn’t document this in any way that I can find.
    You're right, I guess, on the Create File vs. XML Document step. AFAIK Cisco never wrote a notice into the Step Reference Guide explicitly stating that you cannot use the Create File Document although the documentation seemed pretty clear to me without it. File system restrictions are documented in the 8.0 release notes.
    Scripting and Development Series: Volume 2, Editor Step ReferenceUse the Create XML Document step to create a logical document that maps a document to another document variable (where the document has already been pre-parsed as an XML document and is ready to be accessed by the Get XML Document Data step).Use this step before the Get XML Document Data step to obtain data from a document formatted using the Extensible Markup Language (XML).
    #4 How can you use the Create XML Document step in a fashion that would
    let you construct the path of the file and the filename previously in
    the script so you could pass it to a subflow ?  It would seem this functionality has been killed in UCCX 8
    No it hasn't; just concatinate a string to build the Source Document parameter the step needs. Example:  "DOC[" + myFilePath + "]"

  • Receiving Custom XML Document over AS2 (HTTPS) - Inbound Processing

    Hi All,
    Need help in Receiving Custom XML Document over AS2 (HTTPS) - Inbound Processing
    External Trading Partner will be able to post the XML Documents to https://<b2bconsolehost>:<b2bconsoleport>/b2b/httpReceiver.
    Here is the process flow:
    1. External Trading Partner will be posting the XML Documents to https://<b2bconsolehost>:<b2bconsoleport>/b2b/httpReceiver
    2. B2B, consumes the Custom XML validates as per the XSD and process it.
    3. How to send the ACK back to External Trading Partner if it validates successfully and sent it to 'IP_IN_QUEUE'
    4. How to send the ACK back to External Trading Partner if the validation fails after receiving the XML document.
    5. Does the External Trading Partner require any certificates to post the XML Documents to https://<b2bconsolehost>:<b2bconsoleport>/b2b/httpReceiver (no need of encryption/decryption)?
    6. How to enable the B2B server to accept the HTTPS messages from the Trading Partner (no need of encryption/decryption).
    Please let me know. Thanks In Advance.
    Regards,
    Amirineni

    Hi Nandu, Ramesh,
    We have done the set-ups for transmitting a Custom XML Document over HTTP1.1 in B2B.
    Our Business Case is as follows:
    1. Read the Flat File using BPEL File Adapter
    2. Transform the Message in BPEL and send it to B2B
    2. Based on the set-ups in B2B, we need to post the XML message to the folliwng URL:-
    http://databridge.buy.datastream.net:5555/invoke/dsImport/receiveXML
    In the B2B Set-Ups, I have done the following:
    Business Protocol name: Custom Document over Internet
    Exchange Protocol: AS
    Document Protocol: Custom
    Transport Protocol: HTTP-1.1
    Host name : http://databridge.buy.datastream.net
    Port: 5555
    I have also deployed the agreement as well as the configuration. The issue that I am currently facing is when I select the configuration in WSIL browser in JDeveloper, I am getting the following error:
    "Unable to get schema information for target".
    Hence I am not able to map the message in BPEL and send it to B2B.
    Could you please let me know the possible causes and if I am missing anything in the set-ups in B2B.
    As always, your help and guidance is highly appreciated.
    Thanks,
    Dibya

  • Custom XML Document over AS2

    Hi All,
    We are planning to send Custom XML Document over HTTP(AS2) to the Remote Trading Partner. The XML Document needs to be posted to a particular URL in the Remote Trading Partner Site.Here is the process flow:
    1. The input application format file having the messages will be transformed to an XML message in BPEL.
    2. Then as per the set-ups done in B2B, this particular XML message needs to be posted to a URL.
    I went through the B2B User's Guide but could not find any documentation on how to set up Custom XML Document over HTTP(AS2).
    Could you please share the documents/technical notes or link which I can refer to do the set-ups in B2B.
    Please let me know. Thanks In Advance.
    Regards,
    DIbya

    Hi Nandu, Ramesh,
    We have done the set-ups for transmitting a Custom XML Document over HTTP1.1 in B2B.
    Our Business Case is as follows:
    1. Read the Flat File using BPEL File Adapter
    2. Transform the Message in BPEL and send it to B2B
    2. Based on the set-ups in B2B, we need to post the XML message to the folliwng URL:-
    http://databridge.buy.datastream.net:5555/invoke/dsImport/receiveXML
    In the B2B Set-Ups, I have done the following:
    Business Protocol name: Custom Document over Internet
    Exchange Protocol: AS
    Document Protocol: Custom
    Transport Protocol: HTTP-1.1
    Host name : http://databridge.buy.datastream.net
    Port: 5555
    I have also deployed the agreement as well as the configuration. The issue that I am currently facing is when I select the configuration in WSIL browser in JDeveloper, I am getting the following error:
    "Unable to get schema information for target".
    Hence I am not able to map the message in BPEL and send it to B2B.
    Could you please let me know the possible causes and if I am missing anything in the set-ups in B2B.
    As always, your help and guidance is highly appreciated.
    Thanks,
    Dibya

  • Changing the custom XML for a flash chart dynamically

    Hello
    I am wondering if anyone has found a way to change the custom XML
    for a flash chart dynamically.
    For instance.
    On the www.anychart.com website their is a gallery with charts.
    I have studied one called "2Dlinetimechart. It has hours on the X-axis.
    When I view the XML for this chart.
    I found this enrty
    - <block color="0x0080C0" border_color="0x0080C0" name="Sales dept.">
    <set value="0" argument="0" name="00:00" />
    <set value="1" argument="0" name="01:00" />
    It uses the tag value to set the position on the X-axis. But the tag name to set the labels on the X-axis.
    I have not found a way to do this in application express 3.0.
    Therefore I wonder if I can change to XML dynamically, and build my own block based on the input I have.
    Or even build a chart, based on a xml that I create first then sends to the object that renders the chart.
    Hope this makes sence ?
    Ulf
    PS this is related to my question about
    http://forums.oracle.com/forums/thread.jspa?messageID=1887210?
    using dates on the x-axis.
    But would by nice to know a general method to rebuild the xml-file dynamically so I can change the chart within the limits of the xml-definition.

    String value = ResultSet.getObject("myfield").toString();
    String opvalue = "15";
    <OPTION Value=15 <%=((opvalue.equals(value))?"selected":"")%>>

  • How to extract the actual XML document from soap message?

    My problem is " how to extract the actual XML document from soap message? "
    i just want to extract the attachment i.e. (pure XML document without any soap header or envolope).
    i could be ver thank full if u could solve my problem.
    [email protected]

    Hi,
    This is some skeleton code for extracting an attachment from a SOAPMessage.
    import javax.activation.DataHandler.;
    import javax.xml.soap.*;
    import javax.xml.message.*;
    Iterator allAttachments = message.getAttachments();
    AttachmentPart ap1 = null;
    while(allAttachments.hasNext()){
    ap1 = (AttachmentPart)allAttachments.next();
    //Check that the attachment is correct one. By looking at its mime headers
    //Convert the attachment part into its DOM representation:
    if(ap1.getContentType() == "text/xml"){
    //Use the activation dataHandler class to extract the content, then create a StreamSource from
    //the content.
    DataHandler attachmentContent = ap1.getDataHandler();
    StreamSource attachmentStream = new StreamSource(attachmentContent.getInputStream());
    DOMResult domAttachment = getDOMResult(attachmentStream);
    domAttachment holds an xml representation of the attachment.
    Hope this helps.

  • Refernce between MIRO document and the customer billing document

    Hi,
    We have aa requirment in the third party business process. Is there any referce table between the Miro document and the customer billing document in case of third party business process other than sale orders.
    Is there any other way where i can know that for this billing document this is my MIRO document number in case of third party business process. For the reportin purpose we need the information is there any table or any function module which satisfies the above requirement.
    Thanks in advance.
    Sunil

    Hi,
    As per my best knowledge there's no direct connection between "MIRO document" and billing document.
    - the logistics invoice(s) (MIRO document) is (are) connected to the PO in table EKBE (PO no. in EBELN, Invoice no. in BELNR where BEWTP="Q")
    - PO and SO are connected in table VBFA (SO no. in VBELV, PO no. in VBELN where VBTYP_N="V")
    - SO and billing documents are connected in table VBFA (SO. no. in VBELV, Billing doc. no. in VBELN where VBTYP_N="M")
    Maybe there are other solutions too.
    Regards,
    Csaba

  • Custom XML Document Tutorial

    Where can i find the ebMSOrder.xml and ebMSOrder.xsd for the tutorial?
    Thanks

    Ramesh,
    Thank you for help. Do you have the export files for setting up the
    custom document over ebMS? I got the following error "AIP-50083
    Document protocol identification error".
    Thanks
    Chaucer

  • Fm 12 - How can I include a graphic in an XML document that will be zoomable when converted to HTML5?

    I'd like to inc;lude grahics in my help files when authoring them in xml and converting them to Responsive HTML5 web documents.  I'm not sure of the proper way to inc;lude javascript scripts into the XML documents that could be used to make the images zoomable and panable.  Codeblock elements don't seem to work - all that happens is the text of the script is displayed in a font different from the font I'm using for the Help text. Maybe I'm using the wrong elements?  I'm using Framemaker 12. Any ideas here would be greatly appreciated.

    Anyone? Im also frustrated about this

  • Custom XML documents in ADF: managing them with MDS?

    Deleted. Please ignore.
    Edited by: ChristineWolak on Jan 5, 2011 8:02 AM

    ChristineWolak wrote:
    1. We want to have a DTD that will describe the metadata requirements. This should be possible, I think, though I don't know if it will validate any changes to the source file against the DTD.For version 11.1.1.3.0, the DTD referenced by the BC metadata is jbo_03_01.dtd. This file is packaged in a number of jars, among them adfm.jar in the following package \oracle\jbo\dtd. The adfm.jar can be found under %MIDDLEWARE_HOME%\oracle_common\modules\oracle.adf.model_11.1.1
    4. If all of the above is possible, then it should be possible to retrieve the XML document from the MDS repository, right? Can you tell me what the API is for that?Currently there is limited documentation - none that is ;), on how to achive this but possible if you dig around. Check this out: http://adfcodebits.blogspot.com/2010/12/bit-28-using-finddefobject-to-load-bc.html

  • Resubmitting the archived XML Documents?

    Hi,
    I just wanted to confirm whether archived XML documents can be resubmitted?
    The XI message has been archived in a storage system and now its required to retrieve it in XI system.
    Does XI allow this resubmitting?
    Edited by: sriparna1 on Nov 16, 2009 8:11 AM

    Hi Sriparna,
        Synchronous messages occupy lot of space in the memory/database and hence they are not persisted by default.
    If you want the synchronous messages to be persisted, then follow this blog:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417200)ID1629352550DB00149050467001567547End?blog=/pub/wlg/1629
    Refer this discussion to understand the concept of persistence with respec to sync msgs.
    Synchronous Messages persistence in XI
    And regarding your question about "How are the successfull and erroneous synchronous messages handled while archiving",
    it is very staright forward.
    By default, all the succesful messages are archived by the archiving job.
    The error messages are not archived.
    If you want the error messages to be archived, you have to Cancel them.
    After canceling, the status changes from error to cancelled. Then the archiving job will archive the cancelled messages also.
    Regards,
    Ravi Kanth Talagana

  • Completing the customs declaration document.

    hello all
    could someone explain me what is the impact on the customs declaration once the document  is closed manually and the document takes the status " document completed"
    will that be effecting the F8 proforma invoice doc  which is already created on ECC side?
    2 ) how do we cancel the customs declaration ?  what would be the impact on previous documents ?
    thank you

    Thanks alot ralph and gabriel
    that actually solves my problem.
    I have customs declaration which is not completely processed . I manually closed the document and I tried to go to transaction
    /SAPSLL/CDOC_CPLRES to cancel the closing and get the previous status to the document . but when im trying to cancel the closing of the customs declaation doc . its not allowing me  .
    am i missing any steps in between . The customs doc is still showing the Flag which says Complete.
    thank you
    Edited by: swethagts on Mar 30, 2010 6:15 PM
    Edited by: swethagts on Mar 30, 2010 6:29 PM

  • How to get the WHOLE xml document inside a string using XSLT mapping

    Hi folks,
    I have a deep xml structure that I want to embed as body, tags included, in a mail message (not as an attachment).
    I'm trying to use Michal's method in this blog
    /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping
    However, I can't get it to deliver the entire structure instead of just specific elements.
    Any help is greatly appreciated,
    Thanks,
    Guy

    Ashok,
    I was able to work it out for my case.
    This XSL......
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <inside>
    <namestring>
    <xsl:text disable-output-escaping="yes"><![CDATA[<![CDATA[]]></xsl:text>
    <xsl:copy-of select="outside/name/*"/>
    <xsl:text disable-output-escaping="yes"><![CDATA[]]]]></xsl:text>
    <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
    </namestring>
    </inside>
    </xsl:template>
    </xsl:stylesheet>
    ...will transform this input....
    <?xml version="1.0" encoding="UTF-8"?>
    <outside>
    <name>
    <nameone>name1</nameone>
    <nametwo>name2</nametwo>
    <namethree>name3</namethree>
    </name>
    </outside>
    ...and put the whole lot into the CDATA element.
    Hope this helps you,
    Guy

  • Generating target XML tag from a value in the Source XML document

    Hi there,
    I have a scenario where the following transformation needs to occur:
    Source Message...
    <Catalogue>
      <key>abc<\key>
      <value>123<\value>
      <key>def<\key>
      <value>456<\value>
    <\Catalogue>
    Target Message...
    <Catalogue>
      <abc>123<\abc>  --> Value of KEY becomes the XML tag and the VALUE gets assigned to it
      <def>456<\abc>
    <\Catalogue>
    The target message is written to an xml file using the receiver file adapter.
    I would like the target message generation to be dynamic so that when a new key-value pair is added, it would not require a change in the XI mapping layer.  Is there a way to accomplish this without having to code or enhance the adapter.  I am trying to avoid doing this in the mapping because that would mean changing the mapping every time a new key-value pair needs to be added.
    Any suggestions to accomplish this are welcome.
    Thanks all.

    Hi,
    I doubt if it will work for you. you can generate dynamic values using this but not tags dynamically. You need to see if there are any methods to generate tags dynamically.
    One way of doing this is by using Java Mapping and playing around with InputStream and OutputStream.It will work for sure with this.
    Thanks
    Amit

  • Add a Z field in the VBAP table and include that in the custom IDoc Struct

    Hi All,
    I have appended a z field in the table VBAP and want to populate that in the BAPI structure for sales order change. This z field is coming at the line item level. I need to find a user exit to populate this field in the BAPI structure.
    Thanks,
    MSDent009

    Hello,
    I need to do the same for retail and the procedure is not pretty clear yet. Could you please tell how you have it done?
    I need namely to add aditional fields to material master data to display them on additional data tab. I have created append-structure in MARA and also have created a subscreen for all the additional fields. Now some customizing should be done to adjust this subscreen. What should i do after it? These additional fields need to be sent with Pricat IDOC later.
    Any hints on that would be very requiered.
    Thanks,
    Marina

Maybe you are looking for

  • Can't open project folder

    I need help. I was trying to separate two different sites. I went to user/library/applicationsupport/iweb and moved the domain file to a separate sites folder so that I could switch them back and forth. Now I open iweb and try to switch btwn the site

  • Photo galleries

    Is there a way to make the photo gallery thumbnails larger? I don't see a way to customize them, it says in the help section that you can click on customize and edit the thumbnail sizes. I don't see a customize button. http://helpx.adobe.com/business

  • Automatic Clearing Program  not clearing in production run -

    Hi All, I am getting strange problem. I am trying to execute F.13 transaction code and When I run in test run mode its selecting all the relavent POs for GRIR clearing. But when I execute the same in Production run, its not at all  picking the  POs f

  • Messed up iPod Backed up in Disk Mode - Questions...

    ITunes isn't recognizing my 2nd Gen iPod, and the updater only gives me the option to restore to factory settings. I was able to get the iPod into hard disk mode and backed up with PsyncX though. If I move into the backed up folder with Terminal I ca

  • Is there a way to completely undo all flex time mods to an audio file?

    I have an audio drum track that i thoroughly destroyed messing around with flex time and audio quantizing. I believe these are nondestructive edits, but i can't find anyway to get it totally back to its original state. Is this possible? Thanks