Big news! The community will be moving to a new platform April 21. Read more.
Big news! The community will be moving to a new platform April 21. Read more.
Absent Member.
Absent Member.
1881 views

ReadItemRequest() message body

I am trying to resolve a stubbed email but the message body does not appear.
The POA calls the ReadItemRequest() of the archive webservice.
To resolve the stubbed mail I tried the following:

Mail mail = new Mail();
mail.Subject = "Subject";
string text = "Message boy text.";
List<MessagePart> messages = new List<MessagePart>();
MessagePart mpart = new MessagePart();
mpart.Value = Encoding.UTF8.GetBytes(text);
mpart.contentType = "text/plain";
messages.Add(mpart);
mail.Message = messages.ToArray();

return new ReadItemResponse(mail, new Status(0, "", ""));


With larger message bodies (>16k) and the following ReadAttachmentRequest() I am abled to
restore the mail body. The Groupwise program version is 8.0.2.

Thanks in advance.
Labels (1)
0 Likes
6 Replies
Absent Member.
Absent Member.

I'm not sure if I follow what you are trying to do.
What does the SOAP trace look like?

Preston

>>> On Friday, September 10, 2010 at 1:36 AM,

hkunze<hkunze@no-mx.forums.novell.com> wrote:

> I am trying to resolve a stubbed email but the message body does not
> appear.
> The POA calls the ReadItemRequest() of the archive webservice.
> To resolve the stubbed mail I tried the following:
>
>
> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
> Mail mail = new Mail();
> mail.Subject = "Subject";
> string text = "Message boy text.";
> List<MessagePart> messages = new List<MessagePart>();
> MessagePart mpart = new MessagePart();
> mpart.Value = Encoding.UTF8.GetBytes(text);
> mpart.contentType = "text/plain";
> messages.Add(mpart);
> mail.Message = messages.ToArray();
>
> return new ReadItemResponse(mail, new Status(0, "", ""));
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
>
> With larger message bodies (>16k) and the following
> ReadAttachmentRequest() I am abled to
> restore the mail body. The Groupwise program version is 8.0.2.
>
> Thanks in advance.

0 Likes
Absent Member.
Absent Member.

Preston Stephenson;2021522 wrote:
I'm not sure if I follow what you are trying to do.
What does the SOAP trace look like?


Hello Preston,

the SOAP trace of the readItemRequest:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:arc="http://schemas.novell.com/2007/05/GroupWise/archive">
<soapenv:Header>
<arc:session>?</arc:session>
</soapenv:Header>
<soapenv:Body>
<arc:readItemRequest>
<arc:id>123456</arc:id>
<arc:archiveId>123</arc:archiveId>
<arc:originalId>456</arc:originalId>
<arc:view></arc:view>
</arc:readItemRequest>
</soapenv:Body>
</soapenv:Envelope>


The SOAP trace of the readItemResponse:


<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:Body>
<readItemResponse xmlns="http://schemas.novell.com/2007/05/GroupWise/archive">
<item xsi:type="Mail">
<id>123456</id>
<delivered>2010-09-16T13:25:52.125+02:00</delivered>
<subject>Testsubject</subject>
<message>
<part id="123456" length="16">VGVzdCB0ZXh0Lg==</part>
</message>
<originalId>456</originalId>
</item>
<status>
<code>0</code>
<description/>
<info/>
</status>
</readItemResponse>
</soap:Body>
</soap:Envelope>


So far all looks OK to me, but the message body does not appear in Groupwise client.
0 Likes
Absent Member.
Absent Member.

I passed the information on to the client team to see
if they can see any problem with the response.

I'll let you know if I find out anything.

Preston

>>> On Thursday, September 16, 2010 at 5:36 AM,

hkunze<hkunze@no-mx.forums.novell.com> wrote:

> Preston Stephenson;2021522 Wrote:
>> I'm not sure if I follow what you are trying to do.
>> What does the SOAP trace look like?
>>

>
> Hello Preston,
>
> the SOAP trace of the readItemRequest:
>
>
> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
> <soapenv:Envelope

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:arc="http://schemas.novell.com/2007/05/GroupWise/archive">
> <soapenv:Header>
> <arc:session>?</arc:session>
> </soapenv:Header>
> <soapenv:Body>
> <arc:readItemRequest>
> <arc:id>123456</arc:id>
> <arc:archiveId>123</arc:archiveId>
> <arc:originalId>456</arc:originalId>
> <arc:view></arc:view>
> </arc:readItemRequest>
> </soapenv:Body>
> </soapenv:Envelope>
>
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
>
> The SOAP trace of the readItemResponse:
>
>
> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
> <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:Body>
> <readItemResponse
>xmlns="http://schemas.novell.com/2007/05/GroupWise/archive">
> <item xsi:type="Mail">
> <id>123456</id>
> <delivered>2010‑09‑16T13:25:52.125+02:00</delivered>
> <subject>Testsubject</subject>
> <message>
> <part id="123456" length="16">VGVzdCB0ZXh0Lg==</part>
> </message>
> <originalId>456</originalId>
> </item>
> <status>
> <code>0</code>
> <description/>
> <info/>
> </status>
> </readItemResponse>
> </soap:Body>
> </soap:Envelope>
>
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
>
> So far all looks OK to me, but the message body does not appear in
> Groupwise client.

