Reterive CID from SXMB_MONI

Hi Friends,
My scenarios is file to SOAP with attachements
Pls let me know how to retrieve the cid from the below manifest (in soap body) which apppears in SXMB_MONI
<SAP:Payload xlink:href="cid:payload-97094E4D7EBE3262E10000000ADCA03F@xyz">
  <SAP:Name>Test.txt</SAP:Name>
  <SAP:Description />
  <SAP:Type>ApplicationAttachment</SAP:Type>
  </SAP:Payload>
Can anyone help on this
Thanks,
Dinesh

You might have to use SAAJ or Apache axis API to retrieve contentId (CID) of the soap message attachment.
If your requirement is during mapping then use java mapping to retrieve it. If you are doing outside PI then you might have to write java program to fetch the id and retrieve the attached content of the message.
Some code snippet for retrieving CID part..using axis api
public class ReceiveMMSSoapContextHandler extends BasicHandler {
private static PrintStream out = System.out;
public void invoke(org.apache.axis.MessageContext arg0) throws AxisFault {
SOAPMessage soapMessage = arg0.getMessage();
try {
Iterator attachments = soapMessage.getAttachments();
// Process all attachments
while(attachments.hasNext()){
AttachmentPart attachment = (AttachmentPart)attachments.next();
DataHandler dh = attachment.getDataHandler();
System.out.println("ATTACHMENT CONTENT ID=" + attachment.getContentId());
} catch (SOAPException e) {
// TODO Auto-generated catch block
out.println("ReceiveMMSSoapContextHandler invoke SOAPEXCEPTION OCCURRED!!");
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
out.println("ReceiveMMSSoapContextHandler invoke IOEXCEPTION OCCURRED!!");
e.printStackTrace();
Refer this link
http://ws.apache.org/axis/java/apiDocs/overview-summary.html
or
Code snippet using SAAJ
Refer Accessing an AttachmentPart Object in this link
java.util.Iterator iterator = message.getAttachments();
while (iterator.hasNext()) {
    AttachmentPart attachment = (AttachmentPart)iterator.next();
    String id = attachment.getContentId();
    String type = attachment.getContentType();
    System.out.print("Attachment " + id + " has content type " + type);
    if (type.equals("text/plain")) {
        Object content = attachment.getContent();
        System.out.println("Attachment contains:\n" + content);
Refer this link for SAAJ
http://download.oracle.com/javaee/5/tutorial/doc/bnbhr.html

Similar Messages

  • How to delete the messages from SXMB_MONI which are already cancelled .

    Hi All,
    The messages were earlier in System error(Red flag) state so i cancelled it manually.
    I want to know how to delete the messages from sxmb_moni which are already cancelled manually using ctrl+f8.
    if not possible , then i want to see them in earlier state i.e.., in System error(Red flag).
    can any tell me the procedure of doing it.
    thanks
    Sai.

    Hi AmitSri,
    Thanks for u r reply,
    What is retention period, where can i find this option.
    And i don't have authorizations to sxmb_adm --> configure delete procedure
                                                                             --> Define interfaces for archiving and retention period.
    and to RSXMB_DELETE_MESSAGES in se38 , i don't have authorizations to run
    Is there any way to delete the messages or make them to System error( Red flag) which are manually cancelled.
    Thanks
    Sai.
    Edited by: sai_SHA on Aug 17, 2011 12:29 AM

  • How to delete the messages from sxmb_moni with status cancelled

    Hi ,
    how to delete the messages from sxmb_moni with status cancelled
    Is there any report for this
    Regards
    Suman

    I think just for deleting the jobs you can do this only
    Scheduling Delete Jobs
    To schedule delete jobs, proceed as follows:
           1.      In the Integration Engine -
    > Administration menu, choose Schedule Delete Jobs.
           2.      Select the job(s) to be scheduled.
           3.      Specify the start time and date.
           4.      Specify the period you want to use and choose Schedule.
    For an overview of all jobs, choose Jobs.

  • Capturing Application Error log from SXMB_Moni

    Hi,
    I wanted to capture the error information from Application error log from ECC sxmb_moni and forward that as email alert.
    We have already alert configuration in place with alert category using standard variables. Was wondering if I have to capture application error log from sxmb_moni what would be steps involved. Please let me know if anybody has worked on this and appreciate your help on this.
    Sample Error message from sxmb_moni of ECC system
    MT_Fault
    Error in Application System
    Detailed Information
    Process Order invalid
    Thanks
    Selvam
    Edited by: Selvam_muthu on Jun 23, 2011 5:40 PM

    Hi Selvam,
    As the exception is raised in ECC system, alert cannot be trigger, alert will get trigger when there is a error in PI system. To raise a email, write additional code in ECC to trigger the e-mail with proper error content

  • Add error description from sxmb_moni in alerts in 7.1

    Hi Gurus,
    My requirement is to add short description from sxmb_moni i.e. from ABAP stack in alert.
    I already have check many blogs and marketplace but could not find this.
    As per the link Creating Alert Categories - Process Integration Monitoring - SAP Library we can extract this info from adapter engine using SXMS_TO_ADAPTER_ERRTXT but how to achieve this for I.E.
    Please let me know if this is possible in any other way around.
    Hope my requirement is clear, i just want the description from moni for the failed message in my alerts.
    Thanks and Regards
    Jitender Gusain

    Hi Jitender
    We can use following container variables to populate the text inside the alert message
    These are more than enough for debugging the message in MONI.
    However if you want to add the payload information in the alert message, then u need to use the function module SALERT_CREATE
    You can call this function module inside message mapping using RFC look up or via UDF.

  • Message reprocess from SXMB_MONI

    Hi Friends,
    We had a scenario like file sender to JDBC receiver and in Message mapping we read the file name and from file name we will take the country code with substring and map to target field.
    Now the problem is: when message failed at PI, we are not able to restart the same from SXMB_MONI and also not able to reprocess from RTW because if we process from RTW, we will not get file name at runtime which fails at Mapping.
    So please let me know how to reprocess the failed message from SXMB_MONI or some another options if have.
    message is synchronous and QOS is EO. Mesage status at SXMB_MONI: system error-manual restart possible
    Thanks in Advance.
    Regards,SARAN

    Mesage status at SXMB_MONI: system error-manual restart possible
    why are you not able to restart the message from SXMB_MONI?
    the message clearly says you can.

  • Restarting synchronous messages from sxmb_moni

    Hi,
    Please could anyone confirm if it is possible to restart synchronous messages from sxmb_moni.If in case the synchronous message is in error in moni,can it be restarted.
    Thanks and Regards,
    Induja

    hi,
    check these links:
    /people/michal.krawczyk2/blog/2005/11/09/xi-restarting-successfully-processed-messages,
    Is Payload of SXMB_MONI stored in Some table?
    /people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically
    Thanks,

  • ** List of RFCs to retrieve messages from SXMB_MONI

    Hi friends,
    I found only one RFC 'SXMB_SELECT_MESSAGES'  to retrieve messages from SXMB_MONI. But, this RFC returns only message id.
    Could you kindly tell RFCs or classes other than this which will be usefull to retrieve XML Payload and other things ?
    Kind Regards,
    Jeg P.

    Hi,
    There is a function module SXMB_GET_MESSAGE_LIST through which you can get the messages in SXMB_MONI.
    Refer the below thread for more detail:
    In Which Database Table the Messages are Stored in XI
    Thnx
    Chirag
    Edited by: Chirag Gohil on Feb 15, 2008 6:13 PM

  • Can Synchronous messages be reprocessed from sxmb_moni. Pls help

    Hello
    Can Synchronous messages be reprocessed from sxmb_moni
    or from any other transaction like we reprocess asynchronous messages.
    Pls advice

    Rick, it cant be done from XI for Sync messages, Raj is right. When you think about it:
    normally sender sends a sequest and waits for a response. But here you'd send the message form middleware, so sender does not await anything, because it didn't send any request... So what would it do with the response?
    If you explain us your problem in deeper detail , maybe we could advice you some other solution. This is definetely not a way.
    Peter

  • Delete single message from SXMB_MONI

    Hi There,
    I want to delete a single errored message from SXMB_MONI, please help
    Regards,
    Nishant

    Hi Nishant,
                         Unfortunately there is no option to do so in Integration Engine (SXMB_MONI)..
    only with the archiving job scheduled based on retention period will do so
    Rajesh

  • Download multiple XML files from SXMB_MONI and / or RWB

    Hi
    Does anyone have a clever way to download multiple inbound / outbound XML messages from either SXMB_MONI and / or RWB. For example, I send in 100 XML files to XI. These are mapped to an IDOC. I want to download all 100 source and target XML messages 'easily' versus drilling into each and using 'Download Window 1' or 'Download Window 2'.
    Any ideas are much appreciated.
    Thx
    Duncan

    Hi Jörg,
    I try to use class CL_XMS_PERSIST with method READ_MSG_ALL but I can't find the content of the Payload in EX_MESSAGE...
    Can you help me please ?
    Thank you.
    Elisabeth.

  • Outbound Message Missing from SXMB_MONI IN ECC

    Dear PI Experts,
    I have created IDOC to File scenario, But I am facing error when i am sending data from idoc using  tcode we19 . 
    ERROR is whenever
    I have checked tcode SXMB_MONI IN ECC server  but XML message  is not showing in this tcode  ,whereas  XML message is showing in tcode SXMB_MONI  of PI server .
    Please help me .

    Hello Diptee ,
    I have checked both case of IDOC and screenshots are referenced .
    Case 1  .
    Tcode BD10  ,
    Case 2 .
    Tcode WE19,

  • Accessing Transformation Step Input in a BPM from SXMB_MONI

    Hi,
    <u><b>Environment : PI - SPS 09</b></u>
    I am trying to access the Inbound Payload of my Transformation step of BPM. I am able to navigate to the "MESSAGESIN" container , but, when I try to access the same, I get the message "Nested Table can be accessed from the Context Menu".
    I have perviously been able to access the payload from MONI as shown in Michal's blog <a href="/people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios">How to test your mapping (in real life scenarios)</a> , but the navigation window and display seem to have changed from PI SP 9. Any idea as to what I am missing here and how I can view the payload?
    Regards
    Bhavesh

    Issue resolved.
    Double Click on the step type,Right Click on the "Message"  Button in the Display Work Item Window --> Container --> and then you can access the payload as shown in Michal's blog.
    Regards
    Bhavesh

  • When dialing out I sent the same cid from the two different lines on PAP2

    Hello, I'm using a PAP2 adapter on my phone system. When I dial out from line 1 I sent the phone number or callerd ID from line one. When I dial out from line two which is a different number, I'm still sending out the same phone number as that of line one yet, when I call in to each indivial number, line 1as well as line 2 they each ring serparetly and individualy. I wonder if I have missed a step in the setup. Anyone nows how to fix this or where I can get the info needed.
    Thank you.

    I don't believe that there is any network address binding.  The UDP Open VI determines which network card you are using and the UDP read function determines which IP address you pull the data from.  Since you are specifying all of the parameters, it should not carry over after you close a session.  There may be a wait required for the connections to reset.  Are you doing this programmatically, or are you stopping and restarting your VI?  Can you send a screen shot of both of your UDP connections on your block diagram? 
    Nick Keel 
    Applications Engineering 
    National Instruments
    Nick Keel
    Product Manager - NI VeriStand and Model Interface Toolkit
    National Instruments

  • Restart BPM from SXMB_MONI

    Hi Experts,
    Can you please let me know if it is possible to use a step inside a BPM to force the BPM (based on a certain condition) to land up in the specific error status that will allow you to restart it inside SXMB_MONI?
    Thanks and regards,
    Brendon

    Hi there,
    can you please give more detail on how one would achive the lookup inside a BPM and make it unavailable?
    Regards,
    Brendon

Maybe you are looking for

  • DW CS3 Mac - delayed work-flow

    Our office has three Macs running DW CS3; Two Intel Macs and one G5... When working with files from ANY remote server (and with any file type) on the Intel Macs the work flow is very sluggish / delayed (i.e. any action takes about 3-5 seconds to resp

  • Powershell User logon script not Exiting With "Exit" scripts are set to be visible in GPO

    I am trying to run this script as a user logon script and it is set to visible to the user. There are other parts of the script but It won't ever Exit. It works fine if I run it directly I only have the trouble when it is in the logon script. I'm thi

  • Connecting Macbook to internet

    This is more of a general computing question but any help would be greatly appreciated: I am considering buying a Macbook, what will i need to wirelessly connect it to the internet? I currently have a broadband connection to this desktop although it

  • Adobe Interactive Forms complaining that document has changed

    Hi, We are trying to run an Adobe interactive form in a MS IE browser but when running the form we receive a message from Adobe... and I'll try to translate it from Dutch to English... "This document contains a number of priviledges for switching on

  • Keithly 2600 voltage pulse error

    I am attavhinhg a main3_1.vi for generating pulse voltage using 2611B. I am getting error in open/create/replace file function. Can anyone help with resolving the issue. This was written by senior who is not around. Thanks.  Solved! Go to Solution. A