lionfish Absent Member.
Absent Member.
2282 views

Is GW Web service 8 compatible backward ?

Does it support GW POA 7 ?
Labels (1)
0 Likes
10 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Is GW Web service 8 compatible backward ?

Yes. We control which version of the SOAP schema works
with the POA based on the version passed in the version
element of the loginRequest.

If you login with out a version element of version or
"1.0", we will only return a 7.0.x version of the schema.
If you pass "1.01", we will return a 7.0.2 version of
the schema. If you pass "1.02" we will pass back an
8.0.0 version of the schema. If you pass "1.03", we will
pass back an 8.0.1 version of the schema. That is of
course is the if POA knows about the schema. For example,
a 7.0.1 POA will only pass back schema version "1.0" no
matter what you put in the version element. An 8.0.0 POA
will not know about changes for "1.03". Is that clear
enough or did I answer the right question?

Preston


>>> On Friday, March 27, 2009 at 8:26 AM,

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

> Does it support GW POA 7 ?

0 Likes
lionfish Absent Member.
Absent Member.

Re: Is GW Web service 8 compatible backward ?

Hello, Preston

Thanks for your response, it is very helpful.
However, if I login with the version number, such as 1.02, I have to use the Version 8.0.0 schema to cast the request and the response. Is that correct?
Actually I have created different web references in my .net project to GW7 and GW8. In this case, I need to select the right version of schema dynamically based on the version number retrired from loginRequest ?


Preston Stephenson;1764883 wrote:
Yes. We control which version of the SOAP schema works
with the POA based on the version passed in the version
element of the loginRequest.

If you login with out a version element of version or
"1.0", we will only return a 7.0.x version of the schema.
If you pass "1.01", we will return a 7.0.2 version of
the schema. If you pass "1.02" we will pass back an
8.0.0 version of the schema. If you pass "1.03", we will
pass back an 8.0.1 version of the schema. That is of
course is the if POA knows about the schema. For example,
a 7.0.1 POA will only pass back schema version "1.0" no
matter what you put in the version element. An 8.0.0 POA
will not know about changes for "1.03". Is that clear
enough or did I answer the right question?

Preston


>>> On Friday, March 27, 2009 at 8:26 AM,

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

> Does it support GW POA 7 ?
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Is GW Web service 8 compatible backward ?


If one combines the methods from 7.0.X
and the types from 8.0.X
and uses a schema version such as 1.02,
I wonder if it would be possible to access a POA 7 and 8.

But this is of course just a wild guess... or is it ?

🙂


"lionfish" <lionfish@no-mx.forums.novell.com> schrieb im Newsbeitrag
news:lionfish.3pq260@no-mx.forums.novell.com...
>
> Hello, Preston
>
> Thanks for your response, it is very helpful.
> However, if I login with the version number, such as 1.02, I have to
> use the Version 8.0.0 schema to cast the request and the response. Is
> that correct?
> Actually I have created different web references in my .net project to
> GW7 and GW8. In this case, I need to select the right version of schema
> dynamically based on the version number retrired from loginRequest ?
>
>
> Preston Stephenson;1764883 Wrote:
>> Yes. We control which version of the SOAP schema works
>> with the POA based on the version passed in the version
>> element of the loginRequest.
>>
>> If you login with out a version element of version or
>> "1.0", we will only return a 7.0.x version of the schema.
>> If you pass "1.01", we will return a 7.0.2 version of
>> the schema. If you pass "1.02" we will pass back an
>> 8.0.0 version of the schema. If you pass "1.03", we will
>> pass back an 8.0.1 version of the schema. That is of
>> course is the if POA knows about the schema. For example,
>> a 7.0.1 POA will only pass back schema version "1.0" no
>> matter what you put in the version element. An 8.0.0 POA
>> will not know about changes for "1.03". Is that clear
>> enough or did I answer the right question?
>>
>> Preston
>>
>>
>> >>> On Friday, March 27, 2009 at 8:26 AM,

