Anonymous_User Absent Member.
Absent Member.
1832 views

Problem getting category

Using GW8.0, logging in with schema version 1.02.

I have an appointment object for an appointment that references a category (i.e. Appointment.categories.Length > 0).

I use the following code to get the category ID and retrieve the category:

String catId = appt.categories.category[0];
gwws.getItemRequest gireq = new GWTaskManager.gwws.getItemRequest();
gireq.id = catId;
gwws.getItemResponse giresp = gw.getItemRequest(gwSession, false, gireq);
gwws.Category cat = (gwws.Category)giresp.item;

The category ID is:

1.PriDom.po1.100.0.1.0.1@12

However, I get the following status/code when I try to get the item:

<status>
<gwt:code>53511</gwt:code>
<gwt:description>Record not found</gwt:description>
</status>


Is there another way to retrieve a category item (other than getItemRequest()) ?

The following is the XML request/response for this:

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<h:gwTrace xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types" xmlns="http://schemas.novell.com/2005/01/GroupWise/types">false</h:gwTrace>
<h:session xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types" xmlns="http://schemas.novell.com/2005/01/GroupWise/types">v7rOAxtRww18iwwa</h:session>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<getItemRequest xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<id>1.PriDom.po1.100.0.1.0.1@12</id>
</getItemRequest>
</s:Body>
</s:Envelope>

<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<gwTrace xmlns="http://schemas.novell.com/2005/01/GroupWise/types" xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types">false</gwTrace>
</s:Header>
<s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<getItemResponse xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types" xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<status>
<gwt:code>53511</gwt:code>
<gwt:description>Record not found</gwt:description>
</status>
</getItemResponse>
</s:Body>
</s:Envelope>


Thanks...

--sk.
Labels (1)
0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: Problem getting category

The only way to get category definitions is to call
getCategoryListRequest. For the most part you should
cache the category list and just reference the list.

Preston

>>> On Thursday, March 26, 2009 at 8:40 AM, Sean

Kirkby<skirkby@armordatasystems.com> wrote:
> Using GW8.0, logging in with schema version 1.02.
>
> I have an appointment object for an appointment that references a category


> (i.e. Appointment.categories.Length > 0).
>
> I use the following code to get the category ID and retrieve the

category:
>
> String catId = appt.categories.category[0];
> gwws.getItemRequest gireq = new GWTaskManager.gwws.getItemRequest();
> gireq.id = catId;
> gwws.getItemResponse giresp = gw.getItemRequest(gwSession, false,
> gireq);
> gwws.Category cat = (gwws.Category)giresp.item;
>
> The category ID is:
>
> 1.PriDom.po1.100.0.1.0.1@12
>
> However, I get the following status/code when I try to get the item:
>
> <status>
> <gwt:code>53511</gwt:code>
> <gwt:description>Record not found</gwt:description>
> </status>
>
>
> Is there another way to retrieve a category item (other than
> getItemRequest()) ?
>
> The following is the XML request/response for this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
> <s:Header>
> <h:gwTrace xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types"


>

xmlns="http://schemas.novell.com/2005/01/GroupWise/types">false</h:gwTrace>
> <h:session xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types"


>

xmlns="http://schemas.novell.com/2005/01/GroupWise/types">v7rOAxtRww18iwwa</
h:s
> ession>
> </s:Header>
> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <getItemRequest
>xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
> <id>1.PriDom.po1.100.0.1.0.1@12</id>
> </getItemRequest>
> </s:Body>
> </s:Envelope>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
> <s:Header>
> <gwTrace xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
>

xmlns:h="http://schemas.novell.com/2005/01/GroupWise/types">false</gwTrace>
> </s:Header>
> <s:Body xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <getItemResponse
> xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types"
> xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
> <status>
> <gwt:code>53511</gwt:code>
> <gwt:description>Record not found</gwt:description>
> </status>
> </getItemResponse>
> </s:Body>
> </s:Envelope>
>
>
> Thanks...
>
> --sk.

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.