Highlighted
Absent Member.
Absent Member.
1698 views

Using configureEventsRequest

I am having some difficulty getting the Groupwise SOAP configureEventsRequest method to work. I have tried to copy the examples from the SDK but they do not seem to work.
Here is my SOAP request I am currently testing this by using the Postman plugin for Google Chrome.

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns2="http://schemas.novell.com/2005/01/GroupWise/methods"
xmlns:ns3="http://schemas.novell.com/2005/01/GroupWise/events">
<soap:Header soap:encodingStyle="">
<session>Pz6mcw4K0Hd9h4h5</session>
</soap:Header>
<soap:Body>
<ns3:configureEventsRequest>
<ns3:events enabled = "1">
<ns3:key>testkey44</ns3:key>
<ns3:persistence>2</ns3:persistence>
<ns3:ipaddress>192.168.120.2</ns3:ipaddress>
<ns3:port>8080</ns3:port>
<http>1</http>
<ns3:event>
<ns3:event>FolderItemAdd</ns3:event>
<ns3:type>Mail</ns3:type>
</ns3:event>
<ns3:containers>
<ns3:container>7.Domain_Name.PO.100.0.1.0.1@16</ns3:container>
</ns3:containers>
</ns3:events>
</ns3:configureEventsRequest>
</soap:Body>
</soap:Envelope>

