bsahini Absent Member.
Absent Member.
1075 views

How to get calendar entries (appointments) of all GW users

Hello,

I'm new to the Groupwise SOAP. I want to get all calendar entries (appointments) of all GW users.

I'm using SoapUI and requested a login:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://schemas.novell.com/2005/01/GroupWise/types" xmlns:met="http://schemas.novell.com/2005/01/GroupWise/methods">
<soapenv:Header>
<typ:gwTrace>?</typ:gwTrace>
</soapenv:Header>
<soapenv:Body>
<met:loginRequest>
<met:auth type="types:PlainText">
<typ:username>gwUserName</typ:username><!--user name is here replaced with the string gwUserName-->
<typ:password>gwPassword</typ:password><!--password is here replaced with the string gwPassword-->
</met:auth>
<met:language>en</met:language>
</met:loginRequest>
</soapenv:Body>
</soapenv:Envelope>


Response includes the session idetifier:

...
<gwm:session>IgTGkCxCChpUhhXN</gwm:session>
...


Using the given session ID I tried to get all calendar items, using the following request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://schemas.novell.com/2005/01/GroupWise/types" xmlns:met="http://schemas.novell.com/2005/01/GroupWise/methods">
<soapenv:Header>
<typ:gwTrace>?</typ:gwTrace>
<typ:session>IgTGkCxCChpUhhXN</typ:session>
</soapenv:Header>
<soapenv:Body>
<met:getItemsRequest>
<met:filter>
<typ:element>
<typ:op>calendar</typ:op>
</typ:element>
</met:filter>
</met:getItemsRequest>
</soapenv:Body>
</soapenv:Envelope>


In this way I'm getting only my own calendar entries (appointment items). Calendar items of other users are not responsed.

Regards
Labels (1)
0 Likes
4 Replies
Anonymous_User Absent Member.
Absent Member.

Re: How to get calendar entries (appointments) of all GW users

The access to the post office data is user based.
You have to login as a particular user to get that user's data.
We have the concept of a trusted application.
You register a trusted application.
Once you have a trusted application, you have a trusted application
name and key.
You pass the trusted application name and key to get access for
a user without having to pass in the user's password.

You call getUserListRequest to get the list of users on the post office.
You pass in the trusted app name and key as parameters.
You get back the list of users.
You would then iterate through the users, and do a trusted app login for
each user.
You pass a TrunstedApplication element as the auth element in the
loginRequest.
You pass in the userid of the user in the username element.
You pass in the trusted application name and key in the name and key
elements.

The SOAP documentation is outdated.
https://www.novell.com/developer/ndk/groupwise/groupwise_web_service_(soap).
html

You can create the trusted application in the GroupWise Administration
console.
https://www.novell.com/documentation/groupwise18/gw18_guide_admin/data/adm_s
ys_tools_trusted_applications.html


Preston


>>>


> Hello,
>
> I'm new to the Groupwise SOAP. I want to get all calendar entries
> (appointments) of all GW users.
>
> I'm using SoapUI and requested a login:
>
>
> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:typ="http://schemas.novell.com/2005/01/GroupWise/types"
> xmlns:met="http://schemas.novell.com/2005/01/GroupWise/methods">
> <soapenv:Header>
> <typ:gwTrace>?</typ:gwTrace>
> </soapenv:Header>
> <soapenv:Body>
> <met:loginRequest>
> <met:auth type="types:PlainText">
> <typ:username>gwUserName</typ:username><!‑‑user name is here

replaced with
> the string gwUserName‑‑>
> <typ:password>gwPassword</typ:password><!‑‑password is here replaced

with the
> string gwPassword‑‑>
> </met:auth>
> <met:language>en</met:language>
> </met:loginRequest>
> </soapenv:Body>
> </soapenv:Envelope>
>
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
>
> Response includes the session idetifier:
>
> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
> ...
> <gwm:session>IgTGkCxCChpUhhXN</gwm:session>
> ...
>
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
>
> Using the given session ID I tried to get all calendar items, using the
> following request:
>
> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:typ="http://schemas.novell.com/2005/01/GroupWise/types"
> xmlns:met="http://schemas.novell.com/2005/01/GroupWise/methods">
> <soapenv:Header>
> <typ:gwTrace>?</typ:gwTrace>
> <typ:session>IgTGkCxCChpUhhXN</typ:session>
> </soapenv:Header>
> <soapenv:Body>
> <met:getItemsRequest>
> <met:filter>
> <typ:element>
> <typ:op>calendar</typ:op>
> </typ:element>
> </met:filter>
> </met:getItemsRequest>
> </soapenv:Body>
> </soapenv:Envelope>
>
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
>
> In this way I'm getting only my own calendar entries (appointment
> items). Calendar items of other users are not responsed.
>
> Regards


0 Likes
bsahini Absent Member.
Absent Member.

Re: How to get calendar entries (appointments) of all GW use

Thank you.
0 Likes
bsahini Absent Member.
Absent Member.

Re: How to get calendar entries (appointments) of all GW use

How do you filter for

<gwt:recipType>Resource</gwt:recipType>

using getUserListRequest?
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: How to get calendar entries (appointments) of all GW users

You will have to filter the list on your side.
I believe you could get the list using the GW Admin Rest API.
(But I haven't looked into it or used it.)

Preston


>>>


> How do you filter for
>
> <gwt:recipType>Resource</gwt:recipType>
>
> using getUserListRequest?


0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.