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="">schemas.xmlsoap.org/.../"
xmlns:ns1="
">schemas.novell.com/.../types"
xmlns:xsi="">www.w3.org/.../XMLSchema-instance"
xmlns:ns2="">schemas.novell.com/.../methods"
xmlns:ns3="">schemas.novell.com/.../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="">www.w3.org/.../XMLSchema-instance" xmlns:soap="">schemas.xmlsoap.org/.../">
<soap:Header soap:encodingStyle="">&#xA; &#xA; </soap:Header>&#xA;
<soap:Body>&#xA;
<gwe:configureEventsResponse xmlns:gwt="">schemas.novell.com/.../types" xmlns:gwe="">schemas.novell.com/.../events">
<gwe:status>
<gwt:code>0</gwt:code>
</gwe:status>
</gwe:configureEventsResponse>&#xA;
</soap:Body>&#xA;
</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="">schemas.xmlsoap.org/.../"
xmlns:ns1="
">schemas.novell.com/.../types"
xmlns:xsi="">www.w3.org/.../XMLSchema-instance"
xmlns:ns2="">schemas.novell.com/.../methods"
xmlns:ns3="">schemas.novell.com/.../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="">www.w3.org/.../XMLSchema-instance" xmlns:soap="">schemas.xmlsoap.org/.../">
<soap:Header soap:encodingStyle="">&#xA; &#xA; </soap:Header>&#xA;
<soap:Body>&#xA;
<gwe:getEventConfigurationResponse xmlns:gwt="">schemas.novell.com/.../types" xmlns:gwe="">schemas.novell.com/.../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>&#xA;
</soap:Body>&#xA;
</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

Tags:

  • 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="">schemas.xmlsoap.org/.../"
    xmlns:SOAP-ENV="
    ">schemas.xmlsoap.org/.../">
    <S:Header>
    <session
    xmlns="">schemas.novell.com/.../types">oFLosXaOokFK8HHm2C
    315001-0921-0000-9D9B-E2B9C8D893E3</session>
    </S:Header>
    <S:Body>
    <ns2:configureEventsRequest
    xmlns="">schemas.novell.com/.../types"
    xmlns:ns2="">schemas.novell.com/.../events"
    xmlns:ns3="">schemas.novell.com/.../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="">schemas.xmlsoap.org/.../"
    xmlns:S="
    ">schemas.xmlsoap.org/.../">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
    <gwe:getEventConfigurationResponse
    xmlns:gwe="">schemas.novell.com/.../events"
    xmlns:gwt="">schemas.novell.com/.../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


  • 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="">schemas.xmlsoap.org/.../"
    xmlns:ns1="
    ">schemas.novell.com/.../types"
    xmlns:xsi="">www.w3.org/.../XMLSchema-instance"
    xmlns:ns2="">schemas.novell.com/.../methods"
    xmlns:ns3="">schemas.novell.com/.../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