Constructing MIME message in BPEL

Hi,
I want to construct a MIME message in BPEL. This MIME message will have a cXML and an attachment. How can i do this? Are there any standard schemas provided to define MIME in BPEL
Similarly when i get a MIME message from a service i want to access this message and access each part of the MIME message.
i know we cannot parse a mime message in BPEL but i want know how can i access each part of the mime in BPEL.
Is this possible to do in BPEL?
I am using SOA 10.1.3.4.0
Any help is really appreciated in this.
Thanks,
Amith
Edited by: [email protected] on Oct 16, 2009 3:15 AM
Edited by: [email protected] on Oct 16, 2009 3:18 AM

Please find more details here.
I am using the schema defined in "http://schemas.xmlsoap.org/wsdl/mime/2002-01-29.xsd". I have modified the schema so that it does not throw error in JDeveloper.The modified schema is
<xsd:schema targetNamespace="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:ns1="http://schemas.xmlsoap.org/wsdl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
<xsd:element name="content" type="mime:contentType"/>
<xsd:complexType name="contentType">
<xsd:complexContent>
<xsd:extension base="ns1:tExtensibilityElement">
<xsd:sequence/>
<xsd:attribute name="type" type="xsd:string" use="optional"/>
<xsd:attribute name="part" type="xsd:NMTOKEN" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="multipartRelated" type="mime:multipartRelatedType"/>
<xsd:complexType name="multipartRelatedType">
<xsd:complexContent>
<xsd:extension base="ns1:tExtensibilityElement">
<xsd:sequence>
<xsd:element name="part" type="mime:tPart" minOccurs="0"
maxOccurs="unbounded" default="qualified"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="tPart">
<xsd:sequence>
<xsd:any namespace="##targetNamespace" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute name="name" type="xsd:NMTOKEN" use="required"/>
</xsd:complexType>
<xsd:element name="mimeXml" type="mime:tMimeXml"/>
<xsd:complexType name="tMimeXml">
<xsd:complexContent>
<xsd:extension base="ns1:tExtensibilityElement">
<xsd:sequence/>
<xsd:attribute name="part" type="xsd:NMTOKEN" use="optional"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:schema>
When i try to create a variable of the above schema type, i get an exception "Exception: Invalid reference: http://schemas.xmlsoap.org/wsdl/:tExtensibilityElement'".
Is there anything wrong with the schema?

