Csom javascript get Document Libraries with particular Content Type

I need to filter result to particular content types fo document library. I cannot seem to retrieve the content type of library. How is this <g class="gr_ gr_29 gr-alert gr_gramm Punctuation multiReplace" data-gr-id="29" id="29">possible.</g>
When I try with  oList.get_contentTypes() <g class="gr_ gr_28 gr-alert gr_spell ContextualSpelling only-del replaceWithoutSep" data-gr-id="28" id="28">object object</g> is being returned.
function retrieveAllListProperties() {
    var clientContext = new SP.ClientContext();
    var oWebsite = clientContext.get_web();
    this.collList = oWebsite.get_lists();
    clientContext.load(collList);
    clientContext.executeQueryAsync(
        Function.createDelegate(this, this.onQuerySucceeded), 
        Function.createDelegate(this, this.onQueryFailed)
function onQuerySucceeded() {
    var listInfo = '';
    var listEnumerator = collList.getEnumerator();
    while (listEnumerator.moveNext()) {
        var oList = listEnumerator.get_current();
        listInfo += 'Title: ' + oList.get_title()  + oList.get_contentTypes() + '\n';
    alert(listInfo);
}

oList.get_contentTypes() returns a collection and hence it needs to be iterated to get information about each content type.
UPDATE
var clientContext = new SP.ClientContext.get_current(); 
var oWebsite = clientContext.get_web();
var collList = oWebsite.get_lists();
clientContext.load(collList, 'Include(ContentTypes, Title)');
clientContext.executeQueryAsync(onQuerySucceeded, onQueryFailed);
function onQuerySucceeded() {
    var listInfo = '';
    var listEnumerator = collList.getEnumerator();
    while (listEnumerator.moveNext()) {
        var oList = listEnumerator.get_current();
        listInfo += 'Title: ' + oList.get_title()  + '\n';
        var ct_enumerator = oList.get_contentTypes().getEnumerator();
        while (ct_enumerator.moveNext()) {
        var ct = ct_enumerator.get_current();
        var contentTypeName = ct.get_name();
        alert(contentTypeName);
    alert(listInfo);
function onQueryFailed(sender, args)
{     alert('error'); }

Similar Messages

  • No lists or libraries with InfoPath content types can be found.

    I published an InfoPath form to two libraries in the site, one was a document library and one to a form library. I am using the InfoPath Web Part in the same sight and when I open the toolpane, I get the following message:
    No lists or libraries with InfoPath content types can be found. Use Microsoft InfoPath
    to design a form template for InfoPath Forms Services and publish it to a SharePoint library or list.
    Can you help?

    Looks like it has been a while since this post.  Hope this helps someone still facing this problem.
    If you're publishing the InfoPath form as a Content Type:
    Make sure that the Library (Form Templates) where the form is being published to has Content Types enabled.
    Check that the Library where form is being saved upon submittal (if different from above, as it should be) has Content Types enabled.
    The newly published form Content Type added the Library where forms are submitted.
    If you're publishing the InfoPath form without a Content Type:
    Just make sure that the Library you're publishing to is a Forms Library.
    Enjoy!
    Thank you in advance!

  • Issue with New Document in a document library with multiple content types

    Hi,
    I have a created a custom list definition based on a document library. I added 3 content types in this list, one is a document set (lets call it DOCSET), the two others are content types inheriting from Document (DOCA and DOCB).
    I deployed the list definition with a site scoped feature and the list instance with a web scoped feature. After activating the two features, the list is created and the content types are present in the list.
    When I click in the New Document button and choose either the DOCA or DOCB content type, a Word document opens and the DOCA content type is always associated to this Word document.
    With SharePoint Manager 2013 I saw that the template.dotx document was not in the Forms/DOCA or Forms/DOCB folder.
    So I decided to remove all the content types from the list definition and add them by code with the ListAdded event receiver. I used list.ContentTypes.Add to add the content types to the list.
    With this method the templates are correctly copied from the template.dotx in the RootFolder/Forms folder of my list. These templates have the rights content type id, but the New Document button still does not work properly.
    So I looked at the Content Types inside my library and saw that the DocumentTemplateUrl linked to the RootFolder/Forms/template.dotx and not the RootFolder/Forms/DOCA/template.dotx or RootFolder/Forms/DOCB/template.dotx.
    I debugged my code to look closer and see that right after the list.ContentTypes.Add, the DocumentTemplateUrl is correclty set but when my EventReceiver finishes, the DocumentTemplateUrl get back to the RootFolder/Forms/template.dotx.
    Have you any idea why this is not working ?
    Regards

    Hi,
    Per my understanding, there is an issue about the DOCA and DOCB content types which inherits from Document Content Type in your custom list definition.
    By default, if there is a custom content type inherits the OOTB Document Content Type, it will also inherits the template.dotx file from the OOTB Document Content Type.
    The template URL of a custom content type which inherits the OOTB Document Content Type:
    If you want to specify different templates for different content types, the code demo below would be helpful:
    http://www.learningsharepoint.com/2010/07/14/programmatically-create-a-new-content-type-in-sharepoint-2010/
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Having templates appear when users click the "New Document" button in a document library with custom content types

    Hi all,
    I'm using SharePoint Online, but I'm seeing the same behavior in an on-prem 2013 instance as well. My situation is this:
    - I've created a document library
    - I've created a custom content type and attached a custom document template to it
    - I've assigned the custom content type to the document library, and disabled the default "document" option
    What I'm expecting to see is that when I browse to the document library and click "new document", that either a) a picklist appears allowing me to specify the document template I want (using the custom template I specified) or b) open the custom
    template itself. That doesn't happen - instead, when I click new document I'm prompted to upload a file, which seems to contradict the whole point of using a custom content type/custom document template combo.
    Am I missing something? The custom template isn't in the Forms library, which seems to be a problem if I wanted to use the custom document template instead of the default.
    Ideally I'd like a menu like the one shown here:
    http://social.msdn.microsoft.com/Forums/en-US/59ce3bd8-bf7f-4872-ae76-60d8c81dfc32/display-content-types-on-new-document-button-in-document-libraries?forum=sharepointgeneral, except with me being able to control the list of items that is shown.
    Any ideas? Thanks!

    Hi Brain,
    What you have done is by design behavior.
    If you want to show the Office document templates list (e.g. below image from your above referenced link) to select when click "+new document" link, this will need to install Office Web App 2013 which provides this feature,
    you can new document and see it is using WopiFrame.aspx page, please see more from below article about how to configure OWA 2013 for SharePoint 2013 on-premise.
    http://technet.microsoft.com/en-us/library/ff431687(v=office.15).aspx
    Thanks,
    Daniel Yang
    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] 
    Daniel Yang
    TechNet Community Support

  • Users are unable to synchronize document libraries with OneDrive for Business

    Hello,
    We are having an issue with our users attempting to synchronize document libraries with OneDrive for Business. When a user tried to synchronize the document library either via the "SYNC" button on the document library page using IE or by
    manually entering the document libraries path into the OneDrive for Business desktop app they receive the following error
    "We can't connect to the specified SharePoint site". The users have the Edit permission to both the site and the document library. I have performed the following actions in attempt to get the synchronization to work.
    1. Tested giving user the owner permission to the site and document library. same result.
    2. Performed a repair on the users Office 2013 installation.
    An interesting point to note is that I myself am able to synchronize the document libraries using both the "SYNC" button on the document library site and by entering the path manually in the desktop app. Difference between my account and the test
    accounts is that I'm a site collection administrator and farm administrator. Can anyone shed some light onto this issue?

    Hi Corey,
    According to your description, my understanding is that the users cannot sync document libraries with OneDrive for Business.
    I recommend to check the Permission Level to see if the Use Client Integration Features permission is selected.
    If not, check this permission in the corresponding permission level which is granted to the users.
    Please also check if the users have the right permission to sync the document library with OneDrive for Business.
    More reference:
    http://nheylen.wordpress.com/2014/05/15/sync-error-we-cant-connect-to-the-specified-sharepoint-site/
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Managed metadata columns in document information panel with multiple content types

    Hi everyone,
    The problem I have is that for custom content types not all managed metadata columns are displayed in Document Information Panel (DIP) for the document in the Office client application. 
    However, everything works fine with 1 specific content type. Even though the others using exactly the same site columns. The content types are deployed using visual studio to the content type hub, and after this the content types are correctly published to
    the site collections, there are no publish issues here. 
    When I create a document based on the second content type in the same library, all fields are showed in the document information panel, except the managed metadata columns.
    Detailed explanation:
    Library: procedures
    Content types:
    - simple procedure (with 4 managed metadata fields and some other text fields)
    - procedure with approval (with the same 4 managed metadata fields and some other text fields)
    Scenario 1: I add the 'simple procedure' content type to the procedures library as only content type. Everything works fine, and all fields show correctly in the document information panel in Word.
    Scenario 2: I add the 'procedure with approval' content type to the procedures library as only content type. Everything works fine, and all fields show correctly in the document information panel in Word.
    Scenario 3: I add the 'simple procedure' and 'procedure with approval' content types to the document library procedures (added simple procedure first). When I create a new document based on the 'simple procedure'
    content type, everything works fine and he shows all metadata fields. When I add a new document based on the 'procedure with approval' content type, the document information panel shows correctly, except all managed metadata fields. These are not visible at
    all. Though they worked perfectly in scenario 1 and 2.
    Is this a known issue or is there a workaround for this? 
    Thanks in advance! 
    Kind regards, Davy

    Yes!
    This problem is solved right now.
    My issue was that I'm using custom content types deployed by Visual Studio in the content type hub. To create a managed metadata site column in visual studio, you need to have first of all your managed metadata field, but also a hidden field accompagnied
    to make the actual mapping like the example below:
    <Field ID="{B654D984-187A-471B-8738-F08F3356CFDA}"
    Type="TaxonomyFieldType"
    DisplayName="Countries"
    ShowField="Term1033"
    EnforceUniqueValues="FALSE"
    Group="Demo"
    StaticName="Countries"
    Name="Countries">
    <Customization>
    <ArrayOfProperty>
    <Property>
    <Name>TextField</Name>;
    <Value xmlns:q6="http://www.w3.org/2001/XMLSchema" p4:type="q6:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">{67308AC2-9556-456B-BF9E-43E8F23EBEE6}</Value>
    </Property>
    </ArrayOfProperty>
    </Customization>
    </Field>
    <Field Type="Note"
    DisplayName="Countries_0"
    StaticName="CountriesTaxHTField0"
    Name="CountriesTaxHTField0"
    ID="{67308AC2-9556-456B-BF9E-43E8F23EBEE6}"
    ShowInViewForms="FALSE"
    Required="FALSE"
    Hidden="TRUE"
    CanToggleHidden="TRUE"
    Group="Demo"
    RowOrdinal="0"
    />
    </Elements>
    VERY important here is that when you create your content type using visual studio, you not only have to add the managed metadata site column in your xml (which let the content type work already perfectly) but also add the hidden field to your content type
    xml !! This way, SharePoint knows that when you have multiple content types with the same site columns in the same library, the second content type also need to get the hidden field from this site columns like in the example below!
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Parent ContentType: Document (0x0101) -->;
    <ContentType ID="0x010100571ebc0f478a49d5a775039347ee1535"
    Name="Document Location"
    Group="Demo"
    Description="A content type containing Managed Metadata Column."
    Inherits="TRUE"
    Version="0">
    <FieldRefs>
    <FieldRef ID="{B654D984-187A-471B-8738-F08F3356CFDA}" Name="Countries"/>
    <FieldRef ID="{67308AC2-9556-456B-BF9E-43E8F23EBEE6}" Name="CountriesTaxHTField0"/>
    <FieldRef ID="{f3b0adf9-c1a2-4b02-920d-943fba4b3611}" Name="TaxCatchAll"/>
    <FieldRef ID="{8f6b6dd8-9357-4019-8172-966fcd502ed2}" Name="TaxCatchAllLabel"/>
    </FieldRefs>
    </ContentType>
    </Elements>
    I'm very happy I found this solution, because in the whole project i'm implementing, this was used a lot!
    Special thanks to the blog of @cann0nf0dder (http://cann0nf0dder.wordpress.com/2013/04/01/creating-a-site-column-with-managed-metadata) which let me think about this! 
    This ticket is answered now! :-)
    Kind regards,
    Davy

  • What's wrong with this content type definition?

    Could someone tell me what's wrong with this content type definition? When I click "New Folder" in a custom list, it should bring two fields 1) Name 2) Custom Order. However in my case when I click new folder, I see 1) Member (which is totally
    weird) 2) custom order. Where is it getting that Member field from?
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Parent ContentType: Folder (0x0120) -->
    <ContentType ID="0x012000c0692689cafc4191b6283f72f2369cff"
    Name="Folder_OrderColumn"
    Group="Custom"
    Description="Folder with order column"
    Inherits="TRUE"
    Version="0">
    <FieldRefs>
    <FieldRef ID="{35788ED2-8569-48DC-B6DE-BA72A4F87B7A}" Name="Custom_x0020_Order" DisplayName="Custom Order" />
    </FieldRefs>
    </ContentType>
    </Elements>

    Hi,
    According to your post, my understanding is that you had an issue about the custom content type with custom column.
    I don’t think there is any issue in the content type definition, and it also worked well in my environment.
    Did you have the Member field in the project?
    I recommend you create a simple project only with one custom Order column and one custom Folder_OrderColumn, then you can add more fields one by one.
    By doing this, it will be easier to find out the root cause of this error.
    Thanks,
    Jason
    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]
    Jason Guo
    TechNet Community Support

  • How to make New Document and Upload Document to have same Content Type in Document Library in Sharepoint 2010

    Hi,
    How to make 'New Document' and 'Upload Document' to have same content type(Custom) in Document Library in Sharepoint2010.
    Note : I have created custom Content Type since I have custom columns along with upload column..
    Regards, Shreyas R S

    go to library settings 
    Change new button order and default content type
    set your custom content type to be #1
    when you upload new document it will automatically have your custom content type
    Hope that helps|Amr Fouad|MCTS,MCPD sharePoint 2010

  • Error when associating workflow with Task Content Type

    Using SharePoint Designer 2010, I have created a simple workflow that sends an email out when a tasks due date has past.  I created this as a Global Workflow and then tried to "Associated to Content Type", selecting "Task".  I am then taken
    to... COMPANY PORTAL--> Site Settings--> Site Content Types--> Task--> Add a Workflow. When I try to associate the new "Global" workflow and select OK I get the following error...
    Error
    Workflows may not be associated with content types whose base is on 'WorkflowTask'.
    I have looked up the error but find no real explination of what it means.  And I have associated global workflows with custom content types and never had this issue. 
    So what's going on?
    Thanks
    Steve
    Thanks in advance for your time. Steven

    Hi ,
    I understand that when you bind the workflow to Tasks content type, there is an error. I can reproduce this error. This is because we cannot add a reusable workflow to a workflow tasks content type. When you add the reusable workflow to the Tasks content
    type, you must have checked the ‘Add this workflow to all content types that inherit from this content type’. In this way, the workflow will be added to all the Tasks content type and workflowtasks content type. There will an error. After you close the error
    message, the workflow is added to the Tasks content type.
    The workaround is the check No to ‘Add this workflow to all content types that inherit from this content type’.
    Thanks,
    Entan Ming
    Entan Ming
    TechNet Community Support

  • How to find what are  the  support-teams map with particular componant type

    hi experts,
    i am new in solution manager.. My requirement is when creating the support message in crmd_order t-code i have to give the componant type in transaction data after that in fast entry screen i have to assign support team for that componant type .. here i have to give only valid support team which are map with particular componant type .. when save the support message here i have to check that support team is map with that particular componant type (i.e that support team is belong to that componant type ) .. thats what i have to do in abap development .. so how to find the what are all the support teams mapped with particular componant type .. whether it is stored in any table or ?.. Please give solutions ..
    Regards,
    Kumar..

    Hi Kumaresan-
    I'm not sure I fully understand your requirement but I will try to help out. If you are trying to determine / associate the relevant support team according to which component they are responsible for, this might help.
    The determination of the support team is maintained by configuring rule 13200137 in transaction PFAC_RESPO.
    Click on the Responsibilities Tab
    Create your responsibility based on your support team requirements
    Assign the appropriate Support Team, this data will be taken from the settings you have maintained when creating your org chart in ppoma_crm
    Highlight a responsibility and click Change
    In this table you will see an entry for SAP Component, this is where you identify which support team will be determined based on component

  • How can I get the selected action of content type by javascript from Firefox Options Applications?

    I works on my website, and it have to check the PDF file will be opened in which plugins
    So we have to implement some javascript to check the selected action of Content Type from Tool>Options>Application
    Do we have any javascript code to check this

    You can't check this with code that runs on the server or via JavaScript in the web page.
    Note that current Firefox version do not expose the built-in PDF Reader via the navigator.plugin array, so if you can't detect a plugin than maybe assume that the built-in PDF reader is used with Firefox version 19 and later.
    *Bug 840439 - Expose PDF.JS as a plugin navigator.plugins when enabled

  • Access denied error while uploading the document into document library which is associated with a content type

    hi,
     am trying to upload a document in a document library which is associated  with content types [ the content type contains 10 site columns and one of them is taxonomy field]. i added this content type in the document library.
    this document library is residing in a team site which is saved as a template and  based on this template i have created sub sites.
    and when i tried to upload a file to the doc lib, it throws me "access denied error".
    what may be went wrong .
    any help is  appreciated!

    Access denied indicates the user account uploading the file doesn't have access to the library, or sometimes it means there's already a document in the library with the same name that was never checked in. It's also possible that your template contains
    custom code that tries to do something that is not allowed.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • I have an interrupted download of music and now I have titles in I-tunes that I can't get rid of with no content

    I have an interrupted download of music that has left me with song titles in I-tunes with no content that are not deletable.  If I download again I end up with doubles on the list with only one having content.  How can I get rid of the blanks?

    Yeah - not really. Sorry - but you will need to get it fixed so you can back it up. You are going to want to Restore your new iPhone from that backup when you get it, so it will really be worth it.
    As soon as you get your new iPhone, set up automatic iCloud backups, or if you don't have Wifi, then it is really important to get into the habit of backing your device up weekly to iTunes.
    Best of luck!
    GB

  • Getting an Invalid or absent Content-Type exception with soap attachment

    Hi,
    I am trying to send an attachment using Saaj API. As soon as I use the attaachment object and attach it to message I get an exception . If I remove it the over all webservice communication works successfully. Even if I set the content type in the mimeheader explicetely it gives the same error. Any Suggestion how what could be wrong here or how can I fix it please ?
    ++com.inqmy.lib.jaxm.soap.SAPSoapException: javax.xml.soap.SOAPException: Invalid or absent Content-Type++
    ++     at com.inqmy.lib.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:169)++
    ++     at com.philips.cms.Main.main(Main.java:261)++
    ++Caused by: javax.xml.soap.SOAPException: Invalid or absent Content-Type++
    ++     at com.inqmy.lib.jaxm.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.java:69)++
    ++     at com.inqmy.lib.jaxm.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:40)++
    ++     at com.inqmy.lib.jaxm.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:160)++
    ++     ... 1 more     ++
    Below is what the program looks like .
    public static void main(String[] args) {
              String nameSpace = "ns";
              String nameSpaceURI = "http://schemas.hp.com/SM/7";
              String comNameSpace = "com";
              String comNameSpaceURI = "http://schemas.hp.com/SM/7/Common";
              String xmNameSpace = "xm";
              String xmNameSpaceURI = "http://www.w3.org/2005/05/xmlmime";
              String endPoint = "http://GBRLONTSYSVW106.code1.emi.philips.com:13088/SM/7/ws";
              try {
                        SOAPConnection soapConnection = SOAPConnectionFactory.newInstance().createConnection();
                        SOAPFactory soapFactory = SOAPFactory.newInstance();
                        MessageFactory messageFactory = MessageFactory.newInstance();
                        // Create a message from the message factory.
                        SOAPMessage soapMessage = messageFactory.createMessage();
                   // start: setting HTTP headers - optional, comment out if not needed
                        String username = "BLAH";
                        String password = "****";
                        String authorization = new sun.misc.BASE64Encoder().encode((username+":"+password).getBytes());
                        MimeHeaders hd = soapMessage.getMimeHeaders();
                        hd.removeAllHeaders();
                        hd.addHeader("Authorization", "Basic " + authorization);
                        hd.addHeader("SOAPAction", "Create");
                        // creat a SOAP part have populate the envelope
                        SOAPPart soapPart = soapMessage.getSOAPPart();
                        SOAPEnvelope envelope = soapPart.getEnvelope();
                        envelope.addNamespaceDeclaration(nameSpace, nameSpaceURI);
                        envelope.addNamespaceDeclaration(comNameSpace, comNameSpaceURI);
                        envelope.addNamespaceDeclaration(xmNameSpace, xmNameSpaceURI);
                        // create a SOAP body
                        SOAPBody body = envelope.getBody();
                        Name query = soapFactory.createName("query");
                        Name attachmentInfo = soapFactory.createName("attachmentInfo");
                        Name attachmentData = soapFactory.createName("attachmentData");
                        Name attachments = soapFactory.createName("attachments");
                        Name attachment = soapFactory.createName("attachment");
                        Name model = soapFactory.createName("model");
                        Name keys = soapFactory.createName("keys");
                        Name instance = soapFactory.createName("instance");
                        Name cmsRequestName = envelope.createName( "CreateCaseRequest", nameSpace, nameSpaceURI);
                        SOAPElement soapRequest = body.addBodyElement(cmsRequestName);
                        soapRequest.addAttribute(attachmentInfo, "true");
                        soapRequest.addAttribute(attachmentData, "true");
                        soapRequest.addAttribute(ignoreEmptyElements, "true");
                        SOAPElement soapModel = soapRequest.addChildElement("model",nameSpace, nameSpaceURI);
                        soapModel.addAttribute(query,"?");
                        SOAPElement soapKeys = soapModel.addChildElement("keys",nameSpace, nameSpaceURI);
                        soapKeys.addAttribute(query,"?");
                        SOAPElement soapinstance = soapModel.addChildElement("instance",nameSpace, nameSpaceURI);
                        soapinstance.addAttribute(query,"?");
                        soapinstance.addAttribute(uniquequery,"?");     
                        soapinstance.addAttribute(recordid,"?");
                        SOAPElement soapDescription = soapinstance.addChildElement("Description",nameSpace, nameSpaceURI);
                        SOAPElement soapDescriptionEle = soapDescription.addChildElement("Description",nameSpace, nameSpaceURI);
                        soapDescriptionEle.addTextNode("Test via Saaj");          
                        SOAPElement soapOwnerEle = soapinstance.addChildElement("Owner",nameSpace, nameSpaceURI);
                        soapOwnerEle.addTextNode("INTERFACE");
                        SOAPElement soapTechStatusEle = soapinstance.addChildElement("TechStatus",nameSpace, nameSpaceURI);
                        File file = new File("C:\\Bati\\Phillips\\test case.txt");
                        System.out.println(file.getAbsolutePath());
                        System.out.println(file.getName());
                        System.out.println(file.getPath());
                        FileDataSource ds = new FileDataSource(file);
                        DataHandler dataHandler = new DataHandler(ds);
                        AttachmentPart attachmentPart = soapMessage.createAttachmentPart(dataHandler);
                        attachmentPart.setContentType(dataHandler.getDataSource().getContentType());
                        attachmentPart.setContentId("test");
                        soapMessage.addAttachmentPart(attachmentPart);
                        // set the saves into the structure
                        soapMessage.saveChanges();
                        // output the message
                        System.out.println( "\n============= start request msg ==========\n" );
                        soapMessage.writeTo( System.out );
                        URLEndpoint urlEndpoint = new URLEndpoint(endPoint);
                        System.out.println( "\nSending message to URL: " + urlEndpoint.getURL() );
                        // now make that call over the SOAP connection
                        SOAPMessage reply = soapConnection.call( soapMessage, urlEndpoint );
                        // output the message reply
                        System.out.println( "\n============= start reply ==========\n" );
                        reply.writeTo( System.out );
                        System.out.println( "\n============= end reply ==========\n" );
                        // close down the connection
                        soapConnection.close();
              } catch (Exception ex) {
                   ex.printStackTrace();
    Thanks,
    Bati.

    I suppose I should also include the bit where the Servlet actually SENDs the resulting SOAPMessage
    SOAPMessage msg = ProcessXML.buildXML(outMessage);
    // try to send it
    try {
         response.setContentType("text/xml");
         msg.writeTo(response.getOutputStream());

  • Adobe Drive and Alfresco Enterprise Fails to Check-in With Custom Content Types

    Hello all,
    I've been struggling with some drive limitations over the last few weeks as we try to utilize the CMIS connector to Alfresco.  I am currently testing with Adobe Drive 3.2.0.41 and Alfresco 4.0.1 Enterprise but have tested this behavior with Drive 4.0.2.6 paired with Alfresco 4.1.1.3 and seen the same behavior:
    The issue I am seeing is that I am unable to Check in a new document into the repository when there is a rule set up to apply a custom content type from our model.  After entering my check-in comment and pressing OK, I get an unknown error from Bridge, InDesign, or Photoshop.  It works fine if I do not specialize our type with a rule (leaving the content as cm:content).  The error I recieve in Alfresco is:  org.alfresco.service.cmr.repository.CopyServiceException: The source and destination node must be the same type.
    I understand that this might be a limitation of Drive and Alfresco working together, but I just wanted to see if anyone had any experience with this issue or any potential workaround, since it is pretty limiting for alfresco to not have any non OOTB content types.
    Thanks, your help would be appreciated.
    Mike

    Adobe Drive CC still has this issue. I can dra-n-drop a .PSD into Alfresco 4.2 and it will work perfectly - unless I use Adobe Drive to edit and check-in the file.

Maybe you are looking for