<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>response in the portlet</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=5248872" />
  <subtitle>response in the portlet</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=5248872</id>
  <updated>2026-04-06T15:26:39Z</updated>
  <dc:date>2026-04-06T15:26:39Z</dc:date>
  <entry>
    <title>response in the portlet</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5248871" />
    <author>
      <name>Ana Sir</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=5248871</id>
    <updated>2010-07-07T09:19:58Z</updated>
    <published>2010-07-07T09:19:58Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi!&lt;br&gt;&lt;br&gt;I finally managed to call an Alfresco webscript and show the response in a Liferay portlet, but not with the result I expected.&lt;br&gt;&lt;br&gt;Instead of the beautiful output of Alfresco, I get all the portlet in text.&lt;br&gt;&lt;br&gt;I tried to change the mime-type support in the portlet.xml and changed it to "aplication/xml" instead of "text/html", but now I can't drop the portlet!Even the icon of loading doesn't appear.Liferay apparently do nothing, and there is no errors or aditional info in the log&lt;br&gt;&lt;br&gt;This is the response I get:&lt;br&gt;&lt;pre&gt;&lt;code&gt;&amp;lt;!--?xml version="1.0" encoding="UTF-8"?--&amp;gt;
&amp;lt;feed xmlns="http://www.w3.org/2005/Atom" xmlns:app="http://www.w3.org/2007/app" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:alf="http://www.alfresco.org" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/"&amp;gt;
&amp;lt;author&amp;gt;&amp;lt;name&amp;gt;admin&amp;lt;/name&amp;gt;&amp;lt;/author&amp;gt;
&amp;lt;generator version="3.3.0 (2765)"&amp;gt;Alfresco (Community)&amp;lt;/generator&amp;gt;
&amp;lt;icon&amp;gt;http://localhost:8083/alfresco/images/logo/AlfrescoLogo16.ico&amp;lt;/icon&amp;gt;
&amp;lt;id&amp;gt;urn:uuid:checkedout&amp;lt;/id&amp;gt;
&amp;lt;link rel="service" href="http://localhost:8083/alfresco/service/cmis"&amp;gt;
&amp;lt;link rel="self" href="http://localhost:8083/alfresco/service/cmis/checkedout?alf_ticket=TICKET_4a43e961dfa7b3ae3d4e5ffceb3859f53cadc67f"&amp;gt;
&amp;lt;link rel="first" href="http://localhost:8083/alfresco/service/cmis/checkedout?alf_ticket=TICKET_4a43e961dfa7b3ae3d4e5ffceb3859f53cadc67f&amp;amp;amp;pageNo=1&amp;amp;amp;pageSize=-1&amp;amp;amp;guest=" type="application/atom+xml;type=feed"&amp;gt;
&amp;lt;link rel="last" href="http://localhost:8083/alfresco/service/cmis/checkedout?alf_ticket=TICKET_4a43e961dfa7b3ae3d4e5ffceb3859f53cadc67f&amp;amp;amp;pageNo=1&amp;amp;amp;pageSize=-1&amp;amp;amp;guest=" type="application/atom+xml;type=feed"&amp;gt;
&amp;lt;title&amp;gt;Checked out Documents&amp;lt;/title&amp;gt;
&amp;lt;updated&amp;gt;2010-07-06T13:18:26.048+02:00&amp;lt;/updated&amp;gt;
&amp;lt;entry&amp;gt;
&amp;lt;author&amp;gt;&amp;lt;name&amp;gt;admin&amp;lt;/name&amp;gt;&amp;lt;/author&amp;gt;
&amp;lt;content type="application/octet-stream" src="http://localhost:8083/alfresco/service/cmis/s/workspace:SpacesStore/i/e7738f65-93ab-46c6-8f0e-a79ae8f27260/content.0" /&amp;gt;&amp;lt;id&amp;gt;urn:uuid:e7738f65-93ab-46c6-8f0e-a79ae8f27260&amp;lt;/id&amp;gt;
&amp;lt;link rel="self" href="http://localhost:8083/alfresco/service/cmis/pwc/s/workspace:SpacesStore/i/e7738f65-93ab-46c6-8f0e-a79ae8f27260"&amp;gt;
&amp;lt;link rel="enclosure" href="http://localhost:8083/alfresco/service/cmis/s/workspace:SpacesStore/i/e7738f65-93ab-46c6-8f0e-a79ae8f27260/content.0" type="application/octet-stream"&amp;gt;
&amp;lt;link rel="edit" href="http://localhost:8083/alfresco/service/cmis/s/workspace:SpacesStore/i/e7738f65-93ab-46c6-8f0e-a79ae8f27260"&amp;gt;
&amp;lt;link rel="edit-media" href="http://localhost:8083/alfresco/service/cmis/s/workspace:SpacesStore/i/e7738f65-93ab-46c6-8f0e-a79ae8f27260/content.0" type="application/octet-stream"&amp;gt;
&amp;lt;link rel="http://docs.oasis-open.org/ns/cmis/link/200908/allowableactions" href="http://localhost:8083/alfresco/service/cmis/s/workspace:SpacesStore/i/e7738f65-93ab-46c6-8f0e-a79ae8f27260/allowableactions"&amp;gt;
&amp;lt;link rel="http://docs.oasis-open.org/ns/cmis/link/200908/relationships" href="http://localhost:8083/alfresco/service/cmis/s/workspace:SpacesStore/i/e7738f65-93ab-46c6-8f0e-a79ae8f27260/rels"&amp;gt;
&amp;lt;link rel="http://docs.oasis-open.org/ns/cmis/link/200908/policies" href="http://localhost:8083/alfresco/service/cmis/s/workspace:SpacesStore/i/e7738f65-93ab-46c6-8f0e-a79ae8f27260/pols"&amp;gt;
&amp;lt;link rel="http://docs.oasis-open.org/ns/cmis/link/200908/acl" href="http://localhost:8083/alfresco/service/cmis/s/workspace:SpacesStore/i/e7738f65-93ab-46c6-8f0e-a79ae8f27260/acl"&amp;gt;
&amp;lt;link rel="up" href="http://localhost:8083/alfresco/service/cmis/s/workspace:SpacesStore/i/e7738f65-93ab-46c6-8f0e-a79ae8f27260/parents" type="application/atom+xml;type=feed"&amp;gt;
&amp;lt;link rel="version-history" href="http://localhost:8083/alfresco/service/cmis/s/workspace:SpacesStore/i/e7738f65-93ab-46c6-8f0e-a79ae8f27260/versions"&amp;gt;
&amp;lt;link rel="via" href="http://localhost:8083/alfresco/service/cmis/s/workspace:SpacesStore/i/a264c365-da45-45a4-82bb-9c9189e0cab5"&amp;gt;
&amp;lt;link rel="describedby" href="http://localhost:8083/alfresco/service/cmis/type/cmis:document"&amp;gt;
&amp;lt;link rel="service" href="http://localhost:8083/alfresco/service/cmis"&amp;gt;
&amp;lt;published&amp;gt;2010-07-06T11:48:20.975+02:00&amp;lt;/published&amp;gt;
&amp;lt;summary&amp;gt;1 (Working Copy).0&amp;lt;/summary&amp;gt;
&amp;lt;title&amp;gt;1 (Working Copy).0&amp;lt;/title&amp;gt;
&amp;lt;updated&amp;gt;2010-07-06T11:48:21.537+02:00&amp;lt;/updated&amp;gt;
&amp;lt;app:edited&amp;gt;2010-07-06T11:48:21.537+02:00&amp;lt;/app:edited&amp;gt;
&amp;lt;alf:icon&amp;gt;http://localhost:8083/alfresco/images/filetypes/_default.gif&amp;lt;/alf:icon&amp;gt;
&amp;lt;cmisra:object&amp;gt;
&amp;lt;cmis:properties&amp;gt;
&amp;lt;cmis:propertyboolean propertydefinitionid="cmis:isLatestMajorVersion" displayname="Is Latest Major Version" queryname="cmis:isLatestMajorVersion"&amp;gt;&amp;lt;cmis:value&amp;gt;false&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyboolean&amp;gt;
&amp;lt;cmis:propertyid propertydefinitionid="cmis:contentStreamId" displayname="Content Stream Id" queryname="cmis:contentStreamId"&amp;gt;&amp;lt;cmis:value&amp;gt;store://2010/6/4/9/35/395186cf-601c-4680-b30f-fe2c10f03996.bin&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyid&amp;gt;
&amp;lt;cmis:propertyinteger propertydefinitionid="cmis:contentStreamLength" displayname="Content Stream Length" queryname="cmis:contentStreamLength"&amp;gt;&amp;lt;cmis:value&amp;gt;2555&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyinteger&amp;gt;
&amp;lt;cmis:propertystring propertydefinitionid="cmis:versionSeriesCheckedOutBy" displayname="Version Series Checked Out By" queryname="cmis:versionSeriesCheckedOutBy"&amp;gt;&amp;lt;cmis:value&amp;gt;admin&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertystring&amp;gt;
&amp;lt;cmis:propertyid propertydefinitionid="cmis:objectTypeId" displayname="Object Type Id" queryname="cmis:objectTypeId"&amp;gt;&amp;lt;cmis:value&amp;gt;cmis:document&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyid&amp;gt;
&amp;lt;cmis:propertyid propertydefinitionid="cmis:versionSeriesCheckedOutId" displayname="Version Series Checked Out Id" queryname="cmis:versionSeriesCheckedOutId"&amp;gt;&amp;lt;cmis:value&amp;gt;workspace://SpacesStore/e7738f65-93ab-46c6-8f0e-a79ae8f27260&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyid&amp;gt;
&amp;lt;cmis:propertystring propertydefinitionid="cmis:name" displayname="Name" queryname="cmis:name"&amp;gt;&amp;lt;cmis:value&amp;gt;1 (Working Copy).0&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertystring&amp;gt;
&amp;lt;cmis:propertystring propertydefinitionid="cmis:contentStreamMimeType" displayname="Content Stream MIME Type" queryname="cmis:contentStreamMimeType"&amp;gt;&amp;lt;cmis:value&amp;gt;application/octet-stream&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertystring&amp;gt;
&amp;lt;cmis:propertyid propertydefinitionid="cmis:versionSeriesId" displayname="Version series id" queryname="cmis:versionSeriesId"&amp;gt;&amp;lt;cmis:value&amp;gt;workspace://SpacesStore/a264c365-da45-45a4-82bb-9c9189e0cab5&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyid&amp;gt;
&amp;lt;cmis:propertydatetime propertydefinitionid="cmis:creationDate" displayname="Creation Date" queryname="cmis:creationDate"&amp;gt;&amp;lt;cmis:value&amp;gt;2010-07-06T11:48:20.975+02:00&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertydatetime&amp;gt;
&amp;lt;cmis:propertystring propertyDefinitionId="cmis:changeToken" displayName="Change token" queryName="cmis:changeToken" /&amp;gt;
&amp;lt;cmis:propertyboolean propertydefinitionid="cmis:isLatestVersion" displayname="Is Latest Version" queryname="cmis:isLatestVersion"&amp;gt;&amp;lt;cmis:value&amp;gt;true&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyboolean&amp;gt;
&amp;lt;cmis:propertystring propertydefinitionid="cmis:versionLabel" displayname="Version Label" queryname="cmis:versionLabel"&amp;gt;&amp;lt;cmis:value&amp;gt;pwc&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertystring&amp;gt;
&amp;lt;cmis:propertyboolean propertydefinitionid="cmis:isVersionSeriesCheckedOut" displayname="Is Version Series Checked Out" queryname="cmis:isVersionSeriesCheckedOut"&amp;gt;&amp;lt;cmis:value&amp;gt;true&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyboolean&amp;gt;
&amp;lt;cmis:propertystring propertydefinitionid="cmis:lastModifiedBy" displayname="Last Modified By" queryname="cmis:lastModifiedBy"&amp;gt;&amp;lt;cmis:value&amp;gt;admin&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertystring&amp;gt;
&amp;lt;cmis:propertystring propertydefinitionid="cmis:createdBy" displayname="Created by" queryname="cmis:createdBy"&amp;gt;&amp;lt;cmis:value&amp;gt;admin&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertystring&amp;gt;
&amp;lt;cmis:propertystring propertyDefinitionId="cmis:checkinComment" displayName="Checkin Comment" queryName="cmis:checkinComment" /&amp;gt;
&amp;lt;cmis:propertyid propertydefinitionid="cmis:objectId" displayname="Object Id" queryname="cmis:objectId"&amp;gt;&amp;lt;cmis:value&amp;gt;workspace://SpacesStore/e7738f65-93ab-46c6-8f0e-a79ae8f27260&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyid&amp;gt;
&amp;lt;cmis:propertyboolean propertydefinitionid="cmis:isImmutable" displayname="Is Immutable" queryname="cmis:isImmutable"&amp;gt;&amp;lt;cmis:value&amp;gt;false&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyboolean&amp;gt;
&amp;lt;cmis:propertyboolean propertydefinitionid="cmis:isMajorVersion" displayname="Is Major Version" queryname="cmis:isMajorVersion"&amp;gt;&amp;lt;cmis:value&amp;gt;false&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyboolean&amp;gt;
&amp;lt;cmis:propertyid propertydefinitionid="cmis:baseTypeId" displayname="Base Type Id" queryname="cmis:baseTypeId"&amp;gt;&amp;lt;cmis:value&amp;gt;cmis:document&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyid&amp;gt;
&amp;lt;cmis:propertystring propertydefinitionid="cmis:contentStreamFileName" displayname="Content Stream Filename" queryname="cmis:contentStreamFileName"&amp;gt;&amp;lt;cmis:value&amp;gt;1 (Working Copy).0&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertystring&amp;gt;
&amp;lt;cmis:propertydatetime propertydefinitionid="cmis:lastModificationDate" displayname="Last Modified Date" queryname="cmis:lastModificationDate"&amp;gt;&amp;lt;cmis:value&amp;gt;2010-07-06T11:48:21.537+02:00&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertydatetime&amp;gt;
&amp;lt;alf:aspects&amp;gt;
&amp;lt;alf:appliedaspects&amp;gt;P:cm:lockable&amp;lt;/alf:appliedaspects&amp;gt;
&amp;lt;alf:appliedaspects&amp;gt;P:cm:copiedfrom&amp;lt;/alf:appliedaspects&amp;gt;
&amp;lt;alf:appliedaspects&amp;gt;P:cm:workingcopy&amp;lt;/alf:appliedaspects&amp;gt;
&amp;lt;alf:properties&amp;gt;
&amp;lt;cmis:propertyboolean propertyDefinitionId="cm:lockIsDeep" displayName="Deep Lock" queryName="cm:lockIsDeep" /&amp;gt;
&amp;lt;cmis:propertystring propertyDefinitionId="cm:lockType" displayName="Lock Type" queryName="cm:lockType" /&amp;gt;
&amp;lt;cmis:propertydatetime propertyDefinitionId="cm:expiryDate" displayName="Expiry Date" queryName="cm:expiryDate" /&amp;gt;
&amp;lt;cmis:propertystring propertyDefinitionId="cm:lockOwner" displayName="Lock Owner" queryName="cm:lockOwner" /&amp;gt;
&amp;lt;cmis:propertyid propertydefinitionid="cm:source" displayname="Source" queryname="cm:source"&amp;gt;&amp;lt;cmis:value&amp;gt;Node Type: {http://www.alfresco.org/model/content/1.0}content Node Ref: workspace://SpacesStore/a264c365-da45-45a4-82bb-9c9189e0cab5&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertyid&amp;gt;
&amp;lt;cmis:propertystring propertydefinitionid="cm:workingCopyOwner" displayname="Working Copy Owner" queryname="cm:workingCopyOwner"&amp;gt;&amp;lt;cmis:value&amp;gt;admin&amp;lt;/cmis:value&amp;gt;&amp;lt;/cmis:propertystring&amp;gt;
&amp;lt;cmis:propertystring propertyDefinitionId="cm:workingCopyMode" displayName="cm:workingCopyMode" queryName="cm:workingCopyMode" /&amp;gt;
&amp;lt;/alf:properties&amp;gt;
&amp;lt;/alf:aspects&amp;gt;
&amp;lt;/cmis:properties&amp;gt;
&amp;lt;/cmisra:object&amp;gt;
&amp;lt;cmisra:pathsegment&amp;gt;1 (Working Copy).0&amp;lt;/cmisra:pathsegment&amp;gt;
&amp;lt;/entry&amp;gt;
&amp;lt;entry&amp;gt;
&amp;lt;author&amp;gt;&amp;lt;name&amp;gt;admin&amp;lt;/name&amp;gt;&amp;lt;/author&amp;gt;
&amp;lt;content type="application/pdf" src="http://localhost:8083/alfresco/service/cmis/s/workspace:SpacesStore/i/4d264649-e2fe-4518-a910-d6f3cbc1c8cf/content.pdf" /&amp;gt;&amp;lt;id&amp;gt;urn:u...&amp;lt;/id&amp;gt;&amp;lt;/entry&amp;gt;&amp;lt;/feed&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;I attach the view in Alfresco and the view of the portlet.&lt;br&gt;&lt;br&gt;What I have to do to give the portlet the same look as the webscript in Alfresco???&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Ana Sir</dc:creator>
    <dc:date>2010-07-07T09:19:58Z</dc:date>
  </entry>
</feed>
