Foren

How to get values for service context when using a wsdl

Manish Ahluwalia, geändert vor 14 Jahren.

How to get values for service context when using a wsdl

New Member Beitrag: 1 Beitrittsdatum: 21.09.09 Neueste Beiträge
Hi,

I'm trying to access a liferay installation services using the WSDL. As an example, I'd like to create a wiki page. For that, I'm using the wsdl available at http://myhost/tunnel-web/axis/Portlet_Wiki_WikiPageService?wsdl

I can get the wsdl, which I'm trying to access from soapUI. I can 'getPage' just fine (meaning I have proper access setup and everything is working). Now, I'm trying to do an addPage, which has the following request definition:
<wsdl:message name="addPageRequest">
<wsdl:part name="nodeId" type="xsd:long" />
<wsdl:part name="title" type="xsd:string" />
<wsdl:part name="content" type="xsd:string" />
<wsdl:part name="summary" type="xsd:string" />
<wsdl:part name="minorEdit" type="xsd:boolean" />
<wsdl:part name="serviceContext" type="tns1:ServiceContext" />
</wsdl:message>

My problem is the "serviceContext" which has the following definition:
<complexType name="ServiceContext">
- <sequence>
<element name="addCommunityPermissions" type="xsd:boolean" />
<element name="addGuestPermissions" type="xsd:boolean" />
<element name="attributes" nillable="true" type="apachesoap:Map" />
<element name="communityPermissions" nillable="true" type="impl:ArrayOf_xsd_string" />
<element name="companyId" type="xsd:long" />
<element name="expandoBridgeAttributes" nillable="true" type="apachesoap:Map" />
<element name="guestPermissions" nillable="true" type="impl:ArrayOf_xsd_string" />
<element name="languageId" nillable="true" type="soapenc:string" />
<element name="layoutURL" nillable="true" type="soapenc:string" />
<element name="pathMain" nillable="true" type="soapenc:string" />
<element name="plid" type="xsd:long" />
<element name="portalURL" nillable="true" type="soapenc:string" />
<element name="portletPreferencesIds" nillable="true" type="tns2emoticonortletPreferencesIds" />
<element name="scopeGroupId" type="xsd:long" />
<element name="tagsCategories" nillable="true" type="impl:ArrayOf_xsd_string" />
<element name="tagsEntries" nillable="true" type="impl:ArrayOf_xsd_string" />
<element name="userDisplayURL" nillable="true" type="soapenc:string" />
<element name="userId" type="xsd:long" />
</sequence>
</complexType>

What is "plid"? What is "scopeGroupId"? etc.

I'm looking for:
a) The meaning of these parameters? (e.g. What does "plid" stand for? Plugin Id?
b) Legitimate values? (e.g. what can languageId be?)
c) Where do I get the value I should use? (e.g. what is my companyId?)

Note: I cannot modify any code / configuration on the liferay server. Since the admin of the installation is my friend, I do have an admin account on the liferay box and a root access to the machine, but I can't (e.g.) modify the database / install my own code on the server -- but these are strictly read-only.

Any help will be appreciated. Thanks