Debugging UCM using IsSoap or IsJSon or IsJava parameter

Creating a wiki page using Document Explorer (DocLib service) of Oracle WebCenter Portal will set dDocFunction parameter of the file to 'wiki' in WebCenter Content (UCM).



Note: HTML files uploaded to UCM will not set dDocFunction whereas wiki file created using Oracle WebCenter Portal sets the dDocFunction attribute to 'wiki' even though extension for wiki file is .htm or .html. 



How do I know whether dDocFunction is set to 'wiki' for the wiki page that I created from WebCenter Portal ?


A:  We can double-check to ensure dDocFunction is set to 'wiki' for the wiki page (or file) by debugging UCM using additional query parameter passed to the UCM URL. They are :


(1) &IsSoap=1


Displays the local SOAP data and result set information of an Oracle WebCenter Content Server web page. 


When included in an Oracle WebCenter Content Server URL, we will get back SOAP messages of specific directory (dCollectionID).


Example: To list the contents of the specific directory (i.e. dCollectionID) in SOAP format.


http://<ucm_host>:<ucm_port>/cs/idcplg?IdcService=COLLECTION_DISPLAY&dCollectionID=<id of selected directory>&hasCollectionID=true&IsSoap=1


You'll see something like the following SOAP response which shows dDocFunction attribute is set to 'wiki' for the wiki file created using DocLib service of Oracle WebCenter Portal.


Example: http://ucm_host:ucm_port/cs/idcplg?IdcService=COLLECTION_DISPLAY&dCollectionID=404715989823138418&hasCollectionID=true&IsSoap=1 


----------------------



<idc:row dID="71738" dRevisionID="1" dWebExtension="htm" dRendition1="" dDocName="SLC04RNTUSORAC068331" dDocTitle="twikidoc" dDocAuthor="weblogic"dDocType="Application" dSecurityGroup="PersonalSpaces" dRevLabel="1" dDocAccount="PEWebCenter/39ddece8-b5fa-4574-b7cf-b75d2bd30a76" dCreateDate="3/10/14 9:42 PM" dReleaseDate="" dInDate="3/10/14 9:42 PM" dOutDate="" dIsCheckedOut="0" dCheckoutUser="" dStatus="GENWWW" dReleaseState="N" dProcessingState="C"dIndexerState="" dPublishType="" dPublishState="" dOriginalName="twikidoc.htm" dFormat="text/html" dFileSize="147" dExtension="htm" dIsPrimary="1"dIsWebFormat="0" dDocID="119275" dRevClassID="68331">


<idc:field name="dDocCreatedDate">3/10/14 9:42 PM</idc:field>

<idc:field name="dDocCreator">weblogic</idc:field>

<idc:field name="dDocLastModifiedDate">3/10/14 9:42 PM</idc:field>

<idc:field name="dDocLastModifier">weblogic</idc:field>

<idc:field name="dDocOwner">weblogic</idc:field>

<idc:field name="dDocFunction">wiki</idc:field>

<idc:field name="xComments"/>

:

: <snip>

:

<idc:field name="isreadonly">0</idc:field>


</idc:row>


---------------------- 



(2) &IsJson=1


Displays the local JSON data and result set information of an Oracle WebCenter Content Server web page.


When included in an Oracle WebCenter Content Server URL, we will get back JSON data of specific directory (dCollectionID).


Example: To list the contents of the specific directory (i.e. dCollectionID) in JSON format


http://<ucm_host>:<ucm_port>/cs/idcplg?IdcService=COLLECTION_DISPLAY&dCollectionID=<id of selected directory>&hasCollectionID=true&IsJson=1


You'll see something like the following JSON data which shows dDocFunction attribute is set to 'wiki' for the wiki file created using DocLib service of Oracle WebCenter Portal. 


Example: http://ucm_host:ucm_port/cs/idcplg?IdcService=COLLECTION_DISPLAY&dCollectionID=404715989823138418&hasCollectionID=true&IsJson=1 


------------------------------------


CONTENTS": {
"currentRow": 0,
"fields": [
{ "name": "dID" },
:
:<snip>
:
{ "name": "dDocID" },
{ "name": "dRevClassID" },
{ "name": "dDocFunction" },
{ "name": "dWebFilename" },
:
:<snip>
:

{ "name": "isreadonly" } 

], 

[
"71738",
:
:<snip>
:
"119275",
"68331",
"wiki",
"",
:
:<snip>
:
"0"


------------------------------------ 


 (3) &IsJava=1


Displays the local data and result set information of an Oracle WebCenter Content Server web page.


When included in an Oracle WebCenter Content Server URL, we will get back local data of specific directory (dCollectionID).


Example: To list the contents of the specific directory (i.e. dCollectionID) or  to get all of the local data and result set information that comes back from the idc_service.


http://<ucm_host>:<ucm_port>/cs/idcplg?IdcService=COLLECTION_DISPLAY&dCollectionID=<id of selected directory>&hasCollectionID=true&IsJava=1



You'll see something like the following data which shows dDocFunction attribute is set to 'wiki' for the wiki file created using DocLib service of Oracle WebCenter Portal. 


Example: http://ucm_host:ucm_port/cs/idcplg?IdcService=COLLECTION_DISPLAY&dCollectionID=404715989823138418&hasCollectionID=true&IsJava=1


-------------------------------------


@ResultSet CONTENTS
86
dID 3 38
:
:<snip>
:
dDocID 3 38
dRevClassID 3 38
dDocFunction 6 50
dWebFilename

:
:<snip>
:

isreadonly


:
:<snip>

SLC04RNTUSORAC068331
twikidoc
:
:<snip>
:
twikidoc.htm
text/html
147
htm
1
0
119275
68331 

wiki


 -------------------------------------- 



From the above observations, it is very clear that dDocFunction attribute is set to 'wiki' for wiki pages created from Oracle WebCenter Portal. So debugging UCM using IsSoap or IsJSon or IsJava parameter is really helpful.


Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

I'm a Senior Member of Technical Staff @Oracle working on Oracle WebCenter Portal Product, Sustaining Engineering Team. Few words that describe me are : Webmaster, SEO, Wordpress Fan, Foodie, Traveller, iBangalorean, An Indian :-) Follow me @nandakishorkn [Twitter] Get connected via fb.com/nandakishorkn [Facebook]

Search

Archives
« July 2015
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
 
       
Today