Similar Messages

  • Construct Mime message from text file

    Hi
    I have a text file which is a saved email (see below)
    I then construct a MimeMessage from this as follows using bouncycastle
    MimeMessage msg = new MimeMessage(session, new FileInputStream("file.txt"));
    The resulting msg has three headers which looks right
    How can I obtain the attachment?
    Thanks in advance
    This is a multipart message in MIME format.
    --=_mixed 00561CF28025770E_=
    Content-Type: multipart/alternative; boundary="=_alternative 00561CF28025770E_="
    --=_alternative 00561CF28025770E_=
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: base64
    --=_alternative 00561CF28025770E_=
    Content-Type: text/html; charset="UTF-8"
    Content-Transfer-Encoding: base64
    DQo=
    --=_alternative 00561CF28025770E_=--
    --=_mixed 00561CF28025770E_=
    Content-Type: text/plain; name="TEST.txt"
    Content-Disposition: attachment; filename="TEST.txt"
    Content-Transfer-Encoding: quoted-printable
    Some text
    Some more text
    And some more
    --=_mixed 00561CF28025770E_=--

    I don't know why you started a new thread for this same issue.
    See my response in your original thread:
    [http://forums.sun.com/thread.jspa?threadID=5441777|http://forums.sun.com/thread.jspa?threadID=5441777]

  • Parsing MIME message and Constructing a MIME message

    Hi All,
    I want to formulate a MIME message in NetweaverXI. The MIME messsage will contain a cXML and an attachment. Then send the message to a JCA adapter.
    Similarly when the JCA adapter sends a MIME message i want to parse it and get access to each part of the MIME message.
    Is there any support available for MIME in NetweaverXI? Are there any sample examples for the same?
    The message will be in the below format.
    --Bouundary
    Content-Type: text/xml; charset=UTF-8
    Content-ID: 1255070783528.1638087094
    <cXML>
    <Attachment>
    <url> AAAAA</url>
    </Attachment>
    </cXML>
    --Bouundary
    Content-Type: text/xml; charset=UTF-8
    Content-ID: AAAAA
    Attachment
    Bouundary
    Any help will be really appreciated.
    Thanks

    Hi Ameeth,
    Please check the link below:
    /people/stefan.grube/blog/2007/04/17/xi-mail-adapter-an-approach-for-sending-emails-with-attachment-with-help-of-java-mapping
    Also, Mail can be processed using Java Mail API. Below is the code snippet send mail.
         public static boolean sendMail(String mailHost, String toAddress ,String fromAddress, String ccAddress,String subject,String mailbody,String attachmentContent,String attachmentName,MessageKey messageKey, AuditAccess audit) throws MessagingException{
              String subloc = "JavaMailSender.sendMail()";
              PIFTWrapper.entering(subloc);
              audit.addAuditLogEntry(messageKey, AuditLogStatus.SUCCESS, "Sending Mail to SMTP server");
              Properties properties = new Properties();
              properties.setProperty("mail.smtp.host", mailHost);
              Session session = Session.getInstance(properties,null);
              MimeMessage mimeMessage = new MimeMessage(session);
              mimeMessage.setFrom(new InternetAddress(fromAddress));
              mimeMessage.setRecipients(RecipientType.TO, toAddress);
              mimeMessage.setRecipients(RecipientType.CC, ccAddress);
              mimeMessage.setSubject(subject);
              mimeMessage.setSentDate(new Date());
              MimeBodyPart contentMimeBodyPart = new MimeBodyPart();
              contentMimeBodyPart.setDisposition(MimeMessage.INLINE);
              contentMimeBodyPart.setText(mailbody);
              MimeBodyPart attachmentMimeBodyPart = new MimeBodyPart();
              attachmentMimeBodyPart.setDisposition(MimeMessage.ATTACHMENT);
              attachmentMimeBodyPart.setFileName(attachmentName);
              attachmentMimeBodyPart.setText(attachmentContent);
              Multipart multipart = new MimeMultipart();
              multipart.addBodyPart(contentMimeBodyPart);
              multipart.addBodyPart(attachmentMimeBodyPart);
              mimeMessage.setContent(multipart);
              mimeMessage.saveChanges();
              Transport.send(mimeMessage);
              PIFTWrapper.exiting();
              audit.addAuditLogEntry(messageKey, AuditLogStatus.SUCCESS, "Mail Sent");
              return true;
    Similar processing can be done using Java Mail API for incomming messages.
    Regards,
    Sumant
    Edited by: SumantKRaja on Oct 20, 2009 8:07 AM

  • Parse SPML message in BPEL ?

    Hello ,
    Do you guys know how to parse SPML message in BPEL process ? As we get the SPML message in process input of BPEL process.

    Please find more details here.
    I am using the schema defined in "http://schemas.xmlsoap.org/wsdl/mime/2002-01-29.xsd". I have modified the schema so that it does not throw error in JDeveloper.The modified schema is
    <xsd:schema targetNamespace="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:ns1="http://schemas.xmlsoap.org/wsdl"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/>
    <xsd:element name="content" type="mime:contentType"/>
    <xsd:complexType name="contentType">
    <xsd:complexContent>
    <xsd:extension base="ns1:tExtensibilityElement">
    <xsd:sequence/>
    <xsd:attribute name="type" type="xsd:string" use="optional"/>
    <xsd:attribute name="part" type="xsd:NMTOKEN" use="optional"/>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:element name="multipartRelated" type="mime:multipartRelatedType"/>
    <xsd:complexType name="multipartRelatedType">
    <xsd:complexContent>
    <xsd:extension base="ns1:tExtensibilityElement">
    <xsd:sequence>
    <xsd:element name="part" type="mime:tPart" minOccurs="0"
    maxOccurs="unbounded" default="qualified"/>
    </xsd:sequence>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name="tPart">
    <xsd:sequence>
    <xsd:any namespace="##targetNamespace" minOccurs="0"
    maxOccurs="unbounded"/>
    </xsd:sequence>
    <xsd:attribute name="name" type="xsd:NMTOKEN" use="required"/>
    </xsd:complexType>
    <xsd:element name="mimeXml" type="mime:tMimeXml"/>
    <xsd:complexType name="tMimeXml">
    <xsd:complexContent>
    <xsd:extension base="ns1:tExtensibilityElement">
    <xsd:sequence/>
    <xsd:attribute name="part" type="xsd:NMTOKEN" use="optional"/>
    </xsd:extension>
    </xsd:complexContent>
    </xsd:complexType>
    </xsd:schema>
    When i try to create a variable of the above schema type, i get an exception "Exception: Invalid reference: http://schemas.xmlsoap.org/wsdl/:tExtensibilityElement'".
    Is there anything wrong with the schema?

  • Issue while parsing the chinese character from Mime Message

    Hi,
    I have a issue with the chinese characters while parsing the mime message (MimeBodypart). In the MimeMessage charset is mentioned as "gb2312". i am using the MimeBodyPart.getContent() to get the content. When mimetype is html, it will be uploaded as a file to an FTP site (wapache commons net - ftp client). When uploaded file is viewed, the content is displayed as garbage text.
    i tried the following but it didnt work. i got the inputstream from the Mimebodypart. and then created InputStreamReader and used the encoding "GB18030" while initializing the content. i got the String out of it and stored in the file. i just replaced "Gb2312" with "UTF-8" in the html string. While creating the output file, i used the UTF-8 encoding. when opened this file using IE, it is displaying the character without any issues. i examined the file and the file encoding is UTF-8 as expected.
    but when i upload the file to FTP site and view, the text is not displayed correctly. It seems the file encodig is ANSI. i used the Notepad++ to examine these files. Please note that we use apache comments net - FTp client to upload the file.
    below are my questions:
    am i doing the right thing? it seems mime message was created using outlook.
    How to upload a file to FTp withe file base encoding is "UTF-8" or some other ?
    below are few references
    http://www.anyang-window.com.cn/tag/java-gb2312/
    JavaMail: Chinese Simplified Character Problem

    Thank you for the Replies. i am using the binary mode and it works fine for most of the files. i found that the issue here is not while uploading but the content itself. the characters present in the Mimemessge is not as per the charset. Hence i could not upload the content as it is. This happens only when charset is GB2312 (chinese). it seems that Mimemessage contains the characters which cannot be represented by Gb2312 but can be represented by Gb18030. Hence i converted the content using from Gb18030 to UTF-8 and created a file. i used the SetControlEncoding("utf-8") to upload the file and it is working fine.

  • B2B Message Error - Decrypting S/MIME message failed

    Hi,
    Am getting following error when i receive the inbound message from trading partner
    I have set up the certificates on both sides.
    [2010-04-15T19:53:18.981-04:00] [soa_server1] [ERROR] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@a8acf9] [userId: <anonymous>] [ecid: 0000IW2gpmo7MAYVLqBT8A1BlpVK00000E,0] [APP: soa-infra] [composite_name: StockXferRecSOA] [component_name: StockBPEL/StockXferReciptService] [component_instance_id: 310009] Error -: B2B-51093: Decrypting S/MIME message failed {0}.[[
    Error -: B2B-51093: Decrypting S/MIME message failed {0}.
         at oracle.tip.b2b.packaging.SmimeSecureMessaging.decrypt(SmimeSecureMessaging.java:1024)
         at oracle.tip.b2b.packaging.mime.MimePackaging.processEncryptedMimeBodyPart(MimePackaging.java:1107)
         at oracle.tip.b2b.packaging.mime.MimePackaging.processInputStreamOrStringMessage(MimePackaging.java:1173)
         at oracle.tip.b2b.packaging.mime.MimePackaging.processMessageContent(MimePackaging.java:793)
         at oracle.tip.b2b.packaging.mime.MimePackaging.doUnpack(MimePackaging.java:726)
         at oracle.tip.b2b.packaging.mime.MimePackaging.unpack(MimePackaging.java:632)
         at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:1583)
         at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1395)
         at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:3216)
         at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:2960)
         at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:2706)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:540)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:200)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:77)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
         at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    [2010-04-15T19:53:18.981-04:00] [soa_server1] [ERROR] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@a8acf9] [userId: <anonymous>] [ecid: 0000IW2gpmo7MAYVLqBT8A1BlpVK00000E,0] [APP: soa-infra] [composite_name: StockXferRecSOA] [component_name: StockBPEL/StockXferReciptService] [component_instance_id: 310009] Error -: B2B-51093: Decrypting S/MIME message failed {0}.[[
         at oracle.tip.b2b.packaging.SmimeSecureMessaging.decrypt(SmimeSecureMessaging.java:1024)
         at oracle.tip.b2b.packaging.mime.MimePackaging.processEncryptedMimeBodyPart(MimePackaging.java:1107)
         at oracle.tip.b2b.packaging.mime.MimePackaging.processInputStreamOrStringMessage(MimePackaging.java:1173)
         at oracle.tip.b2b.packaging.mime.MimePackaging.processMessageContent(MimePackaging.java:793)
         at oracle.tip.b2b.packaging.mime.MimePackaging.doUnpack(MimePackaging.java:726)
         at oracle.tip.b2b.packaging.mime.MimePackaging.unpack(MimePackaging.java:632)
         at oracle.tip.b2b.engine.Engine.processIncomingMessageImpl(Engine.java:1583)
         at oracle.tip.b2b.engine.Engine.processIncomingMessage(Engine.java:1395)
         at oracle.tip.b2b.engine.Engine.incomingContinueProcess(Engine.java:3216)
         at oracle.tip.b2b.engine.Engine.handleMessageEvent(Engine.java:2960)
         at oracle.tip.b2b.engine.Engine.processEvents(Engine.java:2706)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.processEvent(ThreadWorkExecutor.java:540)
         at oracle.tip.b2b.engine.ThreadWorkExecutor.run(ThreadWorkExecutor.java:200)
         at oracle.integration.platform.blocks.executor.WorkManagerExecutor$1.run(WorkManagerExecutor.java:77)
         at weblogic.work.j2ee.J2EEWorkManager$WorkWithListener.run(J2EEWorkManager.java:183)
         at weblogic.work.DaemonWorkThread.run(DaemonWorkThread.java:30)
    [2010-04-15T19:53:18.981-04:00] [soa_server1] [TRACE:32] [] [oracle.soa.b2b.engine] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@a8acf9] [userId: <anonymous>] [ecid:
    Thanks,
    Arun Jadhav                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Arun,
    Problem is that B2B is not able to decrypt the incoming message. There could be two possible reasons behind this -
    1. Your TP is not encrypting the message from your client certificate's public key (you should provide your client cert's public key to your TP and ask them to use that for encrypting the messages)
    2. You have not set up the corresponding private key at your B2B (in Host TP configuration and in deliver channel configuration of host TP)
    Please paste the complete log here/mail it to my id.
    Remote trading partner should encrypt the message using your your client cert's public key and you should decrypt it using your private key.
    For this ask your trading partner to encrypt the message using your provided public cert and at your side select the same cert in the delivery channel of your host DC under encryption credential. Make sure that keystore is containing this cert's private key.
    Regards,
    Anuj

  • Javax.mail.internet.ParseException when trying to send a MIME message

    Hi,
    I am using JavaMail to send a MIME message, but I am getting the following exception:
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at javax.mail.MessagingException.<init>(MessagingException.java:34)
    at javax.mail.internet.ParseException.<init>(ParseException.java:27)
    at javax.mail.internet.ParameterList.<init>(Compiled Code)
    at javax.mail.internet.ContentType.<init>(ContentType.java:82)
    at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1051)
    at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:1923)
    at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:1904)
    at javax.mail.Transport.send(Transport.java:101)
    at FPSend.main(Compiled Code)
    The problem seems to be the header of the message, specifically the class-id filed of the content-type. This is the content-type header that causes javaMail to throw that exception:
    Content-Type: multipart/alternative;
    boundary="------------110059296832670";
    class-id=11:9sc9bnYwM87box:2680047
    I think the ":" character in the class-id is causing the problem. Does anybody know if those characters are valid according to MIME standards? And if they are not valid, is there a work around this problem?
    thank you!

    RFC 2046 doesn't mention the existence of the class-id parameter. But it does say this:Thus, a typical "multipart" Content-Type header field might look like this:
         Content-Type: multipart/mixed; boundary=gc0p4Jq0M2Yt08j34c0p
    But the following is not valid:
         Content-Type: multipart/mixed; boundary=gc0pJq0M:08jU534c0p
    (because of the colon) and must instead be represented as
         Content-Type: multipart/mixed; boundary="gc0pJq0M:08jU534c0p"From what I see elsewhere, Class-ID is a Microsoft extension. It wouldn't be surprising to find that Microsoft uses extensions that are incompatible with the MIME standards.

  • Convergence not displaying all of Mulitpart MIME messages

    Occasionally a message will come through, readable in IMAP, and even in Comms Express 6.3, but it's blank in Convergence 1u2.
    Invariably said message will always start with:
    "This is a multi-part message in MIME format."
    And in Convergence the rest of it is blank. Here's an example. The part that says "For those planning to go, Chotchky's at 5:30pm." is not visible in Convergence, but is visible over IMAP and in CE 6.3:
    Return-path: <[email protected]>
    Received: from mta4.school.edu ([10.1.106.74])
    by ms0.school.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar
    14 2008; 32bit)) with ESMTP id <[email protected]> for
    [email protected]; Thu, 20 Aug 2009 16:37:13 -0400 (EDT)
    Original-recipient: rfc822;[email protected]
    Received: from lyris.school.edu ([130.68.1.204])
    by mta4.school.edu (Sun Java(tm) System Messaging Server 6.3-8.01 (built
    Dec 16 2008; 32bit)) with SMTP id <[email protected]> for
    [email protected] (ORCPT [email protected]); Thu,
    20 Aug 2009 16:37:13 -0400 (EDT)
    Message-id:
    <LISTMANAGER-439878-20171-2009.08.20-16.37.06--me#[email protected]>
    Date: Thu, 20 Aug 2009 16:33:11 -0400
    From: Veep Headguy <[email protected]>
    Reply-to: Veep Headguy <[email protected]>
    Organization: School
    User-Agent: Thunderbird 2.0.0.22 (Windows/20090605)
    MIME-version: 1.0
    To: Information Technology <[email protected]>
    Subject: [msu-it-all] End of summer gathering
    Content-type: multipart/mixed; boundary=------------040003060804070804070803
    List-Unsubscribe: <mailto:[email protected]>
    --------------040003060804070804070803
    Content-Type: text/plain; charset="us-ascii"
    Content-description: header
    --------- Information Technology mailing list --------
    This is a multi-part message in MIME format.
    --------------040003060804070804070803
    Content-Type: text/plain; charset=ISO-8859-1; format=flowed
    Content-Transfer-Encoding: 7bit
    For those planning to go, Chotchky's at 5:30pm.
    --------------040003060804070804070803
    Content-Type: text/x-vcard; charset=utf-8;
    name="vcard.vcf"
    Content-Transfer-Encoding: 7bit
    Content-Disposition: attachment;
    filename="vcard.vcf"
    begin:vcard
    ...snip...
    end:vcard
    --------------040003060804070804070803
    Content-Type: text/plain; charset="us-ascii"
    Content-description: footer
    Veep Headguy, CIO of School
    --------------040003060804070804070803--

    Shane,
    After a long delay I'm looking at this issue again and your initial argument for the bug doesn't seem to hold true. We've switched mailing list providers since, which has resolved the "space on blank line" issue and the incorrect placement of the "multi-part MIME" message (at least for messages sent in plain text). Convergence (1u3 now) takes the header MIME portion, duplicates it, and does not display the message content.
    As the message source appears:
    Content-type: multipart/mixed; boundary="----------=_1277239432-28582-15"
    This is a multi-part message in MIME format...
    ------------=_1277239432-28582-15
    Content-Type: text/plain; charset="UTF-8"; name="message-header.txt"
    Content-Disposition: inline; filename="message-header.txt"
    Content-Transfer-Encoding: 8bit
    MIME-Version: 1.0
    X-Mailer: MIME-tools 5.427 (Entity 5.427)
    ANYTHING YOU SAY CAN AND WILL BE USED AGAINST YOU IN A COURT OF LAWYERS
    ------------=_1277239432-28582-15
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 7bit
    Still delicious, though.
    Adam N. Copeland
    Office of Information Technology
    Systems and Security Group
    www.montclair.edu/~copelanda
    ------------=_1277239432-28582-15
    Content-Type: text/plain; charset="UTF-8"; name="message-footer.txt"
    Content-Disposition: inline; filename="message-footer.txt"
    Content-Transfer-Encoding: 8bit
    test-copelanda
    Your favorite chewing gum is coming back into style! Football.
    ------------=_1277239432-28582-15--How the message appears in Convergence:
    ANYTHING YOU SAY CAN AND WILL BE USED AGAINST YOU IN A COURT OF LAWYERS **************************************************************************************************************
    ANYTHING YOU SAY CAN AND WILL BE USED AGAINST YOU IN A COURT OF LAWYERS **************************************************************************************************************
    test-copelanda Your favorite chewing gum is coming back into style! Football.

  • How to send digitally sign S/MIME messages with Powershell cmdlet Send-MailMessage?

    Hello,
    using AD Windows PKI I assigned a certificate EKU (1.3.6.1.5.5.7.3.4) to sign emails and get this with
    autoenrollment also to my CERT Store PS
    CERT:\CurrentUser\UserDS\ or the certificate could found via MMC / certificates in the store structur under "Active Directory User Object".
    Signed messages (red icon) to send as S/MIME message using Outlook 2010 is not a problem.
    Using PowerShell cmdlet Send-MailMessage to be sent company notification for a new passwordpolicy some days before pwd expired?! I use the cmdlet already successfully to filling HTML bodies with variables and send to individuals accounts.
    Reduced simplified PS code:
    $SMTPBodyHtmlTemplate = Get-Content "C:\PS\Template\HTMLBody.html" | Out-String
    Function SendEmailNotification # /* SEND E-MAIL Notification to User */#
    [string] $SMTPServer = "mail.domain.local"
    $CurrentUser = "$env:username"
    [string]$SMTPFrom = (Get-ADUser $CurrentUser -properties mail).mail
    [string[]] $SMTPTo = $($Obj.EmailAddress)
    [string]$SMTPSubject = "Notification!"
    [String]$SMTPBodyHtml = $SMTPBodyHtmlTemplate.Replace("UserDisplayname","$($UserDisplayname)")
    Send-MailMessage -From $SMTPFrom -To $SMTPTo -Subject $SMTPSubject -BodyAsHtml $SMTPBodyHtml -dno OnFailure -SmtpServer $SMTPServer -encoding ([System.Text.Encoding]::UTF8) -ErrorAction Continue
    How can I use the PSDrive own CERT and using PowerShell cmdlet Send-MailMessage
    to send a signed message, without development experience?
    Thanks in advance for cooperation.
    Manfred Schüler

    Hi,
    could create with an other colleague a DLL file (with this informations) for successfully sending sign messages from PS-Script. 
    Function SendEmailNotification # /* SEND SIGN E-MAIL */#
    $SMTPBodyHtmlTemplate = Get-Content "C:\PS\Template\HTML.html" | Out-String
    [System.Reflection.Assembly]::LoadFile("C:\PS\Assembly\Cpi.Net.SecureMail.dll") | Out-Null
    [string]$strSmtpServer = "smtp.domain.local"
    [string]$strSmtpPort = "25"
    [string]$strFrom = (Get-ADUser $CurrentUser -properties mail).mail
    [string]$strFromAlias = (Get-ADUser $CurrentUser -properties DisplayName).DisplayName
    [string]$strTo = $UserEmailAddress
    [string]$strToAlias = $UserEmailDisplayName
    [String]$strSubject = "Subject as you like"
    [string]$strBody = $SMTPBodyHtmlTemplate.Replace("UserDisplayname","$($UserDisplayname)")
    $objMail = New-Object Cpi.Net.SecureMail.SecureMailMessage
    $objFrom = New-Object Cpi.Net.SecureMail.SecureMailAddress($strFrom,$strFromAlias,$objCert,$objCert)
    $objTo = New-Object Cpi.Net.SecureMail.SecureMailAddress($strTo,$strToAlias)
    $objMail.From = $objFrom
    $objMail.to.Add($objTo)
    $objMail.Subject = $strSubject
    $objMail.Body = $strBody
    $objMail.IsBodyHtml = $TRUE
    $objMail.IsSigned = $TRUE
    $objMail.IsEncrypted = $FALSE
    $objSMTPClient = New-Object System.Net.Mail.SmtpClient($strSmtpServer,$strSmtpPort)
    $objSMTPClient.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials
    $objSMTPClient.send($objMail)
    Maybe Microsoft can implement this in future versions of the cmdlets Send-MailMessage ;-)
    Manfred Schüler

  • Error CodeB2B-51093 Decrypting S/MIME message failed

    Hi,
    We are not able to decrypt the messages received from partner
    B2B 11.1.1.4
    sending 820 over AS2
    Receiving over https://host:port/b2b/httpreceiver
    Keystore: configured and contains certs for the TP and for host TP.
    Error :Error CodeB2B-51093 Decrypting S/MIME message failed
    Also, i want to know when we are receiving the messges over https://host:port/b2b/httpreceiver how does B2B know which cert to use for decrypt

    Error CodeB2B-51093 Decrypting S/MIME message failed Make sure that your TP is encrypting the message using public key which you shared with him and you have configured corresponding private key in the keystore on B2B console. You may refer -
    http://anuj-dwivedi.blogspot.com/2011/04/implementing-message-security-in-oracle.html
    Regards,
    Anuj

  • OWA 2013 : An error occurred while signing this S/MIME message. No certificate was found.

    Hi,
    I've configured SMIME (certificate templates, signing/encryption certificate, etc.)
    All users receive their certificate, and in Outlook (2010) everything is working as expected.
    When I use the OWA 2013 however to send an encrypted message, I receive the error :
    "An error occurred while signing this S/MIME message. No certificate was found. If you have a smart card-based certificate, insert the card and try again."
    environment : exchange 2013 SP1, ie 9 and 10
    Get-SMIMEConfig
    [PS] D:\Scripts>Get-SmimeConfig
    RunspaceId                                       : 24178a41-aead-45fc-a4c2-5504b2541e7e
    OWACheckCRLOnSend                                : False
    OWADLExpansionTimeout                            : 60000
    OWAUseSecondaryProxiesWhenFindingCertificates    : True
    OWACRLConnectionTimeout                          : 60000
    OWACRLRetrievalTimeout                           : 10000
    OWADisableCRLCheck                               : False
    OWAAlwaysSign                                    : False
    OWAAlwaysEncrypt                                 : False
    OWAClearSign                                     : True
    OWAIncludeCertificateChainWithoutRootCertificate : False
    OWAIncludeCertificateChainAndRootCertificate     : True
    OWAEncryptTemporaryBuffers                       : True
    OWASignedEmailCertificateInclusion               : True
    OWABCCEncryptedEmailForking                      : 0
    OWAIncludeSMIMECapabilitiesInMessage             : False
    OWACopyRecipientHeaders                          : False
    OWAOnlyUseSmartCard                              : False
    OWATripleWrapSignedEncryptedMail                 : True
    OWAUseKeyIdentifier                              : False
    OWAEncryptionAlgorithms                          : 6610
    OWASigningAlgorithms                             : 8004
    OWAForceSMIMEClientUpgrade                       : True
    OWASenderCertificateAttributesToDisplay          :
    OWAAllowUserChoiceOfSigningCertificate           : False
    SMIMECertificateIssuingCA                        :
    SMIMECertificatesExpiryDate                      :
    SMIMEExpiredCertificateThumbprint                :
    AdminDisplayName                                 :
    ExchangeVersion                                  : 0.1 (8.0.535.0)
    Name                                             : Smime Configuration
    DistinguishedName                                : CN=Smime Configuration,CN=Global Settings,CN=customer,CN=Microsoft Exchange,CN=Services,CN=Configuration,DC=customer,DC=com
    Identity                                         : Smime Configuration
    Guid                                             : 1184683a-2fcd-446b-98a6-bf0fb16ca282
    ObjectCategory                                   : customer.com/Configuration/Schema/ms-Exch-Container
    ObjectClass                                      : {top, container, msExchContainer}
    WhenChanged                                      : 17/06/2014 14:21:52
    WhenCreated                                      : 17/06/2014 14:21:52
    WhenChangedUTC                                   : 17/06/2014 12:21:52
    WhenCreatedUTC                                   : 17/06/2014 12:21:52
    OrganizationId                                   :
    OriginatingServer                                : DC1.customer.COM
    IsValid                                          : True
    ObjectState                                      : Unchanged

    Have you set up a virtual certificate collection? Looks like that's new with Exchange 2013:
    http://technet.microsoft.com/en-us/library/dn626158(v=exchg.150).aspx
    http://technet.microsoft.com/en-us/library/dn626155(v=exchg.150).aspx
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

  • Error in posting message to BPEL process instance

    Hi
    There is following Error associated with BPEL Process while invoking another BPEL Process called-Request For Invoice Information The SOA Server Log associated with this error is as follows-
    [2012-11-06T10:08:37.157+05:30] [soa_server1] [ERROR] [] [oracle.soa.services.workflow.task] [tid: [ACTIVE].ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: weblogic] [ecid: 74be42f58e7a71c3:-749bd11d:13abbc92686:-8000-000000000000c717,1:31260] [APP: soa-infra] <.> Error in posting message to BPEL process instance.[[
    Error in posting message to BPEL process instance 200458 for callback operation onTaskCompleted. The task is associated with workflow default/RequestForInvoiceInformation!1.0/RequestForInvoiceInformationHumanTask.
    This could be caused if the BPEL instance is terminated. If it is not, this is possibly a system error.
    ORABPEL-30015
    Error in posting message to BPEL process instance.
    Error in posting message to BPEL process instance 200458 for callback operation onTaskCompleted. The task is associated with workflow default/RequestForInvoiceInformation!1.0/RequestForInvoiceInformationHumanTask.
    This could be caused if the BPEL instance is terminated. If it is not, this is possibly a system error.
         at oracle.bpel.services.workflow.task.impl.WorkflowCallback.onTaskComplete(WorkflowCallback.java:113)
         at oracle.bpel.services.workflow.task.impl.TaskService.invokeCallbacks(TaskService.java:6911)
         at oracle.bpel.services.workflow.task.impl.TaskService.performPostActionOperation(TaskService.java:7628)
         at oracle.bpel.services.workflow.task.impl.TaskService.localHandleRoutingSlipInterpretationResult(TaskService.java:3564)
         at oracle.bpel.services.workflow.task.impl.TaskService.handleRoutingSlipInterpretationResult(TaskService.java:3688)
         at oracle.bpel.services.workflow.task.impl.TaskService.evaluateRoutingSlipTaskAssignment(TaskService.java:3490)
         at oracle.bpel.services.workflow.task.impl.TaskService.updateTaskOutcomeAndEvaluateRoutingSlip(TaskService.java:3445)
         at oracle.bpel.services.workflow.task.impl.TaskService.updateTaskOutcome(TaskService.java:3153)
         at oracle.bpel.services.workflow.task.impl.TaskService.updateTask(TaskService.java:2011)
         at sun.reflect.GeneratedMethodAccessor1826.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:601)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:91)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at oracle.bpel.services.workflow.test.workflow.ExceptionTestCaseBuilder.invoke(ExceptionTestCaseBuilder.java:155)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at oracle.bpel.services.common.dms.MethodEventAspect.invoke(MethodEventAspect.java:70)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at oracle.bpel.services.common.dms.MethodPhaseEventAspect.invoke(MethodPhaseEventAspect.java:82)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy246.updateTask(Unknown Source)
         at oracle.bpel.services.workflow.task.ejb.TaskServiceBean.updateTask(TaskServiceBean.java:214)
         at sun.reflect.GeneratedMethodAccessor1825.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:601)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy307.updateTask(Unknown Source)
         at oracle.bpel.services.workflow.task.ejb.TaskServiceBean_399vcw_EOImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
         at oracle.bpel.services.workflow.task.ejb.TaskServiceBean_399vcw_EOImpl.updateTask(Unknown Source)
         at oracle.bpel.services.workflow.task.ejb.TaskServiceBean_399vcw_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: java.lang.NullPointerException
         at oracle.fabric.CubeServiceEngine.post(CubeServiceEngine.java:626)
         at oracle.integration.platform.blocks.mesh.AsynchronousMessageHandler.doCallbackPost(AsynchronousMessageHandler.java:76)
         at oracle.integration.platform.blocks.mesh.MessageRouter.post(MessageRouter.java:195)
         at oracle.integration.platform.blocks.mesh.MeshImpl.post(MeshImpl.java:215)
         at sun.reflect.GeneratedMethodAccessor1589.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:601)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy310.post(Unknown Source)
         at oracle.bpel.services.workflow.fabric.WorkflowServiceEngine.postToMesh(WorkflowServiceEngine.java:1560)
         at oracle.bpel.services.workflow.fabric.WorkflowServiceEngine.doCallback(WorkflowServiceEngine.java:1683)
         at oracle.bpel.services.workflow.task.impl.WorkflowCallback.postToFabric(WorkflowCallback.java:346)
         at oracle.bpel.services.workflow.task.impl.WorkflowCallback.onTaskComplete(WorkflowCallback.java:109)
         ... 58 more
    Thanks
    Snehal

    The log entry shows that user : WALMART is missing on your user-properties.xml file.
    Please check that you have this user properly configured with jazn. Which version of BPEL you are using and what are the changes you are trying to do to the deployed project ?

  • How to create an S/MIME message in Windows Phone 8?

    Hi!
    I am communicating with a backend that requires me to create on the Phone a message that follows the S/MIME standard. I have stored a public key in the IsolatedStorage on the phone, but I am not sure how to build the S/MIME message since there doesn't seem
    to exist any support for this in Phone 8 .NET framework.
    Does anyone have suggestions on how to accomplish this? There seems to be very little X509 support in Phone 8. I have talked to a fellow developer that did the Android app, and they used Bouncy Castle SMIME libraries (javamail) but these have not been ported
    to the C# version of Bouncy Castle.
    Any ideas? I have never built an S/MIME message before, but as far as I can tell it is a simple header-body design where the body can have a nested structure, and the body can also be encrypted.
    I ahve checked the
    http://social.msdn.microsoft.com/Forums/en-US/netfxnetcom/thread/74e4711e-1f66-43a7-9e3b-bc9cfbcd1b73/ post, and they use cms classes that doesn't exist in Phone 8... :(
    best regards
    /S
    Henrik

    If you want S/MIME support on Windows Phone, take a look at MimeKit (https://github.com/jstedfast/MimeKit) and MailKit (https://github.com/jstedfast/MailKit).
    MimeKit is a very fast and robust MIME parser implementation written in C# that uses BouncyCastle for the low-level cryptography and supports both S/MIME v3.2 and PGP.
    MailKit builds on top of MimeKit to add SMTP, POP3, and IMAP support.
    Both projects are completely open source and free for commercial use.

  • Passing Soap message in Mime message

    Hi, is it possible to Passing Soap message in Mime message. if yes, please direct me to some sample codes. thanks

    Your question is sounds little ambiguous. A SOAP message is basically XML over HTTP. So the mime would be XML. What do you mean by "SOAP message in MIME message"?

  • Parsing MIME message

    Hi,
    I have a saved email message in MIME format. Some of the emails have attachments encoded using base64. I want to parse the message and extract these attachments.
    I started doing this in my class by looking for pattern only to realize that these messages are based on some RFC standard. So without knowing this standard well, my class is going to work only some of the time.
    Perhaps there is an existing API to parse the MIME message and get the attachments. Can anyone can tell me where I can find such API?
    Thanks.

    Looking at the docs, it seems that it requires a session object, but I already have the message as stream. Can it work without a session?

Maybe you are looking for

  • How do I install Safari on 10.6.8?

    Recently Safari started acting up. It kept crashing immediately after launching it. Every single time. This actually happened once before, after I installed new memory from Crucial, so I deleted Safari and downloaded it again from Apple.com. I don't

  • Range from columns based on list of values

    Hi, I have a table that has a key_code and a alt_code like this with values like so.. (has 2 million records in 8.1.7 Database) KEY_CODE ALT_CODE 0001     AA 0001          AB 0001          AF 0001          G4 0001          G5 0001          G6 0200   

  • HOW TO RUN THE APPLET IN JAR?

    Hi, I have an simple applet . I have created the jar file for the applet using the jar utility. 1. I would Like to make my applet run simply by double clicking of the jar file. 2. I have included in the manifest file manifest.inf the main-class file.

  • Adobe Acrobat 11 Bookmark issue

    Adobe Acrobat 11 closes when I click through different bookmarks of any pdf file.  How can I fix?

  • Trouble sending MMS on LG Spectrum

    Whether I try to send a picture captured from the camera, one from the gallery or forward one that I've received as an MMS message, it says it's sending for many, many minutes, then finally I will get an error message saying that it couldn't send, th