Some code examples include an Enabled tag set to 1. I have tried this as well (including all combinations of enabled = "1", "true", events enabled = "1", "true"
<ns3:enabled>1</ns3:enabled>

The Groupwise response seems to indicate that everything is OK. I receive a 200 OK HTTP response as well as a GW status code of 0.
Here is the response:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header soap:encodingStyle=""> </soap:Header>
<soap:Body>
<gwe:configureEventsResponse xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types" xmlns:gwe="http://schemas.novell.com/2005/01/GroupWise/events">
<gwe:status>
<gwt:code>0</gwt:code>
</gwe:status>
</gwe:configureEventsResponse>
</soap:Body>
</soap:Envelope>

However, when I run a getEventConfigurationRequest request, nothing seems to be enabled. Here is the getEventConfigurationRequest:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns2="http://schemas.novell.com/2005/01/GroupWise/methods"
xmlns:ns3="http://schemas.novell.com/2005/01/GroupWise/events">
<soap:Header soap:encodingStyle="">
<session>Pz6mcw4K0Hd9h4h5</session>
</soap:Header>
<soap:Body>
<ns3:getEventConfigurationRequest>
<ns3:key>testkey44</ns3:key>
</ns3:getEventConfigurationRequest>
</soap:Body>
</soap:Envelope>

And the GW 2014 response:
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header soap:encodingStyle=""> </soap:Header>
<soap:Body>
<gwe:getEventConfigurationResponse xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types" xmlns:gwe="http://schemas.novell.com/2005/01/GroupWise/events">
<gwe:events>
<gwe:event enabled="0" ignoreOldTasks="0">
<gwe:key>testkey44</gwe:key>
<gwe:persistence>2</gwe:persistence>
<gwe:definition>
<gwe:events/>
</gwe:definition>
</gwe:event>
</gwe:events>
<gwe:status>
<gwt:code>0</gwt:code>
</gwe:status>
</gwe:getEventConfigurationResponse>
</soap:Body>
</soap:Envelope>

The response seems to indicate that I have not enabled any events. However, from the documentation, I believe that I have. At least according to the GW Events SDK.

Thank you for any help that you can provide.
Dennis
Labels (1)
Tags (3)
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

You seem to have an incorrect structure.

Here is a simple test that I did:
<?xml version="1.0" encoding="UTF-8"?><S:Envelope
xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header>
<session
xmlns="http://schemas.novell.com/2005/01/GroupWise/types">oFLosXaOokFK8HHm2C
315001-0921-0000-9D9B-E2B9C8D893E3</session>
</S:Header>
<S:Body>
<ns2:configureEventsRequest
xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns:ns2="http://schemas.novell.com/2005/01/GroupWise/events"
xmlns:ns3="http://schemas.novell.com/2005/01/GroupWise/methods">
<ns2:events enabled="true" ignoreCustomFields="true"
ignoreOldTasks="true">
<ns2:key>test</ns2:key>
<ns2:http>false</ns2:http>
<ns2:definition>
<ns2:events>
<ns2:event>FolderItemAdd</ns2:event>
<ns2:event>ItemAccept</ns2:event>
<ns2:event>ItemArchive</ns2:event>
<ns2:event>ItemComplete</ns2:event>
<ns2:event>ItemDecline</ns2:event>
<ns2:event>ItemDelete</ns2:event>
<ns2:event>ItemMarkPrivate</ns2:event>
<ns2:event>ItemMarkRead</ns2:event>
<ns2:event>ItemMarkUnprivate</ns2:event>
<ns2:event>ItemMarkUnread</ns2:event>
<ns2:event>ItemModify</ns2:event>
<ns2:event>ItemPurge</ns2:event>
<ns2:event>ItemUnaccept</ns2:event>
<ns2:event>ItemUnarchive</ns2:event>
<ns2:event>ItemUncomplete</ns2:event>
<ns2:event>ItemUndelete</ns2:event>
<ns2:event>ItemForward</ns2:event>
<ns2:event>ItemReply</ns2:event>
</ns2:events>
</ns2:definition>
</ns2:events>
</ns2:configureEventsRequest>
</S:Body>
</S:Envelope>

2017-05-10 20:35:05 getEventConfigurationResponse [TRACE] <?xml
version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<gwe:getEventConfigurationResponse
xmlns:gwe="http://schemas.novell.com/2005/01/GroupWise/events"
xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types">
<gwe:events>
<gwe:event enabled="1" ignoreCustomFields="1" ignoreOldTasks="1">
<gwe:key>test</gwe:key>
<gwe:definition>
<gwe:events>
<gwe:event>ItemAccept</gwe:event>
<gwe:event>ItemArchive</gwe:event>
<gwe:event>ItemComplete</gwe:event>
<gwe:event>ItemDecline</gwe:event>
<gwe:event>ItemDelete</gwe:event>
<gwe:event>ItemMarkPrivate</gwe:event>
<gwe:event>ItemModify</gwe:event>
<gwe:event>ItemPurge</gwe:event>
<gwe:event>ItemMarkRead</gwe:event>
<gwe:event>ItemUnarchive</gwe:event>
<gwe:event>ItemUndelete</gwe:event>
<gwe:event>ItemMarkUnread</gwe:event>
<gwe:event>FolderItemAdd</gwe:event>
<gwe:event>ItemMarkUnprivate</gwe:event>
<gwe:event>ItemUnaccept</gwe:event>
<gwe:event>ItemUncomplete</gwe:event>
<gwe:event>ItemForward</gwe:event>
<gwe:event>ItemReply</gwe:event>
</gwe:events>
</gwe:definition>
</gwe:event>
</gwe:events>
<gwe:status>
<gwt:code>0</gwt:code>
</gwe:status>
</gwe:getEventConfigurationResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Let me know if you still have problems.
Preston


0 Likes
Highlighted
Absent Member.
Absent Member.

That is perfect. Thank you very much!
For anyone who may run into this, here is my corrected SOAP request:

<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ns2="http://schemas.novell.com/2005/01/GroupWise/methods"
xmlns:ns3="http://schemas.novell.com/2005/01/GroupWise/events">
<soap:Header soap:encodingStyle="">
<session>nRVlFG0M4eWB9Qmx</session>
</soap:Header>
<soap:Body>
<ns3:configureEventsRequest>
<ns3:events enabled="true" ignoreCustomFields="true" ignoreOldTasks="true">
<ns3:key>testkey44</ns3:key>
<ns3:persistence>2</ns3:persistence>
<ns3:ipaddress>192.168.120.1</ns3:ipaddress>
<ns3:port>8080</ns3:port>
<ns3:http>1</ns3:http>
<ns3:definition>
<ns3:events>
<ns3:event>FolderItemAdd</ns3:event>
</ns3:events>
</ns3:definition>
</ns3:events>
</ns3:configureEventsRequest>
</soap:Body>
</soap:Envelope>

I'll have to add my containers and types back. However, this gives me the expected response
            <gwe:events>
<gwe:event enabled="1" ignoreOldTasks="1">
<gwe:key>testkey44</gwe:key>
<gwe:persistence>2</gwe:persistence>
<gwe:definition>
<gwe:events>
<gwe:event>FolderItemAdd</gwe:event>
</gwe:events>
</gwe:definition>
</gwe:event>


Thanks again for your help with this.
Dennis
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.