>> lionfish<lionfish@no-mx.forums.novell.com> wrote:
>>
>> > Does it support GW POA 7 ?

>
>
> --
> lionfish
> ------------------------------------------------------------------------
> lionfish's Profile: http://forums.novell.com/member.php?userid=48614
> View this thread: http://forums.novell.com/showthread.php?t=366776
>



0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Is GW Web service 8 compatible backward ?

There are many things that you can do on your side.
If you don't need the new elements in 8.0, you can
just use the 7.0.x schema. If you only need part of
the new elements, you can make a hybrid schema. On
the POA we do not have a validating schema compiler.
We will accept anything that you send. If we understand
the element or method, we will process it. We will return
the elements based on what version was passed in. For
example, you could have a 8.0.0 version of the schema
compiled, but if you pass in "1.0" for the version, we
will only pass back elements for that version.

To try to restate it, we will accept any known schema
data, we will only return the schema data based on the
version used in the loginRequest. For example, you could
login with version "1.0" and send us 8.0.0 schema data.
We would process the request and only return 7.0.x schema
data.

Preston

>>> On Friday, March 27, 2009 at 1:36 PM,

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

> Hello, Preston
>
> Thanks for your response, it is very helpful.
> However, if I login with the version number, such as 1.02, I have to
> use the Version 8.0.0 schema to cast the request and the response. Is
> that correct?
> Actually I have created different web references in my .net project to
> GW7 and GW8. In this case, I need to select the right version of schema
> dynamically based on the version number retrired from loginRequest ?
>
>
> Preston Stephenson;1764883 Wrote:
>> Yes. We control which version of the SOAP schema works
>> with the POA based on the version passed in the version
>> element of the loginRequest.
>>
>> If you login with out a version element of version or
>> "1.0", we will only return a 7.0.x version of the schema.
>> If you pass "1.01", we will return a 7.0.2 version of
>> the schema. If you pass "1.02" we will pass back an
>> 8.0.0 version of the schema. If you pass "1.03", we will
>> pass back an 8.0.1 version of the schema. That is of
>> course is the if POA knows about the schema. For example,
>> a 7.0.1 POA will only pass back schema version "1.0" no
>> matter what you put in the version element. An 8.0.0 POA
>> will not know about changes for "1.03". Is that clear
>> enough or did I answer the right question?
>>
>> Preston
>>
>>
>> >>> On Friday, March 27, 2009 at 8:26 AM,

>> lionfish<lionfish@no-mx.forums.novell.com> wrote:
>>
>> > Does it support GW POA 7 ?

0 Likes
lionfish Absent Member.
Absent Member.

Re: Is GW Web service 8 compatible backward ?

Preston Stephenson;1766031 wrote:
There are many things that you can do on your side.
If you don't need the new elements in 8.0, you can
just use the 7.0.x schema. If you only need part of
the new elements, you can make a hybrid schema. On
the POA we do not have a validating schema compiler.
We will accept anything that you send. If we understand
the element or method, we will process it. We will return
the elements based on what version was passed in. For
example, you could have a 8.0.0 version of the schema
compiled, but if you pass in "1.0" for the version, we
will only pass back elements for that version.

To try to restate it, we will accept any known schema
data, we will only return the schema data based on the
version used in the loginRequest. For example, you could
login with version "1.0" and send us 8.0.0 schema data.
We would process the request and only return 7.0.x schema
data.

Preston


Hi, Preston

Thank for your response, that's what I wanted to know.

Actually I got this question when I failed in a retractRequest. I got the exception, saying "59905, Bad parameter passed to a NCSP function". I did not know what was wrong and tried to upgrade to Version 8 to solve the problem. But I got the same error with SOAP ver8. Following is the code, anything wrong in it ?

// Creates binding
GroupWise8.GroupWiseBinding gwb = config.Login8();
// Creates the reqest
GroupWise8.retractRequest req = new GroupWise8.retractRequest();
req.items = new string[1] {app.id};
req.retractType = GroupWise8.RetractType.allMailboxes;
req.retractTypeSpecified = true;
req.retractingAllInstances = 1;
req.retractingAllInstancesSpecified = true;
req.retractCausedByResend = false;
req.retractCausedByResendSpecified = true;
req.comment = "Testing";

