OSB defaulting Content-Type to "multipart/related" in case of attachments

I have scenario where I need to invoke a REST Webservice from OSB which accepts only media types which has "multipart/atom+xml". OSB is used for protocol transformation converting the SOAP request into the HTTP POST request with multipart. I have Proxy Service which will unwrap the message from the SOAP Body and post the same message into the payload of the Business Service and the attachment is passed 'as is' from the SOAP Service. The external REST Service Provider expects the media type to be "multipart/atom+xml", but in OSB when an attachment is present in the message, OSB is overrding the "Content-Type" proeprty to "multipart/related" inspite of me setting the "Content-Type" property of HTTP Transport Header in OSB and as result external RESTFUL Service is throwing "415-Unsupported Media Type" error. Below is the test results. One interesting thing is, it happens only when there is attachment present in the message. In case of a message which doesn't have attachment any "Content-Type" specified in the Transport Header is passed by the OSB to the external service. Any help is highly appreciated.
OSB Transport Header
Added the header <http:Content-Type>multipart/atom+xml</http:Content-Type>
Actual Raw Message
POST http://xxx7200:7004/XXXInterfaces/identify HTTP/1.1
Content-Type: multipart/related; type="text/plain"; start="<Root_-328322390>"; boundary=MIME_Boundary; charset=UTF-8
MIME-Version: 1.0
User-Agent: Java1.6.0_17
Host: xxx7200:7004
Accept: text/html, image/gif, image/jpeg, */*; q=.2
Proxy-Connection: Keep-Alive
Content-Length: 4823
Expected Raw Message
POST http://xxx7200:7004/XXXInterfaces/identify HTTP/1.1
Content-Type: multipart/atom+xml; boundary=MIME_Boundary;
User-Agent: Java1.6.0_17
Host: xxx7200:7004
Accept: text/html, image/gif, image/jpeg, */*; q=.2
Proxy-Connection: Keep-Alive
Content-Length: 4803
-KC
Edited by: 799459 on Apr 8, 2011 5:36 AM
Edited by: 799459 on Apr 8, 2011 7:02 AM
Edited by: 799459 on Apr 8, 2011 7:13 AM
Edited by: 799459 on Apr 8, 2011 7:14 AM

HTTP content-type header has the following limitation as per osb doc.
Oracle Service Bus run time may overwrite these headers in the binding layer when preparing the message for dispatch. If these headers are modified, $inbound and $outbound are updated accordingly. So what you are seeing may be working as designed. Cant the remote service accept the multi part related content type set up by osb ?

