I'm not able to recreate the problem.
I tried setting the length and offset
and not setting them (which sends 0).

A couple of things to try:
1) Can you try the development 7.0.3 build?
Windows / NetWare:
ftp://ftp.novell.com/outgoing/groupw...1.16_multi.zip
Linux: ftp://ftp.novell.com/outgoing/groupw...6_multi.tar.gz


2) Can you set up the test which exposes the problem, then send
me the wphost.db, ngwguard.db of the post office and the userxxx.db for the
user?
Of course you want to have the POA not running when you copy the database
files.

Thanks.
Preston

>>> On Tuesday, November 13, 2007 at 10:23 AM, Peter

Hofer<Peter.Hofer@mindbreeze.com> wrote:
> Hello everyone,
>
> I am trying to fetch mail attachments using getAttachmentRequest with the


> classes generated from GW7SP2MS.NETgroupwise.wsdl by Microsoft Visual
> Studio. The code fragment looks like this:
>
> getAttachmentRequest req = new getAttachmentRequest();
>
> // Obtained from AttachmentItemInfo of a Mail object
> req.id = id;
>
> // Retrieve all data at once
> req.length = -1;
> req.offset = 0;
>
> getAttachmentResponse resp = binding.getAttachmentRequestMessage(req);
>
> But even though resp.status.code is 0 (which indicates success), resp.part


> is always null. I analyzed the traffic to and from the server with
> Wireshark:
>
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> <soap:Header>
> <session
>

xmlns="http://schemas.novell.com/2005/01/GroupWise/types">2bbAlFQgf7hAIc6L</
se
> ssion>
> </soap:Header>
> <soap:Body>
> <getAttachmentRequest
> xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
>
>

<id>47343555.gwdomain.gwpostoffice.100.16C3263.1.1 A7.1@45:47343555.gwdomain.
gw
>

postoffice.100.16C3263.1.1A9.1@1:473...omain .gwpostoffice.100.16C3263.
1
> .16D.1@13</id>
> <offset>0</offset>
> <length>-1</length>
> </getAttachmentRequest>
> </soap:Body>
> </soap:Envelope>
>
> As far as I can tell, the session identifier is correct and all other
> fields have proper values. However, the server response contains nothing
> but the status code:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Header/>
> <soap:Body>
> <getAttachmentResponse
> xmlns:gwt="http://schemas.novell.com/2005/01/GroupWise/types"
> xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
> <status>
> <gwt:code>0</gwt:code>
> </status>
> </getAttachmentResponse>
> </soap:Body>
> </soap:Envelope>
>
> I have tried this with many different attachments in different mails, but


> MessagePart is never returned. I also attempted to use various other
> values for length and offset, also without success. Changing the name of
> getAttachmentRequestMessage to getAttachmentRequest in the WSDL and the
> .XSD schema files to match the method name in the documentation also had
> no effect.
>
> To see if this is a problem with the SOAP implementation of Microsoft.NET,


> I also tried clientsnetbeansjavaClient from the NDK. When clicking the
> "Attachments" button in the message window, a NullPointerException occurs


> in CMail.java:346:
>
> byte[] b = resp.getPart().get_value();
>
> Debugging this code section revealed that the Java Client also assumes the


> attachment was properly included in the response because of the status
> code, but getPart() later returns null.
>
> The Groupwise server used is an evaluation version of 7.0, running on
> Microsoft Windows XP with Service Pack 2. I recently upgraded from 7.0.1
> to 7.0.2 with gw702HP1aus.exe, but the problem remains. The Novell
> directory is on a Netware 6.5 server. Groupwise and Netware each run in a


> VMWare virtual machine, the SOAP access to the post office agent is
> performed as a post office user with plain text authentication (not a
> trusted application) from the computer the virtual machines run on. The
> Groupwise client application and Mulberry (an IMAP client) both have no
> problems with displaying or saving attachments.
>
> Please let me know what you think the problem is or how I can further
> investigate this issue.
>
> Thanks in advance,
> Peter Hofer