// Sends out the request
GroupWise8.retractResponse resp = gwb.retractRequest(req);
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Is GW Web service 8 compatible backward ?

Sorry, I can't tell from looking at the code. I
would need to have the SOAP trace of the request
and the response.

Preston

>>> On Monday, March 30, 2009 at 9:26 AM,

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

> Preston Stephenson;1766031 Wrote:
>> There are many things that you can do on your side.
>> If you don't need the new elements in 8.0, you can
>> just use the 7.0.x schema. If you only need part of
>> the new elements, you can make a hybrid schema. On
>> the POA we do not have a validating schema compiler.
>> We will accept anything that you send. If we understand
>> the element or method, we will process it. We will return
>> the elements based on what version was passed in. For
>> example, you could have a 8.0.0 version of the schema
>> compiled, but if you pass in "1.0" for the version, we
>> will only pass back elements for that version.
>>
>> To try to restate it, we will accept any known schema
>> data, we will only return the schema data based on the
>> version used in the loginRequest. For example, you could
>> login with version "1.0" and send us 8.0.0 schema data.
>> We would process the request and only return 7.0.x schema
>> data.
>>
>> Preston
>>

>
> Hi, Preston
>
> Thank for your response, that's what I wanted to know.
>
> Actually I got this question when I failed in a retractRequest. I got
> the exception, saying "59905, Bad parameter passed to a NCSP function".
> I did not know what was wrong and tried to upgrade to Version 8 to solve
> the problem. But I got the same error with SOAP ver8. Following is the
> code, anything wrong in it ?
>
> // Creates binding
> GroupWise8.GroupWiseBinding gwb = config.Login8();
> // Creates the reqest
> GroupWise8.retractRequest req = new
> GroupWise8.retractRequest();
> req.items = new string[1] {app.id};
> req.retractType = GroupWise8.RetractType.allMailboxes;
> req.retractTypeSpecified = true;
> req.retractingAllInstances = 1;
> req.retractingAllInstancesSpecified = true;
> req.retractCausedByResend = false;
> req.retractCausedByResendSpecified = true;
> req.comment = "Testing";
>
> // Sends out the request
> GroupWise8.retractResponse resp = gwb.retractRequest(req);

0 Likes
lionfish Absent Member.
Absent Member.

Re: Is GW Web service 8 compatible backward ?

Preston Stephenson;1766306 wrote:
Sorry, I can't tell from looking at the code. I
would need to have the SOAP trace of the request
and the response.

Preston


Following is the request and response.

Request:

<?xml version="1.0" encoding="utf-8"?>
<retractRequest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<items xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<item xmlns="http://schemas.novell.com/2005/01/GroupWise/types">49D0D2B9.TBN5DOM1.TBN5PO1.100.1626475.1.18950.1@4:A.TBN5DOM1.TBN5PO1.100.0.1.0.1@19</item>
</items>
<comment xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">Testing</comment>
<retractingAllInstances xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">1</retractingAllInstances>
<retractCausedByResend xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">false</retractCausedByResend>
<retractType xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">allMailboxes</retractType>
</retractRequest>

Response:
<?xml version="1.0" encoding="utf-8"?>
<retractResponse xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<status xmlns="http://schemas.novell.com/2005/01/GroupWise/methods">
<code xmlns="http://schemas.novell.com/2005/01/GroupWise/types">59905</code>
<description xmlns="http://schemas.novell.com/2005/01/GroupWise/types">Bad parameter passed to a NCSP function</description>
</status>
</retractResponse>


What I wanted to do is to cancel recurrent meetings (Appointments). The meetings were deleted, however I got the exception at mean while.
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Is GW Web service 8 compatible backward ?

I can correct the error that you are getting,
but the retract will still not work correctly.

