Quantcast
Channel: Micro Focus Forums
Viewing all articles
Browse latest Browse all 11924

Creating GW appointments through the API

$
0
0
Hey everyone,

I'm trying to create an appointment using the GroupWise API, and for some reason, the appointments don't show up anywhere for either user. The server returns a status code of 0 as expected however.

This is the SOAP document that I'm submitting, which looks like it's supposed to according to the documentation (page 221-222 of the GroupWise SDK: WebServices)

Code:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:gwe="http://schemas.novell.com/2005/01/GroupWise/events" xmlns:gwm="http://schemas.novell.com/2005/01/GroupWise/methods" xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header />
    <SOAP-ENV:Body>
        <sendItemRequest>
            <session>S0ztWsNg7sUi3K0Z</session>
            <item type="Appointment">
                <source>sent</source>
                <class>Public</class>
                <acceptLevel>Busy</acceptLevel>
                <subject>Test Appointment</subject>
                <distribution>
                    <recipients>
                        <recipient>
                            <displayName>Gerald Kolb</displayName>
                            <email>gkolb@mail.millikin.edu</email>
                            <uuid>882E7FB0-02A8-0000-B071-71DBED37C202</uuid>
                            <distType>TO</distType>
                        </recipient>
                        <recipient>
                            <displayName>Christopher Myers</displayName>
                            <email>cmyers@mail.millikin.edu</email>
                            <uuid>AF49C680-119F-0000-A409-01008000FB00</uuid>
                            <distType>TO</distType>
                        </recipient>
                    </recipients>
                    <sendoptions>
                        <requestReply />
                        <statusTracking>All</statusTracking>
                        <updateFrequentContacts>0</updateFrequentContacts>
                    </sendoptions>
                </distribution>
                <message>
                    <part length="20">VGhpcyBpcyBhIHRlc3Qu</part>
                </message>
                <options>
                    <priority>Standard</priority>
                </options>
                <startDate>20130630T160000Z</startDate>
                <endDate>20130630T163000Z</endDate>
                <alarm gwt:enabled="1">5</alarm>
                <place>place</place>
            </item>
        </sendItemRequest>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


This is what's returned by the API:

Code:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header />
    <SOAP-ENV:Body>
        <gwm:sendItemResponse xmlns:gwe="http://schemas.novell.com/2005/01/GroupWise/events" xmlns:gwm="http://schemas.novell.com/2005/01/GroupWise/methods" xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types">
            <gwm:id>51CDB3EF.mi.TEC01.100.163786A.1.3701E.1@76</gwm:id>
            <gwm:status>
                <gwt:code>0</gwt:code>
            </gwm:status>
        </gwm:sendItemResponse>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>


Thanks for any insights :)

Viewing all articles
Browse latest Browse all 11924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>