Hi,

we want to create an IMAP-Folder via SOAP as it is possible through the
client using "Accounts -> Account Options -> Add" and checked "Upload
this account to the GroupWise Online Mailbox". The same should be
possible using the SOAP-API.


The following code should create an IMAP-Folder below the root folder:

<?xml version="1.0"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:createItemRequest
xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns:ns2="http://schemas.novell.com/2005/01/GroupWise/methods"
xmlns:ns3="http://schemas.novell.com/2005/01/GroupWise/events">
<ns2:item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="IMAPFolder">
<name>IMAP-folder</name>
<folderType>IMAP</folderType>
<account>
<flags>
...
</flags>
<inbound>
<host>
...
</host>
<flags/>
<userid>...</userid>
</inbound>
<outbound>
<host>
...
</host>
<flags/>
<userid>...</userid>
</outbound>
</account>
</ns2:item>
</ns2:createItemRequest>
</S:Body>
</S:Envelope>

<?xml version="1.0"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header/>
<S:Body>
<gwm:createItemResponse
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>4E1AD6F3.dom1.po1.100.16F7167.1.13A.1@27 </gwm:id>
<gwm:status>
<gwt:code>0</gwt:code>
</gwm:status>
</gwm:createItemResponse>
</S:Body>
</S:Envelope>

This creates a folder which has the IMAP4 icon and type. But no account
is created and therefore no mails can be retrieved.


We already tried to just create an IMAP account using:

<?xml version="1.0"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<ns2:createItemRequest
xmlns="http://schemas.novell.com/2005/01/GroupWise/types"
xmlns:ns2="http://schemas.novell.com/2005/01/GroupWise/methods"
xmlns:ns3="http://schemas.novell.com/2005/01/GroupWise/events">
<ns2:item xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="IMAP">
<name>IMAP-account</name>
<flags> ... </flags>
<inbound>
<host>
...
</host>
<flags/>
<userid>...</userid>
</inbound>
<outbound>
<host>
....
</host>
<flags/>
<userid>...</userid>
</outbound>
</ns2:item>
</ns2:createItemRequest>
</S:Body>
</S:Envelope>

<?xml version="1.0"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Header/>
<S:Body>
<gwm:createItemResponse
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>4E1AD3E5.dom1.po1.100.16F7167.1.139.1@1:7. dom1.po1.100.0.1.0.1@16</gwm:id>
<gwm:status>
<gwt:code>0</gwt:code>
</gwm:status>
</gwm:createItemResponse>
</S:Body>
</S:Envelope>

But only an empty Message in INBOX is created.
Are we missing something?

Thank you in advance,
Thilo