Changing Content type

Hi all,
We are trying to post data from XI to a Webservice using SOAP adapter.
XI sends the payload in "application/xml" content type whereas the webservice expects the "text/xml" content type.
Though I have used the standard apdater module "localejbs/AF_Modules/MessageTransformBean" in the SOAP receiver communication channel, the content type transformation is not happening properly.
Please let me know whether I'm missing out any of the steps.
Thanks,
Geetha

> Though I have used the standard apdater module "localejbs/AF_Modules/MessageTransformBean" in the SOAP receiver communication channel, the content type transformation is not happening properly.
>
> Please let me know whether I'm missing out any of the steps.
I do not see anything wrong. Check for typos.
The parameter should be: Transform.ContentType
Regards
Stefan

Similar Messages

  • How to change content-type in receiver mail adapter

    Hi,
    I have receiver mail adapter for sending XML file as attachment in the mail. My partner expects to receive mail with content-type: text/xml, but XI sends Content-Type: application/xml. Please advise how I can change content-type to text/xml.
    Thank you
    Lev

    hi,
    try MessageTransformBean
    Transform.ContentType
    http://help.sap.com/saphelp_nw04/helpdata/en/57/0b2c4142aef623e10000000a155106/content.htm
    also shown in my blog:
    /people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to change content type from Document set to Item

    While creating content type I've selected Item as a parent but after created I can see its showing Document Set as a parent content type. Now can anyone please suggest if possible I can change the parent content type from Document Set to Item.

    Hi,
    From your description, I know you want to change content type’s parent after creating it.
    There is no OOB method to change content type’s parent after you create it. If current content type has not been used, you could delete it and recreate it with your desired base type. Here are similar cases:
    http://sharepoint.stackexchange.com/questions/16131/change-base-content-type-of-content-type
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/b976f17e-99b5-42bb-bc82-8d4123a625cf/change-the-parent-of-a-content-type.
    This article may help you understand the relationship of Content type inheritance:
    https://support.office.com/en-au/article/Create-and-edit-content-types-3d5d45af-608d-4183-8d51-073095fe0312#__toc239159103.
    Best Regards
    Vincent Han
    TechNet Community Support

  • Unable to change content types for pptx, xslx and docx files

    I'm running into an issue where I cannot change the content type of any xml-based Office documents. Here's what I've done:
    1 - Create a custom content (A) type based off the Document content type
    2 - Enable the custom content type in a document library
    3 - Add a document or select an existing document and edit the content type to the custom content type
    4 - The custom content type will save for documents such as .ppt, .doc, etc. The custom content type will now save for .docx, .pptx or .xlsx files. The properties window will save without displaying any errors but the content type will not change
    I ran several tests including creating another custom content type (B) based off of the Document content type. I proved that:
    The custom content type (B) can be saved to .docx, .pptx or .xlsx files IF no additional columns are added to the custom content type
    As soon as I add a column to the custom content type the aforementioned documents cannot be saved as that custom content type 
    Documents created through the File option in a document library also fail to change content type to the custom content type when saved. Most of my files are .docx, .pptx, or .xlsx files, and this issue poses a significant roadblock in our SharePoint roll-out.
    I appreciate any advise you can provide.

    Hi,
    According to your post, my understanding is that the custom content type could not save with .docx, pptx and xlsx files when with a additional column.
    I tested with your issue as the steps below, the custom content type worked well.
    Create a custom column Doc1
    Create a custom content type Doc1, the parent content type from chose the Document Content Types, Parent Content Type chose Document.
    Add the custom Doc1 to the custom content type Doc1.
    Add the custom content type into the library LIbA.
    Upload the files with .docx, .pptx and .xlsx files into the library with the custom content type, they all save well with the custom content type.
    I also create other content type with other Parent Content Type, they all worked.
    Did the issue occur in other library? You can create a new library then use the custom content type to check whether it works.
    You can also use the other browsers to check whether it works, such as Chrome, Firefox.
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to change content-type (text/xml;charset=utf-8)  in SOAP receiver?

    Hi,
    How can I change the content-type (text/xml;charset=utf-8) sent by the SOAP adapter to an external webservice?
    I need to sent text/xml  as content-type to the webservice, otherwise I get an error.
    I have tried with different adapter modules but so far no positive results.
    Thanks.
    Edited by: Roberto Viana on Mar 26, 2009 2:02 PM

    Hi Stefan, many thanks for your answer.
    According to your answer it is not possible to manipulate/change the way PI fills the content-Type.
    I was hoping to solve the issue with a custom built adapter module that sets the HTTP header content-type to text/xml without the charset entry, but I understand that's not the case.
    Regards,
    Roberto Viana

  • OSB+how to change content type header in http transport header.

    I have a requirement where I need to change the value of:
    <http:Content-Type>text/xml; charset=utf-8</http:Content-Type>
    to the end system specific like:
    <http:Content-Type>application/abcd-cvs-v1+xml; </http:Content-Type>
    and the http:accept value to:
    <http:Accept>application/abcd-cvs-v1+xml</http:Accept>
    Can some one please explain how to do this.

    http://download.oracle.com/docs/cd/E13159_01/osb/docs10gr3/userguide/context.html
    Use replace action/insert on the follwoing QPath in trhe request action of the ServiceCallout/Routing as
    $outbound/ctx:transport/ctx:request/tp:headers/http:Content-Type
    $outbound/ctx:transport/ctx:request/tp:headers/http:Accept
    Manoj

  • How to change content/type from applicaiton/xml to text/xml??

    Hi B2B Gurus,
    Now that i have worked out file transfer. I was now trying to post the same document onto a HTTP URL.
    I see in the headers that the
    Content-Type=application/XML
    However i need the Content-Type to be text/XML
    Where can i get this changed?
    Edited by: user773213 on Apr 8, 2009 4:48 AM

    i tried it but it still shows the same content-type
    ***************************B2B.LOG************************************************
    2009.04.08 at 18:45:29:500: Thread-10: Repository - (INFORMATION) BIND VARS = (5B7A966871774858A1C935F4ADEECA85-95-1, 95, 1, N, http://ap604fin.us.oracle.com:7787/HTTPService/Receiver, <0AB05E5912085DE6D600000082D60500@AS2_Mycompany>, null, null, , Processing, oracle.tip.repos.core.driver.BinaryImpl@10bbd42, , null, , oracle.tip.repos.core.driver.BinaryImpl@1b6772a, null, null, null, HTTP, , 1.0, Wed Apr 08 18:45:29 GMT+05:30 2009, , Message-ID=<0AB05E5912085DE6D600000082D60500@AS2_Mycompany>
    Content-Transfer-Encoding=binary
    MIME-version=1.0
    From=AS2_Mycompany
    Receipt-Delivery-Option=file://localhost/ORACLE_HOME\MyCompany
    Disposition-Notification-To=[email protected]
    AS2-To=AS2_Supplier1
    User-Agent=AS2 Server
    Date=Wed, 08 Apr 2009 13:15:17 GMT
    AS2-Version=1.1
    AS2-From=AS2_Mycompany
    Content-Type=application/XML; name=ShipOrder
    Connection=close
    , null, 0AB05E5912085DE72520000082D60600, null, 3C4DF09FF3304FA698C287DA35154FDB, 826050DF70374FF389E372DB6D126D46)
    2009.04.08 at 18:45:29:906: Thread-10: Repository - (DEBUG) CatalogDriver.writeObjectList()
    ***********************************************************************************

  • Field values are not erased when I change content types.

    On an SP2010 site I created 2 Site Columns  TextColumn1 and  TextColumn2 (both Single Line of text).
    I added Two Content Types ContentType1 and ContentType2 (both derived from Item).
    I created a list and enabled content types. I Added ContentType1 and ContentType2 to the list.
    I configured the devfault view to show TextColumn1 and  TextColumn2.
    I added an Item of ContentType1 and for TextColumn1  added the value 'c1'
    I edited the item and changed the content Type to ContentType2 and entered a value of c2 for TextColumn2.
    The default view still shows the value of 'c1' for TextColumn1 even though the item is of content type ContentType2 which does not have this field defined.
    How do I correct this?

    If I'm understanding your question correctly, this is expected behavior. The item still has both the content types applied to it. The columns are included in the view. So Any values in those columns for that item will be displayed.
    You could create views for each content type.
    You could also look into changing the default content type.
    Not sure if this helps because I'm not sure I understood the problem.

  • Lose navigation when I change content type

    Hi,
    when I change the content type of my JSF to "text/xls", I lose the navigation of the page.I can't go the the other page of my application through the link.
    Anyone know how to fix this?

    Never mind. I figured it out what was causing the split of each disc into a different audiobook: The title of each track had the separate disc numbers and that made it appear as if it was a different book. Once I changed the title of each track to reflect the book's title without the disc number, the different tracks all merged into one audiobook in the audiobook section of iTunes.

  • Change Content Type Hub URL -- AAM Configuration

    Hello, we initially setup our SHarepoint Web Application with Default Zone URL https://sharepoint2.contoso.com. We created a Content Type Hub and configured the URL https://sharepoint2.contoso.com/...... in the Managed Metadata Service Application.
    We now changed the URL for the Default Zone to http://sharepoint.contoso.com and the last thing to change now is the URL of the content type hub.
    My Question is what exactly will happen when i set the new HUBURI with powershell?
    We have published the content types from the hub with the old URL to many site collections and are using them for over 1.000.000 documents. I want to ensure that there will be no impact on the existing content types. Will there be any impact. Will they get
    unpublished?

    Hi UTTO,
    According to your description, my understanding is that you want to change the URL of publishing Content Type hub.
    In SharePoint, we should use only one certain zone to publish content type. If you change the URL to http://sharepoint.contoso.com in the Managed Metadata Service Application, you will not publish content
    type via https://sharepoint2.contoso.com , and maybe get an error like “No valid proxy can be found”. You should only publish content type via
    http://sharepoint.contoso.com .
    A similar posts for you to take a look at:
    http://social.technet.microsoft.com/Forums/en-US/56a58460-258f-4802-9997-acd7ff051a5d/publishing-content-type-with-hub-error-due-to-aam
    I hope this helps.
    Thanks,
    Wendy
    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]
    Wendy Li
    TechNet Community Support

  • Changing Content Type of a Message

    Dears,
    I would really appreciate if anyone could help me changing the "ContentType" header value to "text/plain".
    I am implementing a Routing Agent and inside i want to change the body format of a message to text.
    Thank you in advance,

    Hi,
    If you are using the SOAP receiver adapter, you can change the content type by these configuration parameters:
    Module Configuration Parameter         HTTP Header Entry                   Example
    XMBWS.XMLEncoding                        Content-Type charset               iso-8859-1
    XMBWS.TransferEncoding                 Content-Transfer-Encoding      base64
    without the need for an additional module in the chain.
    Hope this helps.
    Regards,
    S. Gokhan Topcu

  • Integrating OneNote with Sharepoint 2013 - Custom document template, Change Content type, Checkout settings

    My client is migrating to SharePoint 2013 and the team uses OneNote Task list to track the project checklist. While I am successful extending the document template to support OneNote, still have some mysteries to solve as listed below:
    I am exploring Sharepoint 2013 and have tried to explain my problem clearly. If the information provided below is not clear enoug, let me know.
    1. Client has defined custom content type for all the documents in a library. I noticed OneNote comes with a Content type as "Folder". Is it possible to edit / modify the OneNote metadata to accommodate the predefined content types?
    2. In a library, I would like to defined multiple OneNote templates - Meeting, Task List, etc. I followed this article to create OneNote template for a library. Is is possible to edit the template and have "Meeting template" as default?
    3. A library can have multiple document types - word, excel, presentation, OneNote. In order for OneNote sync to work, below settings are mandatory (correct me if wrong):
            a. Checkout required should be set to "No"
            b. No versioning should be set
    My client's governance rule states "Checkout" is mandatory. How can I have a library to support OneNote with Checkout option enabled.
    Thanks in advance!

    Hi TMUser,
    regarding your questions:
    1. One note is based on folder not content type, so by design it is different items. but i heard you can have a look up for this, you may try to change my onenote notebook folder content type so that it allows for additional metadata columns. this way, the
    onenone notebook can be handled just like other office documents. for more detail you may try from this example: http://www.sharepointcowbell.com/2013/01/onenote-and-metadata-in-sharepointpart.html
    2. for onenote products, you may ask at onenote forum for more detail, http://support.microsoft.com/ask-community/office/onenote-2013/,
    we can help for general discussion regarding this. you may take a look at this article, it mentioned about set template as default: http://blogs.msdn.com/b/onenotetips/archive/2008/05/21/templates-in-onenote.aspx
    3. for this question, you may check this kb, http://support.microsoft.com/kb/2675731/en-us, i
    think it is by design, because onenote and other office are different, onenote is use shared, if we put checked out, then it will be set the limitation to only exclusive user.
    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.

  • Changing content type of xml file to pdf

    Hello,
    I have an xml file (extension is *.xdp) which can locally be opened with Adobe Reader and displays as a regular pdf file. Adobe has a technology that allows xml to be merged with a pdf shell, and thus populating the pdf file with the values retrieved from the xml file.
    My issue is that I want this to be done on an application server level (jboss in particular). In a servlet, I stream the xml file for the contents to be printed out within a browser (IE). I specify the content type to be application/pdf, however, the data is not being displayed within Adobe Reader, but rather as a regular xml file.
    Any help is greatly appreciated. Here is the code below:
    response.setHeader("Pragma", "public");
    response.setHeader("Cache-Control", "max-age=30");
    response.setContentType("application/pdf");
    ServletOutputStream out = response.getOutputStream();
    byte[] fileBytes = readFile();
    out.write(fileBytes);

    Yes, the xml does contain a reference to the shell pdf. This works fine if I do so manually (open the xml file using Adobe Reader). However, through a browser, it seems that the forced content type is completely ignored:
    <?xml version="1.0"?>
    <?xfa generator="XFA2_0" APIVersion="1.4.4127.0"?>
    <xdp:xdp xmlns:xdp="http://ns.adobe.com/xdp/">
    <xfa:datasets xmlns="" xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
    <xfa:data>
    <DocRoot>
    <Cldemographics<Cldatecreated>7/21/05</Cldatecreated...
    </DocRoot>
    </xfa:data>
    </xfa:datasets>
    <pdf href="/opt/jboss-tomcat-server-build-4.0.0-2/.../pdfShell/Shell.pdf"
    xmlns="http://ns.adobe.com/xdp/pdf/"/>
    </xdp:xdp>

  • Changed content type (DDOCTYPE) is not visible in GUI

    Hi,
    I have strange problem. I made configuration import from other UCM machine (content types, metadata, security groups and so..). After import I checked it - I have my security groups there, I have my metadata there, but I DO NOT HAVE there my content type (in drop down box there are only couple of preinstalled content types - Acme xxx Department...). I have checked in the admin applets -> configuration manager and my added content type was there (among the 'Acme ....' preinstalled content types). I even deleted those 'Acme....' content types to be sure that only my one is there. But in the search gui there is still drop down box with 'Acme...' types and my own is missing there.
    Strange because I do not know why it shows content types which have been deleted and are not in database anymore. I checked the database and in the table DOCTYPES there is only my own content type.
    Can anybody give me som hint? I tried restarting servers, clearing browser's cache, but still without success.

    Hi. I tried it, but it did not help. :(
    It is strange. Before I had the error in log:
    Unable to rename '/appl/ucm_cluster/server/weblayout/resources/schema.work' to '/appl/ucm_cluster/server/weblayout/resources/schema' while publishing schema.
    When I looked into the 'schema' dir there was old doctypes in js file
    In 'shcema.work' which was supposed to be renamed to 'schema' there was my correct document type in js file.
    Now in /server/weblayout/resources/schema/views/doctypes/all.js file there is only my correct document type but i still have in gui the old wrong doctypes! :(

  • How do I change the content-type in http header when using JAX-WS?

    I need to change Content-Type in http Header. I am using JAX-WS to invoke web service call. Can someone tell me how to do it? Thanks a lot!

    LabVIEW does so many wonderful things, but the inability to perform what should be a simple task, such as upgrade a RT chassis within a LV Project, bewilders me. This is going to cost me hours, I just know it...
    Is there anything on the Idea Exchange for this?? A quick search shows nothing, so maybe I'll add an entry.
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

Maybe you are looking for