0 Likes
Absent Member.
Absent Member.

He hasn't seen a problem since the beginning.
How valid is the SOAP trace?
At least the originalId is not valid.
You might need to not supply the id of
the message body. The code may be trying
to read the message body if it has an id.

Preston

>>> On Thursday, September 16, 2010 at 7:31 AM, Preston

Stephenson<PStephenson@gw.novell.com> wrote:
> I passed the information on to the client team to see
> if they can see any problem with the response.
>
> I'll let you know if I find out anything.
>
> Preston
>
>>>> On Thursday, September 16, 2010 at 5:36 AM,

> hkunze<hkunze@no‑mx.forums.novell.com> wrote:
>
>> Preston Stephenson;2021522 Wrote:
>>> I'm not sure if I follow what you are trying to do.
>>> What does the SOAP trace look like?
>>>

>>
>> Hello Preston,
>>
>> the SOAP trace of the readItemRequest:
>>
>>
>> Code:
>> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>>
>> <soapenv:Envelope

> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:arc="http://schemas.novell.com/2007/05/GroupWise/archive">
>> <soapenv:Header>
>> <arc:session>?</arc:session>
>> </soapenv:Header>
>> <soapenv:Body>
>> <arc:readItemRequest>
>> <arc:id>123456</arc:id>
>> <arc:archiveId>123</arc:archiveId>
>> <arc:originalId>456</arc:originalId>
>> <arc:view></arc:view>
>> </arc:readItemRequest>
>> </soapenv:Body>
>> </soapenv:Envelope>
>>
>> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>>
>>
>> The SOAP trace of the readItemResponse:
>>
>>
>> Code:
>> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>>
>> <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:Body>
>> <readItemResponse
>>xmlns="http://schemas.novell.com/2007/05/GroupWise/archive">
>> <item xsi:type="Mail">
>> <id>123456</id>
>> <delivered>2010‑09‑16T13:25:52.125+02:00</delivered>
>> <subject>Testsubject</subject>
>> <message>
>> <part id="123456" length="16">VGVzdCB0ZXh0Lg==</part>
>> </message>
>> <originalId>456</originalId>
>> </item>
>> <status>
>> <code>0</code>
>> <description/>
>> <info/>
>> </status>
>> </readItemResponse>
>> </soap:Body>
>> </soap:Envelope>
>>
>> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>>
>>
>> So far all looks OK to me, but the message body does not appear in
>> Groupwise client.

0 Likes
Absent Member.
Absent Member.

Preston Stephenson;2023235 wrote:
He hasn't seen a problem since the beginning.
How valid is the SOAP trace?
At least the originalId is not valid.
You might need to not supply the id of
the message body. The code may be trying
to read the message body if it has an id.


I've made a mistake. The following SOAP trace should be correct.


<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:Body>
<readItemResponse xmlns="http://schemas.novell.com/2007/05/GroupWise/archive">
<item xsi:type="Mail">
<id>4C93018B.test_do.test_po.100.1346E78.1.20A.1@1</id>
<delivered>2010-09-17T09:25:59.734375+02:00</delivered>
<subject>Testsubject</subject>
<message>
<part length="16">VGVzdCB0ZXh0Lg==</part>
</message>
<originalId>4C93015A.test_do.test_po.100.1346E78.1.209.1@1</originalId>
</item>
<status>
<code>0</code>
<description/>
<info/>
</status>
</readItemResponse>
</soap:Body>
</soap:Envelope>
0 Likes
Absent Member.
Absent Member.

We don't see anything wrong with the request.
About the only way we can do anything is if you
can send a test app that exposes the problem or
a vmware image that we can debug the GWClient
on that image.

If you need, you can respond privately with the
details of the app or where we can get the image.

Preston

>>> On Friday, September 17, 2010 at 2:06 AM,

hkunze<hkunze@no-mx.forums.novell.com> wrote:

> Preston Stephenson;2023235 Wrote:
>> He hasn't seen a problem since the beginning.
>> How valid is the SOAP trace?
>> At least the originalId is not valid.
>> You might need to not supply the id of
>> the message body. The code may be trying
>> to read the message body if it has an id.
>>

>
> I've made a mistake. The following SOAP trace should be correct.
>
>
> Code:
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑
>
> <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:Body>
> <readItemResponse
>xmlns="http://schemas.novell.com/2007/05/GroupWise/archive">
> <item xsi:type="Mail">
> <id>4C93018B.test_do.test_po.100.1346E78.1.20A.1@1</id>
> <delivered>2010‑09‑17T09:25:59.734375+02:00</delivered>
> <subject>Testsubject</subject>
> <message>
> <part length="16">VGVzdCB0ZXh0Lg==</part>
> </message>
> <originalId>4C93015A.test_do.test_po.100.1346E78.1.209.1@1</originalId>
> </item>
> <status>
> <code>0</code>
> <description/>
> <info/>
> </status>
> </readItemResponse>
> </soap:Body>
> </soap:Envelope>
>
> ‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑‑

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.