Help converting or reading SOAP XML-attachment instead of payload

Hi,
I have to setup a webservice that excepts an xml-file as an attachment and read that xml-file as if it where the main payload of the message.
The messages we receive holds all the data I need in the attachment instead of the data being in the SOAP-body itself. This isnt something I can change since this is a solution provided by amadeus e-travel and I have no chance of changing how they send data to us.
I have searched and searched the forums but havent been able to find a solution(that I understand) to how I can access the xml-file either in a mapping-routine or by simply swapping the payload with the attachment all together.
As of now I have a webservice that is functional and receives the call from the source(amadeus e-travel) without a problem. I can also see the attachment in SXMB_MONI where it looks like a perfect xml-structure. But I have no idea on how to access the attachment so that I can use the data inside it in an abap-proxy in our ECC-system.
As far as I have read on the forums I cannot use the payloadswapbean in the SOAP senderadapter so that option is out. I have seen mention of a java-class for reading attachements in mapping-routines but sadly I'm not much of a Java-programmer and dont have access to one either at the moment. I would need a detailed explanation in order for a java-program to be a viable solution for me.
Is there some trick I have missed here or blog that shows how to read xml-attachments in a soap-message?
Is there any standard Java-code I can use to read the whole xml-structure from the attachment in a mapping-routine?
Any help would be very much appreciated!
Thanks in advance ,
Halvor