To get the retract to work properly on removing
all instances in all mailboxes, you need to
pass the id of a sent item (not the received
item). You also need to pass a valid value for
retractingAllInstances. The value is the
recurrenceKey value from one of the recurrence
items. It is not a boolean.

Here is sample code in Java (sorry, if you need
..NET, I can create it).
public void testRetract() {
Appointment appt;
GetItemResponse iresp;
ItemRefList list = new ItemRefList();
Status resp = null;
String[] item = { m_mitem.getId() };
try {
iresp = m_main.getService().getItemRequest( m_mitem.getId(),
"recurrenceKey", m_main.getSessionId(), m_main.getTrace() );

if ( 0 == iresp.getStatus().getCode() ) {
appt = (Appointment)iresp.getItem();
list.setItem( item );
resp = m_main.getService().retractRequest( list, "Testing",
appt.getRecurrenceKey(), false, RetractType.allMailboxes,
m_main.getSessionId(), m_main.getTrace() );
}
} catch ( Exception e ) {
e.printStackTrace();
}
}

Here is the SOAP trace of the getItemRequest (edited for brevity):
<env:Envelope>
<env:Body>
<ns0:getItemRequest>

<ns0:id>49D1C342.domain.PO1.100.1776172.1.C84C.1@4:19.domain.PO1.100.0.1.0.1
@30</ns0:id>
<ns0:view>recurrenceKey</ns0:view>
</ns0:getItemRequest>
</env:Body>
</env:Envelope>

<env:Envelope>
<env:Body>
<gwm:getItemResponse>
<gwm:item xsi:type="gwt:Appointment">

<gwt:id>49D1C342.domain.PO1.100.1776172.1.C84C.1@4:19.domain.PO1.100.0.1.0.1
@30</gwt:id>
<gwt:sid>51276</gwt:sid>
<gwt:container sid="5">A.domain.PO1.100.0.1.0.1@19</gwt:container>
<gwt:source>sent</gwt:source>
<gwt:recurrenceKey>388943</gwt:recurrenceKey>
</gwm:item>
<gwm:status>
<gwt:code>0</gwt:code>
</gwm:status>
</gwm:getItemResponse>
</env:Body>
</env:Envelope>

Here is the SOAP trace of the retractRequest:
<env:Envelope >
<env:Body>
<ns0:retractRequest>
<ns0:items>

<ans1:item>49D1C342.domain.PO1.100.1776172.1.C84C.1@4:19.domain.PO1.100.0.1.
0.1@30</ans1:item>
</ns0:items>
<ns0:comment>Testing</ns0:comment>
<ns0:retractingAllInstances>388943</ns0:retractingAllInstances>
<ns0:retractCausedByResend>false</ns0:retractCausedByResend>
<ns0:retractType>allMailboxes</ns0:retractType>
</ns0:retractRequest>
</env:Body>
</env:Envelope>

<env:Envelope>
<env:Body>
<gwm:retractResponse>
<gwm:status>
<gwt:code>0</gwt:code>
</gwm:status>
</gwm:retractResponse>
</env:Body>
</env:Envelope>

Of course, if you already have the recurrence key,
you don't need to do a read to get it.

Let me know if you still have questions.

Preston

>>> On Monday, March 30, 2009 at 12:26 PM,

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

> Preston Stephenson;1766306 Wrote:
>> Sorry, I can't tell from looking at the code. I
>> would need to have the SOAP trace of the request
>> and the response.
>>
>> Preston
>>


0 Likes
lionfish Absent Member.
Absent Member.

Re: Is GW Web service 8 compatible backward ?

Thank, it is working.

I just have one more question.

If the appointment is a recurrent one, which item id should I pass to RetractRequest when I am trying to delete all instances ?
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Is GW Web service 8 compatible backward ?

It just needs to be one of the sent item id's,
plus the recurrenceKey value.

Preston

>>> On Monday, April 06, 2009 at 9:16 AM,

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

> Thank, it is working.
>
> I just have one more question.
>
> If the appointment is a recurrent one, which item id should I pass to
> RetractRequest when I am trying to delete all instances ?

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.