Similar Messages

  • Assign default content type to any library automactially when site get created or people add the library

    we are on on premise environment, and we have a requirement that when people create a site or a sub site or even when they add a new document library , we want to ensure our custom content type is assigned as default content type to this library.
    the question is that is there any non-full trust solution, i know we probably can do it via feature stapling, or custom site template stuff. but they are NOT considered as we want PLA compliance

    Hi,
    As I understand, you would like to asscoiate a custom content type to a library when the library is created.
    With OOB option, you could try add this content type to an existing library, and save library as template. Then the library template should appear in Your Apps page, that is to say, users can directly create document library based on this template.
    As I tested, new document library created based on this template contains custom content type by default.
    With programatically methods, please refer to the similar threads below:
    https://social.technet.microsoft.com/Forums/en-US/ec9e243b-ea4c-4a46-8780-75a3a5659164/mysite-add-content-type-to-document-library-by-default?forum=sharepointadminprevious
    https://social.technet.microsoft.com/Forums/en-US/e58eb107-daa5-4a51-a139-dca2b1cf8591/set-default-content-type-for-document-libraries-on-a-custom-site-template?forum=sharepointdevelopmentprevious
    Regards,Please
    remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Document Set default content type

    When defining a document set, you can define what content types can be used in a document set.  If, after uploading a document, the user cancels the properties page, the default content type for the library is assigned to the document (even though the
    document set does not permit the content type).  This is obviously a bug.  There have been several posts on this and it appears 2013 has the bug as well as 2010.
    We are seeking a work around to this bug. 
    Is it possible in in the client object model by placing a CEWP in the editform.aspx to force a content type on the item when the form is loaded?
    The other option is to modifiy the url that opens EditForm.aspx to force the content type.  Unfortunately the link that opens the EditForm.aspx page cannot be modified in the document library.

    Hi Clem_FRB,
    I did a test in my environment and I reproduce this issue.
    As a workaround, I suggest you change the content type or return an error in ItemAdded Event Receiver for document library.
    Here is a similar thread for you reference:
    http://sharepoint.stackexchange.com/questions/21986/document-sets-dont-enforce-allowed-content-types-when-multiple-doc-set-ct-are-a
    More information for your reference:
    http://www.niteenbadgujar.com/2013/05/change-default-content-type.html
    https://social.technet.microsoft.com/Forums/en-US/281fa281-7071-4beb-b275-e3179ce2cc08/how-to-set-default-content-type-in-document-library-using-client-object-model?forum=sharepointdevelopmentprevious
    Best Regards
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Zhengyu Guo
    TechNet Community Support

  • Changing Applications default content type for e.g fro Adobe Acrobat 7 to Adobe Acrobat Document

    How can I change the default Applications content type, currently it point to Adobe Acrobat 7.0 the correct content type should be Adobe Acrobat Document.

    See the [[managing file types]] article, in particular the section on changing download actions. You may need to select "Use other" and browse to the application if it is not listed as one of the default options.

  • OSB: Checking content type of a Business Service response

    Hi,
    I have a Proxy Service <-> Business Service configured as a pass-through only. (including http headers)
    The situation is: Sometimes, the service which my BS access send a fault response as a HTML instead of a fault soap envelop or something related with the provided xsd.
    My PS receives this and send back to the caller, but my customer needs a fault message. The service provider will not modify this behavior, so i need a way to check the content of the response to see if it's is an html and raise an exception.
    It's possible to do this ?

    Wow.
    First of all, ty for your really fast reply.
    Seconde: A valid fault response message is something like this:
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="my.foo.namespace" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/" >
    <soapenv:Body>
    <soapenv:Fault>
    <faultcode>soapenv:Server</faultcode>
    <faultstring>Unknown processing error.</faultstring>
    <detail>
    <ImsException version="6.0" >
    <exception>
    <name>exception.NotAuthorizedException</name>
    <code>700</code>
    <description>
    <![CDATA[Foo is not authorized to perform task.]]></description>
    </exception>
    </ImsException>
    </detail>
    </soapenv:Fault>
    </soapenv:Body>
    </soapenv:Envelope>
    I need to validate the <detail> tag agains my xsd. To do this, how to build the xquery to select this tag ? I need to apply some function on the content to transform the detail string into a structured xml ? It's something like:
    soapenv:Envelope/soapenv:Body/soapenv:Fault/detail
    If you have some links with examples i will appreciate.
    Ty for your help.
    Edited by: GSanches on 10/06/2010 06:27

  • Help: Setting the multipart/related start parameter

    I am wanting to set the "start" parameter on my ContentType header for
    a multipart related message. Something like below.
    DATA
    ContentType: multipart/related; boundary=_XXX; start="<somecid@domain>"
    I can set the content type to "multipart/related" by calling
    MimeMultipart.setSubType(), but I cannot figure out how to set the
    "start" parameter.
    Anyone know.
    Thanks,
    Chris

    Does the SMTP server accept the mail for delivery of does it reject it?
    If it doesn't reject it, is the issue with the format of the mime message, or possibly with whatever mail reader you are using.
    It the SMTP server does reject the message I suppose the next question is what exactly is the "SMTP" server you are using?
    IMHO you should not need to add anything to the mime multipart headers if using any RFC compliant SMTP server or reader. No-where in RFCs 2045,2046,2049,2822 etc can I find anything that relates to this "start" parameter.
    If the SMTP server is a "proper" SMTP server it should not give two hoots about the mime multipart/mime body parts of the message as it "should" only be interested in the headers required to deliver the email. The mime multi/body part headers are generally not used to deliver. They are used by a Mime compliant mail reader to format and display the message.
    We use Javamail to send regular "Newsletters" via a numbers of SMTP mail serviers running on IBM AS/400s, Sendmail on Unix, Lotus Notes servers and and others and have no problems.
    If you want to send me your code to run on our systems to see if it really is your SMTP server or your message format that is giving trouble I can probably help. I can't open up a server for you as we have rather strict policies on who can do what with our servers. You can of course use our normal SMTP server to send a test email to me!!
    Rgds,
    SH

  • Content-type multipart/voice is coming as text/plain ( getContentType() )

    Even though the actual E-mail message has the content type as multipart/Voice as shown below the getContentType() is shown as
    the following.
    getContentType()
    TEXT/PLAIN; charset=us-ascii
    THE ACTUAL MESSAGE :
    # cat 2.msgReturn-path: <[email protected]>
    Received: from localhost.localdomain ([192.18.74.46])
    by millerite.red.iplanet.com
    (Sun Java(tm) System Messaging Server 7.0-99.01 64bit (built Aug 12 2008))
    with ESMTP id <[email protected]> for
    [email protected]; Mon, 15 Sep 2008 15:42:28 -0700 (PDT)
    Original-recipient: rfc822;user51
    Date-warning: Date header was inserted by millerite.red.iplanet.com
    Date: Mon, 15 Sep 2008 15:42:28 -0700 (PDT)
    Message-id: <[email protected]>
    From: [email protected]
    To: [email protected]
    Content-type: Multipart/voice
    X-Message-Type: Multipart/voice
    Subject: Test Mail
    START
    =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB1KB
    JAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVAJAVA
    =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
    END

    Mon Sep 15 17:50:43 PDT 2008
    DEBUG: JavaMail version 1.4.1
    DEBUG: not loading file: /usr/jdk/instances/jdk1.5.0/jre/lib/javamail.providers
    DEBUG: java.io.FileNotFoundException: /usr/jdk/instances/jdk1.5.0/jre/lib/javamail.providers (No such file or directory)
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.providers
    DEBUG: successfully loaded resource: /META-INF/javamail.default.providers
    DEBUG: Tables of loaded providers
    DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]}
    DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]}
    DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
    DEBUG: !anyLoaded
    DEBUG: not loading resource: /META-INF/javamail.address.map
    DEBUG: not loading file: /usr/jdk/instances/jdk1.5.0/jre/lib/javamail.address.map
    DEBUG: java.io.FileNotFoundException: /usr/jdk/instances/jdk1.5.0/jre/lib/javamail.address.map (No such file or directory)DEBUG: getProvider() returning javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc]
    DEBUG: mail.imap.fetchsize: 16384
    * OK [CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT SORT CATENATE URLAUTH LANGUAGE ESEARCH ESORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ENABLE CONTEXT=SEARCH CONTEXT=SORT WITHIN SASL-IR SEARCH_RES XSENDER X-NETSCAPE XSERVERINFO X-SUN-SORT ANNOTATE-EXPERIMENT-1 X-UNAUTHENTICATE X-SUN-IMAP X-ANNOTATEMORE XUM1 STARTTLS AUTH=DIGEST-MD5 AUTH=PLAIN AUTH=CRAM-MD5] millerite.red.iplanet.com IMAP4 service (Sun Java(tm) System Messaging Server 7.0-99.01 64bit (built Aug 12 2008))
    IMAP DEBUG: AUTH: DIGEST-MD5
    IMAP DEBUG: AUTH: PLAIN
    IMAP DEBUG: AUTH: CRAM-MD5
    A0 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT SORT CATENATE URLAUTH LANGUAGE ESEARCH ESORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ENABLE CONTEXT=SEARCH CONTEXT=SORT WITHIN SASL-IR SEARCH_RES XSENDER X-NETSCAPE XSERVERINFO X-SUN-SORT ANNOTATE-EXPERIMENT-1 X-UNAUTHENTICATE X-SUN-IMAP X-ANNOTATEMORE XUM1 STARTTLS AUTH=DIGEST-MD5 AUTH=PLAIN AUTH=CRAM-MD5
    A0 OK Completed
    IMAP DEBUG: AUTH: DIGEST-MD5
    IMAP DEBUG: AUTH: PLAIN
    IMAP DEBUG: AUTH: CRAM-MD5
    DEBUG: protocolConnect login, host=millerite.red.iplanet.com, user=user51, password=<non-null>
    A1 AUTHENTICATE PLAIN
    +
    dXNlcjUxAHVzZXI1MQB1c2VyNTE=
    A1 OK User logged in
    A2 CAPABILITY
    * CAPABILITY IMAP4 IMAP4rev1 ACL QUOTA LITERAL+ NAMESPACE UIDPLUS CHILDREN BINARY UNSELECT SORT CATENATE URLAUTH LANGUAGE ESEARCH ESORT THREAD=ORDEREDSUBJECT THREAD=REFERENCES ENABLE CONTEXT=SEARCH CONTEXT=SORT WITHIN SASL-IR SEARCH_RES XSENDER X-NETSCAPE XSERVERINFO X-SUN-SORT ANNOTATE-EXPERIMENT-1 X-UNAUTHENTICATE X-SUN-IMAP X-ANNOTATEMORE XUM1 STARTTLS
    A2 OK Completed
    A3 LIST "" INBOX
    * LIST (\NoInferiors) "/" INBOX
    A3 OK Completed
    Sep 15, 2008 5:50:47 PM com.sun.comms.iss.indexapi.parser.EmailParser bootstrapEvent
    INFO: [ Begin: Mon Sep 15 17:50:47 PDT 2008 ] Processing User - user51 On Host - millerite.red.iplanet.com
    DEBUG: connection available -- size: 1
    A4 EXAMINE INBOX
    * FLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk)
    * OK [PERMANENTFLAGS ()]
    * 5 EXISTS
    * 0 RECENT
    * OK [UIDVALIDITY 1217896692]
    * OK [UIDNEXT 7]
    A4 OK [READ-ONLY] Completed
    A5 FETCH 1 (BODYSTRUCTURE)
    * 1 FETCH (BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 0 0 NIL NIL NIL NIL))
    A5 OK Completed
    A6 FETCH 1 (UID)
    * 1 FETCH (UID 2)
    A6 OK Completed
    A7 FETCH 1 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 1 FETCH (INTERNALDATE "15-Sep-2008 15:42:29 -0700" RFC822.SIZE 2257 ENVELOPE ("Mon, 15 Sep 2008 15:42:28 -0700 (PDT)" "Test Mail" ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user51" "red.iplanet.com")) NIL NIL NIL "<[email protected]>"))
    A7 OK Completed
    A8 FETCH 1 (FLAGS)
    * 1 FETCH (FLAGS (\Seen NonJunk))
    A8 OK Completed
    A9 CLOSE
    A9 OK Completed
    DEBUG: added an Authenticated connection -- size: 1
    A10 LIST "" INBOX
    * LIST (\NoInferiors) "/" INBOX
    A10 OK Completed
    DEBUG: connection available -- size: 1
    A11 EXAMINE INBOX
    * FLAGS (\Answered \Flagged \Draft \Deleted \Seen NonJunk)
    * OK [PERMANENTFLAGS ()]
    * 5 EXISTS
    * 0 RECENT
    * OK [UIDVALIDITY 1217896692]
    * OK [UIDNEXT 7]
    A11 OK [READ-ONLY] Completed
    A12 FETCH 2:5 (BODYSTRUCTURE)
    * 2 FETCH (BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 0 0 NIL NIL NIL NIL))
    * 3 FETCH (BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 0 0 NIL NIL NIL NIL))
    * 4 FETCH (BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 0 0 NIL NIL NIL NIL))
    * 5 FETCH (BODYSTRUCTURE ("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 0 0 NIL NIL NIL NIL))
    A12 OK Completed
    A13 FETCH 2 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 2 FETCH (INTERNALDATE "15-Sep-2008 15:42:29 -0700" RFC822.SIZE 2257 ENVELOPE ("Mon, 15 Sep 2008 15:42:28 -0700 (PDT)" "Test Mail" ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user51" "red.iplanet.com")) NIL NIL NIL "<[email protected]>"))
    A13 OK Completed
    A14 FETCH 2 (UID)
    * 2 FETCH (UID 3)
    A14 OK Completed
    A15 FETCH 2 (FLAGS)
    * 2 FETCH (FLAGS (\Seen NonJunk))
    A15 OK Completed
    A16 FETCH 3 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 3 FETCH (INTERNALDATE "15-Sep-2008 15:42:29 -0700" RFC822.SIZE 2257 ENVELOPE ("Mon, 15 Sep 2008 15:42:28 -0700 (PDT)" "Test Mail" ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user51" "red.iplanet.com")) NIL NIL NIL "<[email protected]>"))
    A16 OK Completed
    A17 FETCH 3 (UID)
    * 3 FETCH (UID 4)
    A17 OK Completed
    A18 FETCH 3 (FLAGS)
    * 3 FETCH (FLAGS (\Seen NonJunk))
    A18 OK Completed
    A19 FETCH 4 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 4 FETCH (INTERNALDATE "15-Sep-2008 15:42:29 -0700" RFC822.SIZE 2257 ENVELOPE ("Mon, 15 Sep 2008 15:42:28 -0700 (PDT)" "Test Mail" ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user51" "red.iplanet.com")) NIL NIL NIL "<[email protected]>"))
    A19 OK Completed
    A20 FETCH 4 (UID)
    * 4 FETCH (UID 5)
    A20 OK Completed
    A21 FETCH 4 (FLAGS)
    * 4 FETCH (FLAGS (\Seen NonJunk))
    A21 OK Completed
    A22 FETCH 5 (ENVELOPE INTERNALDATE RFC822.SIZE)
    * 5 FETCH (INTERNALDATE "15-Sep-2008 15:42:29 -0700" RFC822.SIZE 2257 ENVELOPE ("Mon, 15 Sep 2008 15:42:29 -0700 (PDT)" "Test Mail" ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user35" "red.iplanet.com")) ((NIL NIL "user51" "red.iplanet.com")) NIL NIL NIL "<[email protected]>"))
    A22 OK Completed
    A23 FETCH 5 (UID)
    * 5 FETCH (UID 6)
    A23 OK Completed
    A24 FETCH 5 (FLAGS)
    * 5 FETCH (FLAGS (\Seen))
    A24 OK Completed
    A25 CLOSE
    A25 OK Completed
    DEBUG: added an Authenticated connection -- size: 1
    A26 LIST "" INBOX
    * LIST (\NoInferiors) "/" INBOX
    A26 OK Completed
    IMAP DEBUG: IMAPProtocol noop
    A27 NOOP
    A27 OK Completed
    A28 LOGOUT
    * BYE LOGOUT received
    A28 OK Completed
    DEBUG: IMAPStore connection dead
    DEBUG: IMAPStore cleanup, force false
    DEBUG: IMAPStore cleanup done
    Mon Sep 15 17:50:47 PDT 2008Edited by: SpaceShuttle on Sep 15, 2008 5:59 PM
    Edited by: SpaceShuttle on Sep 15, 2008 6:00 PM

  • If I want to create a set of hierarchical relational content types, how do I move from one to the other?

    My scenario. I have been asked to create a series of content types to manage Report requests. A Report Base content type to be the parent, then three content types to extend that base to a Report Crystal, Report SSRS and Report SSIS. These top level
    reports collect data once. Once an instance of the "Report Crystal" content type  has been created the Report Writer needs to fill out another content type "Report DataSource" related by the ID of the parent to track any
    stored procedures used in the report, what database\s does it hit... Here is where I am lost on the how to fill out related lists. Do I add a calculated column that attaches the report ID the a URL? e.g. ..ReportDatasource/newform.aspx?ReportID=1 which will
    then show me the form. Or has this changed in 2013. I am reverse engineering some 2007 code to try to figure this out.
    The next step after that hurdle is, when the report writer has completed each data source entry, a workflow generates and email with links to a "Change Request" form. There would be one created for each row in the Report Datasource. The
    DBA would have to evaluate each "Change Request" and either Pass or Fail each one.  This Pass\Fail parameter and a description would get recorded in a "Change Result Log".
    I am wondering if a workflow replace the need for calculated columns or at least some. I think I have to have a calculated column in the initial "Report Crystal" column to fire off creating the first "Report DataSource" entry. And
    then a calculated column on that to give the option of adding another entry into the "Report DataSource" list if there are multiple procedures for the report. But if the report writer sets a column in the "Report DataSource" as Ready 
    For Review" a workflow should generate the Change Request.
    The flow is kind of set in stone but the structure is not. A very high level few of the data points

    Hi Developer_46038, 
    if for example all the properties and object are stated as list, i think there is a tool that overcome cross list.
    http://listrollup.codeplex.com/
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/13a51be5-4007-46e8-bbb2-5e04320dfebd/cross-list-webpart?forum=sharepointcustomizationlegacy
    you can also using dataview webpart to show the cross lists:
    http://office.microsoft.com/en-us/sharepoint-designer-help/create-a-data-view-HA010094804.aspx
    http://office.microsoft.com/en-us/sharepoint-designer-help/connect-two-data-views-HA010169133.aspx
    3rd party: http://community.bamboosolutions.com/blogs/bambooteamblog/archive/2009/03/11/relational-database-capabilities-for-sharepoint-lists-cross-list-web-part.aspx
    but i am not quite sure how crystal report will do, if you can make the crystal report as also list, i think its possible, 
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/8247edf5-dee8-49d8-b7ee-9e49bfd97b9b/crystal-report-in-sharepoint-2010-webpart?forum=sharepointdevelopmentprevious
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • How to Read a Message with Content Type multipart/alternative

    Hi ,
    I need to write a POP3 Client to read email message ..but some times the messages comes with content type multipart/alternative
    how to parse it and read only one of the content :
    for example :
    This is a multi-part message in MIME format.
    ------=_NextPart_000_12C25_01C6B64F.09226B00
    Content-Type: text/plain;
    charset="iso-8859-1"
    Content-Transfer-Encoding: 7bit
    Assignment to workgroup Name 1 : L2 SD Service Delivery Apps Spt
    Open CI Search Code : HPSD
    Description : tesat
    General Information :
    Is the workgroup owner Aware of the addition to Workgroup : Yes
    Workgroup to be added :
    L2 SD Service Delivery Apps Spt
    ------=_NextPart_000_12C25_01C6B64F.09226B00
    Content-Type: text/html;
    charset="iso-8859-1"
    Content-Transfer-Encoding: quoted-printable
    <br><P>Assignment to workgroup Name 1 : L2 SD Service Delivery Apps =
    Spt</P>
    <P>Open CI Search Code : HPSD</P>
    <P>Description : tesat</P>
    <P>General Information :</P>
    <P>Is the workgroup owner Aware of the addition to Workgroup : Yes</P>
    <P>Workgroup to be added :</P>
    <P>L2 SD Service Delivery Apps Spt</P>
    <P> </P>
    <P> </P>
    <P> </P>
    <P> </P>
    <P> </P>
    ------=_NextPart_000_12C25_01C6B64F.09226B00--
    The Same message is in text as well as HTML so not sure how to read it .
    currently my program is as follows
    for (int i = 0; i < found.length; i++) {
    Message m = found;
    // Get some headers
    Date date = m.getSentDate();
    Address [] from = m.getFrom();
    String subj = m.getSubject();
    String mimeType = m.getContentType();
    System.out.println(date + "\t" + from[0] + "\t" +
    subj + "\t" + mimeType);
    Object o = m.getContent();
    if (o instanceof String) {
    System.out.println("**This is a String Message**");
    System.out.println((String)o);
    } else if (o instanceof Multipart) {
    System.out.print("**This is a Multipart Message. ");
    Multipart mp = (Multipart)o;
    int count3 = mp.getCount();
    System.out.println("It has " + count3 +
    " BodyParts in it**");
    for (int j = 0; j < count3; j++) {
    // Part are numbered starting at 0
    BodyPart b = mp.getBodyPart(j);
    String mimeType2 = b.getContentType();
    System.out.println( "BodyPart " + (j + 1) +
    " is of MimeType " + mimeType);
    Object o2 = b.getContent();
    if (o2 instanceof String) {
    System.out.println("**This is a String BodyPart**");
    System.out.println((String)o2);
    } else if (o2 instanceof Multipart) {
    System.out.print(
    "**This BodyPart is a nested Multipart. ");
    Multipart mp2 = (Multipart)o2;
    int count2 = mp2.getCount();
    System.out.println("It has " + count2 +
    "further BodyParts in it**");
    } else if (o2 instanceof InputStream) {
    System.out.println(
    "**This is an InputStream BodyPart**");
    } //End of for
    } else if (o instanceof InputStream) {
    System.out.println("***********************************This is an InputStream message**");
    InputStream is = (InputStream)o;
    /* if(m.getContentType().equalsIgnoreCase("multipart/alternative")) {
    MimeMultipart mp = new MimeMultipart();
    // Assumes character content (not binary images)
    } else {*/
    BufferedReader reader
    =new BufferedReader(new InputStreamReader(is));
    String thisLine=reader.readLine();
    while (thisLine!=null) {
    System.out.println(thisLine);
    thisLine=reader.readLine();
    So when the Content TYpe is multipart/alternative it goes into InputStream message .
    any help and ideas to handel such situations ?
    Thanks
    San
    Message was edited by:
    sanrosh_95

    Try reposting that with tags (replace the {'s with ['s).
    Long story short, I think the FAQ and examples would go a long way towards explaining this, but you basically can check the content type, or check if the content contains parts, and parse each part separately.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • E-Mail recevier with Content-Type: multipart/mixed

    Hi All,
    I am working on proxy to Mail scenario, wherein Pi is receiving data from SAP over proxy, creating a csv of the data and sending it to recipient as the email with the attachment.
    The User is saying that he wants the email content type as Multipart MIME format. I have searched on SDN and web, but couldnu2019t find how to implement in PI.Please provide your inputs.
    Thanks in advance,
    Ruchi

    Hi Ruchi,
    You need to use Java Mapping or UDF to create Multipart/Mime
    Check this excellent blog by stefan.
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/6321
    Also check this thread for your solution
    http://forums.sdn.sap.com/message.jspa?tstart=0&messageID=945095

  • Preset default value of DropDown based on Content Type selection in the SharePoint 2010 library

    Hi,
    I have three site content types (Admin, Technical & Well) derived from base content type "Base" and added this content types to "Documents" library. I also have one site column "Category"(Dropdown) with values (Admin, Technical
    & Well) which is available in all the content types.
    Now, when i try to create a document based on "Admin" content type then "Category" value should be preset to "Admin", similarly when i select "Technical" content type then "Category" should be preset to "Technical"
    and same with "well".
    Can some one provide me how i can achieve this?
    I am working in the SharePoint 2010 environment.
    Regards,                                                                      
                                          Chakradhar

    My understanding is that , you have to display the category in all the content types.
    So in that case create a content type like
    Create a base content type -- with column category.
    Create a Admin content type based on base content type as parent. By default ,the category column is available in admin content.
    Create a Technical content type based on base content type as parent. By default ,the category column is available in Technical content type.
    Create a Well content type based on base content type as parent. By default ,the category column is available in Well content type.
    Do you want to create using sharepoint ui or code(visual studio)?

  • Several content types and default field value

    Hi!
    I have a document library with several custom content types (derived from standard Document type). One of them (CT1) has field with default value. Other content types must not contain this field. And when I upload document, this field has no default value.
    If I make CT1 first (and default) content type in a library, default value appears. Also it works when I add the field to the first content type. But in my solution CT1 must not be the first content type in a library and the field must have default value (and
    other content types must not have this field). Does anybody know how to make it?

    I understood why default value does not work. When we upload document to a library and then see a form with fields, it's not a newform, it's edit form. So when we upload a document, it gets first (default) content type of the library, only default fields
    from this content type are filled. The solution here to fill default fields from other content types is to write itemadded event receiver.

  • Attach a custom content type and set as default for picture library using client object model

    Hi,
    How to associate custom content type to a picture libraray and set it as default using the client object model?
    Thanks

    Hello,
    Here you go:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/b1de0697-0006-4f89-8909-1b94aa18ad89/how-to-reorder-content-types-in-list-with-client-context
    http://www.niteenbadgujar.com/2013/05/change-default-content-type.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Match Content-Type: multipart/alternative;

    Hello,
    we´re doing a 30 Day trial and we´re trying to migrate functions out of our Surfcontrol EF to 2 Ironport C-150.
    add_txt_footer:
    [Sender is stadthalle.com] and
    ["Content-Type: multipart/alternative;" is not in Header] and
    ["aw:, re:, fwd:, wg:" is not in Subject] and
    ["7999979" is not in Body] and
    [Message < 50kBytes] then add txtfooter
    add_html_footer:
    [Sender is stadthalle.com] and
    ["Content-Type: multipart/alternative;" is in Header] and
    ["aw:, re:, fwd:, wg:" is not in Subject] and
    ["7999979" is not in Body] and
    [Message < 50kBytes] then add htmlfooter
    - how can we do that?
    Current situation:
    add_txt_footer: if (mail-from == "stadthalle.com$") AND (header("Content-Type:") != "multipart/alternative;") AND (body-size < 50000) { add-footer("txtfooter"); }
    allways matches, so RTF and HTML Mails dont get the html footer
    </PRE>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <font face="Trebuchet MS"><strong>MASTERS OF DIRT:</strong>
    <br>
    21. + 22. Februar 2009 / Wiener Stadthalle
    <br>
    INFO: <a href="http://www.stadthalle.com">http://www.stadthalle.com</a> 01 / 79 999 79 </font>
    </body>
    </html>
    <PRE>
    any suggestion welcome!
    Klemens

    Hi Klemens,
    I made some slight modifications to your posted filter, and tried out my versions on an IronPort, which good results.
    There are other options you will probably want to add, such as including the name of the outgoing listener to keep messages from being "double-footered".
    This is covered in a Knowledge Base article already: http://tinyurl.com/5gaj24
    I created the following as message filters from the CLI.
    addtxtfooter:
    if(mail-from == "example.com$") AND (header("Content-Type") != "multipart/alternative") AND (body-size < 50000)
    add-footer("txtfooter");
    addhtmlfooter:
    if(mail-from == "example.com$") AND (header("Content-Type") == "multipart/alternative") AND (body-size < 50000)
    add-footer("htmlfooter");
    Hope that helps.
    -whardison

  • I need help using multiple content types in a wiki page library

    I currently trying to used multiple custom content types based off of the wiki page content type in one wiki page library. 
    EDIT: "Allow management of content types" has been enabled with the designer
    The way i would like this library to work is:
    Click the "Files" tab in the ribbon
    Click the "New Document" drop down menu
    Select one of the content types (Client, Contact, Project)
    SharePoint Will Ask for the Page Name and content type fields
    Click create
    Then it will take you to the new created page.
    This issue I'm currently having is when i click on one of the options (Client, Contact, Project) it will ask for a page name then you have to check it in to get to the edit form. The edit form it then loads is the default content type and not the selected
    content type.
    So my questions are.
    Is there any way i can combine the page name and edit steps together into one step?
    How can I get the edit form to pull from the selected content type?
    Thanks in advanced
    James T.F

    Wiki library isn't really designed for customizations... it's a "special" library that overrides a lot of default behavior... similar evidence can be found if you're trying to add metadata columns to wiki pages... they're just not really designed to handle
    it very well.
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

Maybe you are looking for

  • Powerbook G4 starts unexpectedly when lid opens

    The Powerbook seems to shut down normally - HD spins down, screen goes black, sleep light is out, keyboard is unresponsive, etc. When I take the computer out of the case the next day and open the lid, the HD spins up (no startup chime), and the scree

  • Calendar Event Invitiation problem

    In Outlook Calendar (pre-ICloud), I could generate an event, then invite people to the meeting.  Since I have several email accounts in my Outlook, I can choose which email address I want the invite sent from.  Simple. With the ICloud calendar, I do

  • DigitalColor Meter - RGB Values Don't Match?

    I've saved a 16 color palette under 'Colors' in the 'TextEdit' application. Each color has been set by directly typing in the values for R, G and B, for example one of the colors is R=68, G=255, B=153. If however I open the 'DigitalColor Meter' appli

  • Can not delete e-mail in Mac Mail 8.1

    I have my e-mail accounts setup as IMAPS. All seems to function correctly. Except when I delete an e-mail in any of my accounts within the INBOX, they either pop right back up or after a few minutes show back up. If I delete it again, it usually stay

  • Problem filling list item with values

    Hi all, We have a master detail form block A (master) contains an item, this item is in the record group's where-clause used to fill a list item on block B (detail block) (database item) we fille the list item in a pre-record trigger on the master bl