Option-1:
This might be a crude way, but you can acheive by a 2 step process...
Step1 (Scenario-1) - Receive XML-Msg + Attachment using SOAP Sender adapter. As we have payloadwaapbean module limitation in sender adapter. Let it be a passthru to receiver SOAP adapter. (Don't do any processing in integration engine, like msg mapping or thything). In Rx SOAP adapter,use payloadswapbean to swap XML msg with Payload and resent it to 2nd integration scenario...
Step2(Scenario-2) - As you have the Attachment as main-payload, you can continue ur normal msg processing on it.
Option2:
SOAP messages can also be processed using AXIS-SOAP Adapter.. you can add XI module in it Check it if it might help you...
http://help.sap.com/saphelp_nw04/helpdata/EN/45/a4a36de28552f7e10000000a1553f7/content.htm
Regards,
Siva Maranani

Similar Messages

  • Please!! somebody help me to read a xml

    hi
    my problem is that I can't read a value of a one particular Node
    let's me show you my source code.
    apparently all is fine, by I don't know WHY damn appear un
    NullPoninterExceeption in the line with the comentary /**here**/
    public String getValue(String val){
    DocumentBuilderFactory docBuilderFactory =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder docBuilder = null;
    String val2 = null;
    boolean encontrado = false;
    try {
    docBuilder = docBuilderFactory.newDocumentBuilder();
    } catch (ParserConfigurationException e) {
    e.printStackTrace();
    try {
    doc = docBuilder.parse(new File("file.xml"));
    } catch (SAXException e1) {
    e1.printStackTrace();
    } catch (IOException e1) {
    e1.printStackTrace();
    Element root = doc.getDocumentElement();
    if (root.getTagName().equalsIgnoreCase("MyRootTag")){
         NodeList kids = root.getChildNodes();
         Node kid;
         for (int i = 0; i < kids.getLength(); i++) {
         kid = kids.item(i);
         if (kid instanceof Element &&
         ((Element)kid).getTagName().equalsIgnoreCase(val)) {
              val2 = getUrl((Element)kid);
    return val2;
    public String getUrl(Element kid){
    Node node = kid.getFirstChild();
    String val = null;
    while (node != null) {
    if (node instanceof Element) {
         Element e = (Element)node;
    val = e.getNodeValue().trim();/**here**/
         return val;
    node = node.getNextSibling();
    return val;
    the XML is :
    <?xml version="1.0"?>
    <rootag>
    <val1>
    <anyThing>xxxxxxxx</anyThing>
    </val1>
    <val2>
    <anyThing>xxxxxxxx</anyThing>
    </val2>
    <val3>
    <anyThing>xxxxxxxx</anyThing>
    </val3>
    </campaigns>

    change:
    val = e.getNodeValue().trim();/**here**/
    to :
    System.out.println("e="+e);
    System.out.println("e.getNodeValue()="+e.getNodeValue());
    val = e.getNodeValue().trim();/**here**/
    if one of the outputs prints null, then you have your bug. do not assume getNodeValue() to never be null! ...
    see also: http://java.sun.com/webservices/docs/1.2/tutorial/doc/JAXPSAX3.html

  • XI Mail Adapter: Sending an XML attachment

    Hi
    I want to send an xml attachment using the XI Mail adapter. I have configured the adapter correctly and am currently receiving the email message.
    My issue is that my attachment has a .txt extention and I want it to have a .xml extn.
    I have seen a variety of web blogs around but none of these have helped.
    I have also changed my configuration from XIPAYLOAD to XIALL and still cannot get my payload message as a .xml attachment.
    When I config my adapter to use XIALL i get 2 attachments, a SOAP.xml and the my payload wiht the filename:
    [email protected]
    When I use XIPAYLOAD, with the keep attachment option ticked, I get an attachment with a .txt extn.
    I am convinced there must be a J2EE setting or maybe a ABAP config paramter that I need to update to get the .xml extn.
    Any help is greatly appreciated.
    Regards
    Yackeen

    Hi Yackeen,
    You can use localejbs/AF_Modules/MessageTransformBean
    You have to set the parameter :
    Transform.ContentDisposition as  
    attachment;filename=”myFileName.xml”>
    Best regards,
    Bela

  • B2B - Email with XML attachment - Error in reading the xml file

    Hello,
    We have a requirement where an application sends an email with an xml attachment to a Lotus Notes (IMAP) mail box. I have configured the Partner, Agreements and Listening Channel to pick up the file from the mail box. Looks like when B2B is trying to read / store attachment, it errors out, there is no instance in B2B created. Looking at the logs, the file content is not read as XML, instead it seems like a text. When B2B tries to read the attachment it is not xml, there are no error messages as well.
    The "Content type" in the Listening Channel is set to blank, so B2B can decide appropriate content type. Should this be set?
    Could some one tell me what is wrong, not sure what is missing in the configuration.
    Thanks,
    Venkatesh
    Here is the log in Trace 32.
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: Delivery channel Id:CHANNEL_uGzsvLy-5972197188599763240
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = host value = abcapp1.abc.com
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = password value = ******
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = user value = IDropshipabcTest
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = polling_interval value = 60
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = content-type value = null
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = send as attachment value = null
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = folder value = null
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = email-id value = [email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = subject value = null
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = dateformat value = null
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: name = eMail-server value = IMAP
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: getReceivingEndPointList: Putting imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [NOTIFICATION] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [APP: soa-infra] Repository:: put: Putting imap://[email protected] for delivery channel CHANNEL_uGzsvLy-5972197188599763240
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: addEndpoint: Adding endpoint...channel name abc_EmailVendor_LC
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: addEndpoint: Endpoint url imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: addEndpoint: Endpoint url imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: addEndpoint: This is NOT a listening internal delivery channel imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] TransportLogger Init....
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] TransportProperties.TransportProperties():smtp.receiver.user=IDropshipTest;smtp.receiver.polling_interval=60;channelId=CHANNEL_uGzsvLy-5972197188599763240;[email protected];user=IDropshipTest;internal=false;smtp.receiver.password=******;polling_interval=60;smtp.receiver.protocol=imap;password=******;eMail-server=IMAP;host=abcapp1.abc.com;
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] B2BTransport.init(url) Endpoint = sftp://w108p-dmzftp01:22//Dev/Local/VEN-Dropship/FoamCraft url parameter = imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] B2BTransport.init(url) Endpoint = sftp://w108p-dmzftp01:22//Dev/Local/VEN-Dropship/JoyCarpets url parameter = imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] B2BTransport.init(url) Endpoint = sftp://w108p-dmzftp01:22//Dev/Local/VEN-Dropship/JoyCarpets/OrderResults url parameter = imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: addEndpoint: Added new endpoint.
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] B2BTransport.init(url) Endpoint = imap://[email protected] url parameter = imap://[email protected]
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: addEndpoint: Exit
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] SMTPReceiver.init() started ....
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: handleUpdateChannelEvent: Exit
    [2013-03-18T19:03:34.212-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@e4012] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: synchedLog_J] Engine: processEvents: Exit
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.setPollingInterval: polling time 60
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] SMTPReceiver.init() completed.
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] [IPT_SmtpRecPollingStatus] IMAPMonitor is up polling at 60 sec interval ...
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.run shutdown is false, continuing
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Total number of messages = 2
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Number of new messages =0
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Number of unread messages =0
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Number of messages to be processed by IMAPMonitor = 2
    [2013-03-18T19:03:34.259-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.convertMailToTransport(): Converting message ...
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.convertMailToTransport(): Message Type = BINARY
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Importance - High
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Subject - Inventory Quantity On Hand Update for 266219 as of 20130318 at 18:54
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Auto-Submitted - auto-generated
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers To - [email protected]
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Message-ID - <[email protected]>
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Sender - [email protected]
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Date - Mon, 18 Mar 2013 18:54:35 -0500
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers X-MIMETrack - Serialize by IMAP Server on abcAPP1/abc(Release 8.5.1|September 28, 2009) at[[
    03/18/2013 19:03:33
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers MIME-Version - 1.0
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Content-type - multipart/mixed; [[
         Boundary="0__=09BBF1A1DF10DC2F8f9e8a93df938690918c09BBF1A1DF10DC2F"
    [2013-03-18T19:03:34.446-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Content-Disposition - inline
    [2013-03-18T19:03:34.509-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] COntentHandler backcompat: true
    [2013-03-18T19:03:34.509-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: MultiPart Message
    [2013-03-18T19:03:34.509-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] COntentHandler backcompat: true
    [2013-03-18T19:03:34.509-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] COntentHandler backcompat: true
    [2013-03-18T19:03:34.556-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@169d2b1] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-52575d59:13d7daec7d5:-8000-000000000000d14d,0] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.saveAttachment(): PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiID8+DQo8SW52ZW50b3J5VXBkYXRl[[
    IHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiDQp4
    c2k6c2NoZW1hTG9jYXRpb249Imh0dHA6Ly93d3cuZXhhbXBsZS5vcmcgSW52ZW50b3J5VXBkYXRl
    LnhzZCINCnhtbG5zPSJodHRwOi8vd3d3LmV4YW1wbGUub3JnIj4NCjxEYXRlPjIwMTMtMDMtMTg8
    L0RhdGU+DQo8VGltZT4xODo1NDo0NDwvVGltZT4NCjxUeXBlPiBGdWxsIDwvVHlwZT4NCjxWZW5k
    b3JJRD4yNjYyMTk8L1ZlbmRvcklEPg0KPEl0ZW0+DQo8U2t1PjQ8L1NrdT4NCjxRdWFudGl0eT4w
    PC9RdWFudGl0eT4NCjxDb3N0PjE1LjU8L0Nvc3Q+DQo8TmV3Q29zdD4xNS41PC9OZXdDb3N0Pg0K
    PE5ld0Nvc3RFZmZEYXRlPjIwMTMtMDMtMTg8L05ld0Nvc3RFZmZEYXRlPg0KPFN0YXR1cz4NCjxT
    Caused by: java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)

    Thanks Anuj,
    After setting the property, I am no longer receiving the error, however, still fails with a different error, "Exception occurs in conversion from mail to TransportMessage. Please make sure the message sent is in correct format." and "TransportMessage cannot be created from mail. Skip this mail."
    The error appears after / while, executing, IMAPMonitor.saveAttachment():
    Is this a problem with the attachment or the email?
    here is the log,
    [2013-03-19T09:16:23.264-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.run(): IMAPMonitor goes to sleep for 60 secs ...
    [2013-03-19T09:17:23.266-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.run: wake up. shutdown_ = false
    [2013-03-19T09:17:23.266-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.run shutdown is false, continuing
    [2013-03-19T09:17:23.313-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Total number of messages = 1
    [2013-03-19T09:17:23.313-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Number of new messages =0
    [2013-03-19T09:17:23.329-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Number of unread messages =0
    [2013-03-19T09:17:23.329-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] Number of messages to be processed by IMAPMonitor = 1
    [2013-03-19T09:17:23.329-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.convertMailToTransport(): Converting message ...
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.convertMailToTransport(): Message Type = BINARY
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Subject - Inventory Quantity On Hand Update for 266219 as of 20130319 at 09:07
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers To - [email protected]
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Message-ID - <[email protected]main>
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Date - Tue, 19 Mar 2013 09:07:29 -0500
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Sender - [email protected]
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers From - [email protected]
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Content-type - multipart/mixed; [[
         Boundary="0__=09BBF1A0DFDE15CA8f9e8a93df938690918c09BBF1A0DFDE15CA"
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Content-Disposition - inline
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers MIME-Version - 1.0
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers Auto-Submitted - auto-generated
    [2013-03-19T09:17:23.516-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: Headers X-MIMETrack - Itemize by Agent Manager on abcAPP1/abc(Release 8.5.1|September 28, 2009) at[[
    03/19/2013 09:07:29,CD-MIME by IMAP Server on abcAPP1/abc(Release 8.5.1|September 28, 2009) at
    03/19/2013 09:17:21,CD-MIME complete at 03/19/2013 09:17:21,Itemize by IMAP Server on abcAPP1/abc(Release 8.5.1|September 28, 2009) at
    03/19/2013 09:17:22
    [2013-03-19T09:17:23.563-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] COntentHandler backcompat: true
    [2013-03-19T09:17:23.563-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: MultiPart Message
    [2013-03-19T09:17:23.563-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] COntentHandler backcompat: true
    [2013-03-19T09:17:23.563-05:00] [AdminServer] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.system.DiagnosticService] [APP: soa-infra] [SRC_METHOD: log] COntentHandler backcompat: true
    *[2013-03-19T09:17:23.563-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.saveAttachment(): AttachDir=C:\Oracle\Middleware\home_11gR1\user_projects\domains\mysoa_domain\servers\AdminServer\AttachmentHandler*
    *[2013-03-19T09:17:23.563-05:00] [AdminServer] [ERROR] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [APP: soa-infra] [IPT_SmtpRecConversionError] Exception occurs in conversion from mail to TransportMessage. Please make sure the message sent is in correct format.*
    *[2013-03-19T09:17:23.563-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor: TransportMessage cannot be created from mail. Skip this mail.*
    *[2013-03-19T09:17:23.579-05:00] [AdminServer] [TRACE] [] [oracle.soa.b2b.transport] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@11c2050] [userId: <anonymous>] [ecid: 54ec404c68bbfb80:-67aaafb8:13d82f27adb:-8000-0000000000000204,1:26833] [SRC_CLASS: oracle.tip.b2b.transport.basic.TransportLogger] [APP: soa-infra] [SRC_METHOD: log] IMAPMonitor.run(): IMAPMonitor goes to sleep for 60 secs ...*
    Thanks,
    Venkatesh

  • Convert SOAP XML message to invoke JMSTransportPortType method

    I want to invoke a WS method in JMSTransportPortType. However, the request is a SOAP XML message. I wonder if there is a convenient way to convert a SOAP XML message to invoke JMSTransportPortType method.

    Would really appreciate some help with this issue. Thanks!

  • Help on how to read the content of an XML file from the payload

    I have a receiver channel / mail adapter, that sends e-mails with a XML attachment.
    I’m trying to write a Bean, that should make it possible to rename the attached XML file dynamically.
    In the Bean I want to read the content of the attached XML file, it could be the “order number”.
    The filename should then be “Order number”.XML.
    <u><i>Can anyone help me with how to read the content of the XML file from the payload.</i></u>
    <i><b>Frank</b></i>

    hi,
    check this: http://jakarta.apache.org/poi/

  • Download helper converts to .flv instead of .avi

    since a few months when downloading a video from the same source, the download helper converts to .flv and no longer to.avi.
    what do I need to do to have .avi?
    Even if it downloads as .avi, it converts automatically to .flv .
    Thank you for help.
    Rgds pia

    The first thing that you need to consider is whether or not
    this project
    will work well on the web. If you have to make a bunch of
    compromises to
    get it working on the web, then it may not represent you
    well.
    That said, you can use FLVs in Director MX 2004 with the
    latest updates.
    However, you can't stream the FLVs, you have to encapsulate
    each one in
    an SWF and then use the SWF. So if its the streaming that
    you're after,
    you may want to use QT instead. You can stream that.
    Regardless of the video media that you use, you need to be
    sure that you
    aren't taking a smooth CD based experience and turning it
    into a click
    and wait, click and wait, less than elegant web experience.
    If you want
    to showcase your video capabilities then you may want to
    build a web
    specific tool. Or, you may want to let site visitors request
    a CD to be
    mailed to them.
    Rob
    Rob Dillon
    Adobe Community Expert
    http://www.ddg-designs.com
    412-243-9119
    http://www.macromedia.com/software/trial/

  • Can anyone help me in converting a dom to xml

    hi,
    i am facing a problem in using transformer factory to convert a dom to xml.
    please help me.
    if anyone has a sample code in java please share with me.

        static public void serialize( Document doc, File outFile)
            try
               TransformerFactory tfFac = TransformerFactory.newInstance();
               Transformer tf = tfFac.newTransformer();
               // tf.setOutputProperty("indent", "yes");
               tf.transform(new DOMSource(doc),
                  new StreamResult(new FileWriter( outFile )
            }         // end of try
            catch( FileNotFoundException fnfe )
               System.err.println( "File Creation Error in serializer" );
               System.err.println( fnfe.getMessage() );
            }         // end of catch
            catch (TransformerException e)
                e.printStackTrace();
            }         // end of catch
            catch( IOException ioe )
               System.err.println( "IOException in serializer" );
               System.err.println( ioe.getMessage() );
            }         // end of catch
        }Dave Patterson

  • Problem extracting SOAP XML payload using pl/sql

    Hi,
    I was wondering if I could get some help on extracting the address matches that are returned from the Web Service I am consuming. This is the first time I have dealt with XML and web services. I'm using Oracle 10.2.0.1.
    The response I’m getting back returns 4 address matches (shown below against n2, n4, n6 and n8) which is:
    <?xml version="1.0" encoding="utf-8"?>
    <soapenv:Envelope
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><searchResponse
    xmlns="http://ws.aplt.msi.com"><searchReturn>&lt;?xml version=&quot;1.0&quot;
    encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;
    &lt;GetAddressSearchResponse
    xmlns=&quot;http://aplt.nzpost.co.nz/schemas/search&quot;&gt;
    &lt;ns1:ResponseHeader
    xmlns:ns1=&quot;http://aplt.nzpost.co.nz/schemas/common&quot;&gt;
    &lt;ns1:Errors/&gt;
    &lt;/ns1:ResponseHeader&gt;
    &lt;SearchResults SearchType=&quot;StreetAddress&quot;&gt;
    &lt;ResultRecord Type=&quot;URBAN&quot;&gt;
    &lt;ns2:AddressDetails
    xmlns:ns2=&quot;urn:nzpost:schemas:xAL:3.0&quot;&gt;
    &lt;ns2:Locality&gt;
    &lt;ns2:Name&gt;LOWER HUTT&lt;/ns2:Name&gt;
    &lt;ns2:DependentLocality&gt;
    &lt;ns2:Name&gt;WAINUIOMATA&lt;/ns2:Name&gt;
    &lt;/ns2:DependentLocality&gt;
    &lt;/ns2:Locality&gt;
    &lt;ns2:Thoroughfare&gt;
    &lt;ns2:Name&gt;MAIN ROAD&lt;/ns2:Name&gt;
    &lt;ns2:Number&gt;
    &lt;ns2:Number Type=&quot;number&quot;&gt;111&lt;/ns2:Number&gt;
    &lt;/ns2:Number&gt;
    &lt;/ns2:Thoroughfare&gt;
    &lt;ns2:Postal&gt;
    &lt;ns2:PostalCode&gt;
    &lt;ns2:Number&gt;
    &lt;ns2:Number&gt;5014&lt;/ns2:Number&gt;
    &lt;/ns2:Number&gt;
    &lt;/ns2:PostalCode&gt;
    &lt;/ns2:Postal&gt;
    &lt;/ns2:AddressDetails&gt;
    &lt;DPID&gt;494852&lt;/DPID&gt;
    &lt;Geospatial&gt;
    &lt;ns3:Point
    xmlns:ns3=&quot;http://aplt.nzpost.co.nz/schemas/common&quot;&gt;
    &lt;ns3:Coordinate&gt;174.953883,-41.271187&lt;/ns3:Coordinate&gt;
    &lt;/ns3:Point&gt;
    &lt;/Geospatial&gt;
    &lt;/ResultRecord&gt;
    &lt;ResultRecord Type=&quot;URBAN&quot;&gt;
    &lt;ns4:AddressDetails
    xmlns:ns4=&quot;urn:nzpost:schemas:xAL:3.0&quot;&gt;
    &lt;ns4:Locality&gt;
    &lt;ns4:Name&gt;UPPER HUTT&lt;/ns4:Name&gt;
    &lt;/ns4:Locality&gt;
    &lt;ns4:Thoroughfare&gt;
    &lt;ns4:Name&gt;MAIN STREET&lt;/ns4:Name&gt;
    &lt;ns4:Number&gt;
    &lt;ns4:Number
    Type=&quot;number&quot;&gt;111&lt;/ns4:Number&gt;
    &lt;ns4:Number
    Type=&quot;alpha&quot;&gt;A&lt;/ns4:Number&gt;
    &lt;/ns4:Number&gt;
    &lt;/ns4:Thoroughfare&gt;
    &lt;ns4:Postal&gt;
    &lt;ns4:PostalCode&gt;
    &lt;ns4:Number&gt;
    &lt;ns4:Number&gt;5018&lt;/ns4:Number&gt;
    &lt;/ns4:Number&gt;
    &lt;/ns4:PostalCode&gt;
    &lt;/ns4:Postal&gt;
    &lt;/ns4:AddressDetails&gt;
    &lt;DPID&gt;2697192&lt;/DPID&gt;
    &lt;Geospatial&gt;
    &lt;ns5:Point
    xmlns:ns5=&quot;http://aplt.nzpost.co.nz/schemas/common&quot;&gt;
    &lt;ns5:Coordinate&gt;175.070066,-41.124317&lt;/ns5:Coordinate&gt;
    &lt;/ns5:Point&gt;
    &lt;/Geospatial&gt;
    &lt;/ResultRecord&gt;
    &lt;ResultRecord Type=&quot;URBAN&quot;&gt;
    &lt;ns6:AddressDetails
    xmlns:ns6=&quot;urn:nzpost:schemas:xAL:3.0&quot;&gt;
    &lt;ns6:Locality&gt;
    &lt;ns6:Name&gt;WELLINGTON&lt;/ns6:Name&gt;
    &lt;ns6:DependentLocality&gt;
    &lt;ns6:Name&gt;TAWA&lt;/ns6:Name&gt;
    &lt;/ns6:DependentLocality&gt;
    &lt;/ns6:Locality&gt;
    &lt;ns6:Thoroughfare&gt;
    &lt;ns6:Name&gt;MAIN ROAD&lt;/ns6:Name&gt;
    &lt;ns6:Number&gt;
    &lt;ns6:Number Type=&quot;number&quot;&gt;111&lt;/ns6:Number&gt;
    &lt;/ns6:Number&gt;
    &lt;/ns6:Thoroughfare&gt;
    &lt;ns6:Postal&gt;
    &lt;ns6:PostalCode&gt;
    &lt;ns6:Number&gt;
    &lt;ns6:Number&gt;5028&lt;/ns6:Number&gt;
    &lt;/ns6:Number&gt;
    &lt;/ns6:PostalCode&gt;
    &lt;/ns6:Postal&gt;
    &lt;/ns6:AddressDetails&gt;
    &lt;DPID&gt;1066466&lt;/DPID&gt;
    &lt;Geospatial&gt;
    &lt;ns7:Point
    xmlns:ns7=&quot;http://aplt.nzpost.co.nz/schemas/common&quot;&gt;
    &lt;ns7:Coordinate&gt;174.824326,-41.174181&lt;/ns7:Coordinate&gt;
    &lt;/ns7:Point&gt;
    &lt;/Geospatial&gt;
    &lt;/ResultRecord&gt;
    &lt;ResultRecord Type=&quot;URBAN&quot;&gt;
    &lt;ns8:AddressDetails
    xmlns:ns8=&quot;urn:nzpost:schemas:xAL:3.0&quot;&gt;
    &lt;ns8:Locality&gt;
    &lt;ns8:Name&gt;WELLINGTON&lt;/ns8:Name&gt;
    &lt;ns8:DependentLocality&gt;
    &lt;ns8:Name&gt;KARORI&lt;/ns8:Name&gt;
    &lt;/ns8:DependentLocality&gt;
    &lt;/ns8:Locality&gt;
    &lt;ns8:Thoroughfare&gt;
    &lt;ns8:Name&gt;MAKARA ROAD&lt;/ns8:Name&gt;
    &lt;ns8:Number&gt;
    &lt;ns8:Number Type=&quot;number&quot;&gt;111&lt;/ns8:Number&gt;
    &lt;/ns8:Number&gt;
    &lt;/ns8:Thoroughfare&gt;
    &lt;ns8:Postal&gt;
    &lt;ns8:PostalCode&gt;
    &lt;ns8:Number&gt;
    &lt;ns8:Number&gt;6012&lt;/ns8:Number&gt;
    &lt;/ns8:Number&gt;
    &lt;/ns8:PostalCode&gt;
    &lt;/ns8:Postal&gt;
    &lt;/ns8:AddressDetails&gt;
    &lt;Geospatial&gt;
    &lt;ns9:Point
    xmlns:ns9=&quot;http://aplt.nzpost.co.nz/schemas/common&quot;&gt;
    &lt;ns9:Coordinate&gt;174.717753 , -41.284415&lt;/ns9:Coordinate&gt;
    &lt;/ns9:Point&gt;
    &lt;/Geospatial&gt;
    &lt;/ResultRecord&gt;
    &lt;/SearchResults&gt;
    &lt;/GetAddressSearchResponse&gt;
    </searchReturn></searchResponse></soapenv:
    Body></soapenv:Envelope>
    My cursor that gets any errors returned appears ok. This is:
    CURSOR c_xml_err(i_xml IN XMLType, i_xmlns IN VARCHAR2) IS
    SELECT extract(value(xmlseq), '/Errors' , i_xmlns) vi_errors
    ,extract(value(xmlseq), '/Warnings' , i_xmlns) vi_warnings
    FROM TABLE(xmlSequence(extract(i_xml, '/GetAddressSearchResponse/ns1:ResponseHeader' , i_xmlns))) xmlseq;
    i_xml that is passed in is an XMLType converted from a CLOB which is the response from the web service:
    v_xml_response := XMLType(i_response);
    i_response is the SOAP package above with the following done on it:
    -- Strip the unnecessary SOAP XML envelope from the response
    v_xml_resp := XMLType.createXml(o_response);
    i_response := v_xml_resp.extract('/soap:Envelope/soap:Body/child::node()'
    ,'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"').getClobVal();
    i_response is defined with a type of CLOB.
    i_xmlns that is passed in is: 'xmlns:ns1="' || i_xml_namespace || '"' where i_xml_namespace is: http://aplt.nzpost.co.nz/schemas/search
    My cursor that tries to get the address details returned is:
    CURSOR c_xml(i_xml IN XMLType, i_xmlns IN VARCHAR2) IS
    SELECT extract(value(xmlseq), '/ResultRecord/AddressDetails/Postal.PostBox.Number/text()' , i_xmlns).getNumberVal() box#
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Thoroughfare.Number/text()' , i_xmlns).getStringVal() street_number
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Thoroughfare.Name/text()' , i_xmlns).getStringVal() street_name
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Locality.DependentLocality.Name/text()' , i_xmlns).getStringVal() suburb
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Locality.Name/text()' , i_xmlns).getStringVal() town_city
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Postal.PostalCode.Number/text()' , i_xmlns).getStringVal() post_code
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Postal.PostOffice.Name/text()' , i_xmlns).getStringVal() box_lobby_name
    ,extract(value(xmlseq), '/ResultRecord/AddressDetails/Postal.PostRoute.Name/text()' , i_xmlns).getStringVal() rd_number
    FROM TABLE(xmlSequence(extract(i_xml, '/GetAddressSearchResponse/SearchResults' , i_xmlns))) xmlseq;
    This is not correct because it doesn’t select anything. The i_xml parameter passed in is the same as above however the i_xmlns parameter that is passed into this cursor is different. It’s currently passed in as:
    'xmlns:ns2="urn:nzpost:schemas:xAL:3.0"'
    Which matches what is returned in the soap message (first the first address match returned):
    &lt;ResultRecord Type=&quot;URBAN&quot;&gt;
    &lt;ns2:AddressDetails
    xmlns:ns2=&quot;urn:nzpost:schemas:xAL:3.0&quot;&gt;
    I'm calling this cursor in loop as follows:
    for r_cu in c_xml(v_xml_response, v_xml_namespace)
    loop
    dbms_output.put_line('***** test12 - ws_avs_clients - IN LOOP - delete/insert nzp23_address');
    Nothing gets returned.
    Firstly, I’m not sure how to cater for n2, n3, n4, n5, etc which are the namespaces returned and incremented for each address match.
    I’m also wondering if my cursor should be changed to something like:
    CURSOR c_xml(i_xml IN XMLType, i_xmlns IN VARCHAR2) IS
    SELECT extract(value(xmlseq), '/Postal.PostBox.Number/text()' , i_xmlns).getNumberVal() box#
    ,extract(value(xmlseq), '/Thoroughfare.Number/text()' , i_xmlns).getStringVal() street_number
    ,extract(value(xmlseq), '/Thoroughfare.Name/text()' , i_xmlns).getStringVal() street_name
    ,extract(value(xmlseq), '/Locality.DependentLocality.Name/text()' , i_xmlns).getStringVal() suburb
    ,extract(value(xmlseq), '/Locality.Name/text()' , i_xmlns).getStringVal() town_city
    ,extract(value(xmlseq), '/Postal.PostalCode.Number/text()' , i_xmlns).getStringVal() post_code
    ,extract(value(xmlseq), '/Postal.PostOffice.Name/text()' , i_xmlns).getStringVal() box_lobby_name
    ,extract(value(xmlseq), '/Postal.PostRoute.Name/text()' , i_xmlns).getStringVal() rd_number
    FROM TABLE(xmlSequence(extract(i_xml, '/GetAddressSearchResponse/SearchResults/ResultRecord/ns2:AddressDetails' , i_xmlns))) xmlseq;
    However I couldn’t have the ns2: before “AddressDetails” because this gets incremented. I don’t think I can also have the i_xmlns namespace parameter passed in as 'xmlns:ns2="urn:nzpost:schemas:xAL:3.0"'
    because the ns2 gets incremented for each address.
    I'm looking for any examples of pl/sql code that extracts the addresses from the SOAP message returned like I’m trying to do?
    Any help would be much appreciated.
    Thanks,
    Brad

    You can find some examples in both the {forum:id=34} and {forum:id=75} forums. Just search on soap:Envelope or soap:Body and you should get some hits back.
    Since you are using 10.2, you will want to use XMLTable instead of TABLE(xmlSequence(extract as XMLTable is the direction Oracle is going. As for ns2:, ns4: it doesn't matter what namespace prefix you use in your XPath statement as long as all the prefixes resolve to the same namespace.
    Here is a starter piece of code that puts all that together for you.
    SELECT town_city, peeking
      FROM XMLTABLE(XMLNamespaces(default 'http://aplt.nzpost.co.nz/schemas/search',
                                  'urn:nzpost:schemas:xAL:3.0' as "adns"),
                    '/GetAddressSearchResponse/SearchResults/ResultRecord/adns:AddressDetails'
                    PASSING XMLTYPE('<GetAddressSearchResponse xmlns="http://aplt.nzpost.co.nz/schemas/search">
       <SearchResults SearchType="StreetAddress">
          <ResultRecord Type="URBAN">
             <ns2:AddressDetails xmlns:ns2="urn:nzpost:schemas:xAL:3.0">
                <ns2:Locality>
                   <ns2:Name>LOWER HUTT</ns2:Name>
                </ns2:Locality>
             </ns2:AddressDetails>
              </ResultRecord>
              <ResultRecord Type="URBAN">
                   <ns4:AddressDetails xmlns:ns4="urn:nzpost:schemas:xAL:3.0">
                        <ns4:Locality>
                             <ns4:Name>UPPER HUTT</ns4:Name>
                        </ns4:Locality>
                   </ns4:AddressDetails>
              </ResultRecord>
         </SearchResults>
    </GetAddressSearchResponse>')
                    -- The above XMLType would be your variable instead of what is hard-coded
                    COLUMNS
                    town_city   VARCHAR2(30)  PATH '/adns:AddressDetails/adns:Locality/adns:Name',
                    peeking     XMLTYPE       PATH '.');  -- This var is just to show you what each iteration is working with.You can also assign a namespace prefix to one of the default namespaces if your XPath goes across multiple "default" namespaces.
    SELECT town_city, peeking
      FROM XMLTABLE(XMLNamespaces('http://aplt.nzpost.co.nz/schemas/search' as "def",  -- made up this prefix
                                  'urn:nzpost:schemas:xAL:3.0' as "adns"),
                    '/def:GetAddressSearchResponse/def:SearchResults/def:ResultRecord/adns:AddressDetails'
                    PASSING XMLTYPE('<GetAddressSearchResponse xmlns="http://aplt.nzpost.co.nz/schemas/search">
       <SearchResults SearchType="StreetAddress">
          <ResultRecord Type="URBAN">
             <ns2:AddressDetails xmlns:ns2="urn:nzpost:schemas:xAL:3.0">
                <ns2:Locality>
                   <ns2:Name>LOWER HUTT</ns2:Name>
                </ns2:Locality>
             </ns2:AddressDetails>
              </ResultRecord>
              <ResultRecord Type="URBAN">
                   <ns4:AddressDetails xmlns:ns4="urn:nzpost:schemas:xAL:3.0">
                        <ns4:Locality>
                             <ns4:Name>UPPER HUTT</ns4:Name>
                        </ns4:Locality>
                   </ns4:AddressDetails>
              </ResultRecord>
         </SearchResults>
    </GetAddressSearchResponse>')
                    -- The above XMLType would be your variable instead of what is hard-coded
                    COLUMNS
                    town_city   VARCHAR2(30)  PATH '/adns:AddressDetails/adns:Locality/adns:Name',
                    peeking     XMLTYPE       PATH '.');  -- This var is just to show you what each iteration is working with.Hope that helps as a starter to working on your problem.
    If you follow the FAQ link in the above right, you will see how to use the { code } tag (without spaces) to wrap the examples and retain formatting as shown above.

  • Reading an PDF Attachment  From Sender Mail Adapter

    Hi All,
                   i am able to get a mail  from my Mail Server, But my aim is need to Read an PDF attachment from the mail, in SXMB Moni i am getting the Payload with attachment, I have a created a module to convert that PDF to XML(Module is working fine in file to file sceneraio) .
    In adapter should i need to use Payload Swap Bean Module also , because in sap help said that i need  Select Keep Attachments. I want to know how that how to Push the PDF attachment to My Custom Module which is used to convert the PDF To XML.
    If Payload Swap Bean Module needs to be Used , please tell me the Key Names and Key Values to be used.(swap.keyName,swap.keyValues)
    Thanks and Regards,
    Kamal
    Note: Points will be awarded

    Kamal...
    See if this helps
    [Module Name]
      AF_Modules/PayloadSwapBean
    [Module Parameters]
    The following parameters are used for this module
      swap.keyName          the name of a supported attribute.
      swap.keyValue         the value of a partial string that is required
                            to appear.
    The supported attributes (swap.keyName) include the payload attributes
    such as payload-name, payload-description and any content attributes
    such as content-type, content-disposition, content-description, etc.
    Regards
    Ravi Raman

  • Soap with Attachment

    Hello,
    I need to develop a WebDynpro application with NetWeaver 2.0 for SAP EP6 that call a remote web service in order to send an attached file with SWA (Soap With Attachment) methodology. The kind of file to attach is XML.
    Can someone give me refers or indications to implement it?
    Thanks and best regards,
    Matteo.
    Edited by: Matteo De Santis on Oct 21, 2008 11:45 AM

    Following link might help you :
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/5e/ea656273b74cf386a1f29fc55721fd/frameset.htm
    Thanks.

  • Read local XML with FileReference

    Hello,
    I have a problem triying to read a local XML file.
    I have this code to get the file from my hd, the file is uploaded correctly, but I don´t know how convert it to XML or String variable.
    The code:
        private var fileRefSave:FileReference = new FileReference();
        private var loader:Loader = new Loader();
        private var xmlFilter:FileFilter = new FileFilter("xml", "*.xml");
         * Click Send buttom
        private function onClickSave(e:MouseEvent):void
          fileRefSave.browse([xmlFilter]);
          fileRefSave.addEventListener(Event.SELECT, selectedFile);
         * File selected
        private function selectedFile(e:Event):void
          fileRefSave.load();
          fileRefSave.addEventListener(Event.COMPLETE, loaded);
         * Loaded
        private function loaded(e:Event):void
           // Here I had the proble, I need convert FileReference in XML o String. I try with loader class but doesn´t work.
    thanks. regards.

    Why are you using FileReference? You need only use this if your application is browser based. It sounds like you are only working with local files, so here is an example using the File class instead.
    var file:File = new File();
    function fileSelectHandler (event:Event) : void
         //get the selected File
         var selectedFile:File = event.target as File;
         //do stuff with the file now, such as read the xml..
    file.addEventListener(Event.SELECT, fileSelectHandler);
    //open file dialog to select file with
    file.browseForOpen("Select an XML File",[xmlFilter]);
    If you really need to use FileReference (i.e. you must have a browser based application), then you should be uploading the selected File to a specific URL, which your example does not seem to do. Please see http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/net/FileReference .html#includeExamplesSummary for more information on this.
    Once you have uploaded your file to some URL, your application can then work with the file as it knows where to get it from (the URL where it was uploaded to).
    Tim

  • How to convert Xls file into Xml file

    Hi,
    I am trying to convert Xls file into Xml  but there  is no any direct procedure for it
    Pls help me out to convert Xls file into Xml file
    Thanks
    Anushree

    you will require to write a module in your file adapter for the same.
    ref: /people/sap.user72/blog/2005/07/04/read-excel-instead-of-xml-through-fileadapter as mentioned in the earlier post.
    Else you can also use Conversion Agent to read the same.
    Ref: http://help.sap.com/saphelp_nw04/helpdata/en/43/4c38c4cf105f85e10000000a1553f6/content.htm

  • Where can I find an example of a vi which reads a xml file using the Labview schema (LVXMLSchema.xsd)?

    Where can I find an example of a vi which reads a xml file using the Labview schema (LVXMLSchema.xsd)?
    �Unflatten From XML� is of little use in parsing because it requires the data type. So it seems that the user has to parse each data value, and then �Unflatten From XML� can help a little.
    I would like to see NI provide a VI for parsing it�s own schema.

    LabVIEW's XML functions are another way of saving data from controls and indicators that is in a more standardized format. If you look at the Unflatten From XML shipping example, it shows taking the data that you would normally send to a Digital Wveform Graph and converting it to XML instead. This data is then unflattend from XML and wired to the graph. Since you know what you wrote to the file, this is an easy thing to do. If what you are looking for is a way to look at any data in any LabVIEW XML file, then you are right, there is not a VI for that. However, I do not believe that that was the intention of the XML functions in the first place.
    By wiriting data in XML, this allows other applications outside of LabVIEW to parse and recognize the dat
    a. In LabVIEW, you would already know the types and can place a generic item of that type. The issue of knowing the type is that you need to know the type of the wire that comes out of the Unflatten function so that the VI will compile correctly. You could always choose a variant value to unflatten and then do some parsing to take the variant a part. Maybe this will help you out.
    See this example for using the Microsoft parser for XML. (http://venus.ni.com/stage/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CB9FE111EE034080020E74861&p_node=DZ52050&p_submitted=N&p_rank=&p_answer=)
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • Convert AS2 to AS3 (XML / Slideshow)

    Hi everyone,
    I've created a slideshow in AS2 (with some help from a
    tutorial) but it is in AS2 unfortunately. I need it to be in AS3
    and I've tried to read some online tutorials and other online
    materials on AS3 and the difference, but I just seem to run my head
    against the wall every time.
    I don't know if it's a comprehensive task to ask but I take
    my chances and try anyway. Please let me know if this is way too
    much to convert / translate
    I've attached my AS2 code
    I short it has to load images from a XML file where a tag
    with caption (image title) and a tag with the delay settings.
    So far I’ve discovered that the XML loading in the very
    beginning is completely different in AS3 so I founded a tutorial on
    how to load XML data into flash. That is working alright but my
    next problem is to reset all the other variables (like caption,
    delay etc.) and I’ve read that XML in AS3 has a much faster
    and smarter way to load the tags. Now I just have to found out how
    that’s done :-)
    Thanks in advance
    eDevantie

    Are you using external .as files and classes or are you using frame scripts directly in the timeline? Are you used to any other object oriented programming languages? Knowing more about other languages you might know would help a lot.
    AS2 very informal and specialized to Flash. It relates to pretty much no other language out there, like JavaScript seldom relates. They're c-esque but only in a very distant 3rd cousin style.
    AS3 is much more OOP oriented and typed versus the less formal, error-prone loose dynamic nature of AS2. While your game would benefit greatly from the speed increases and error reduction, I think you're really swinging for the fence on this one. While some classes may resemble their AS2 counterpart and the core global functions work the same, everything else is different. Starting off trying to convert 4,000 lines of code is a little steep.
    As mentioned, the resources to learn AS3 are excessive and plentiful from video training to tutorials to the API reference itself. Google has it all.
    I think you really should lower your target and just try some really simple, basic things. Draw a shape, add a listener, do something basic when clicked, etc. You'll get a good idea of how different things are with the new display list rather than tearing your hair out converting your as2 game.

Maybe you are looking for

  • Where can i buy a new power lead for my iMac?

    I've been looking to purchase a 2nd power cable for my iMac (the proper apple molded one with UK plug) but can't seem to find where I'd buy one.  Anyone?

  • Problem in SAP XI

    Hi, I am trying to check wether file exist in the target folder in my scenario. I got following java code which is working fine in java environment. boolean blnFile= false; AbstractTrace  trace = container.getTrace(); try      try      URL url = new

  • HT4623 any ideas out of ipad recovery mode ?

    plz help me....after i update ipad..it will be show usb+itunes...and itunes say it must be recovery mode...how can i get my files before restore....any solution pls???

  • Business flow

    i need description of the BUSINESS FLOW

  • Installing plug-in in Eclipse for Tomcat

    Hi, I think for using Tomcat in Eclipse IDE, we have to use tomcat plugin. As per this link : "http://www.sysdeo.com/eclipse/tomcatplugin", I have downloaded "tomcatPluginV31.zip" files. Then Installation phase, Plugin activation for Eclipse 3.0 : se