From:  "Preston Stephenson" <PStephenson@gw.novell.com>
Date:  29 Oct 2005 02:08:17 Hong Kong Time
Newsgroup:  nntp.novell.com/novell.devsup.gwsoap
Subject:  

Re: Problems with Proxy-Access

NNTP-Posting-Host:  137.65.15.31

You are restricted to only proxying to users on the same post office.
gwsoap is on the POA.
It doesn't have any logic to access another POA as a client.
Since webaccess is a client (and already has the logic to access a POA
as a client), it can connect to a different POA.

The documentation is more user friendly.
The description returned by gwsoap is the internal description.

In the case of this error, WPCOM is a wrapper around the IP connection.

Preston

>>> On Friday, October 28, 2005 at 8:56:30 am, in message
, Hendrik Saly
wrote:
> I forgott: The Mailbox/GWServer of the "real User" is different from the 
> Mailbox/GWServer of the Ressource to be proxied.
> 
> Is this a problem or can we handle it with gwsoap? Webaccess can do it.
> 
> Thanks in advance
> Hendrik Saly
> 
> Hendrik Saly wrote:
>> For 8503 the message from the documentation and the descriptionf from 
>> the status object differ:
>> 
>> getStatus().getDescription(): "Unable to open a WPCOM connection"
>> Documentation: 8503   "Cannot connect to specified IP address"
>> 
>> What does this mean? Is my code below correct?
>> 
>> Thanks
>> Hendrik
>> 
>> Preston Stephenson wrote:
>> 
>>> Go to http://www.novell.com/documentation/gw7/index.html 
>>> There is a section for "Error Messages".
>>> You will have to convert the error number to a hex value.
>>> 34051 -> 8503
>>> Then look up the error message.
>>> The Status object also has a "description" element that
>>> describes the error.
>>>
>>> Preston
>>>
>>>
>>>>>> On Friday, October 28, 2005 at 12:58:21 am, in message
>>>
>>>
>>> , Hendrik 
>>> Saly
>>> wrote:
>>>
>>>> Ok, now i get a 34051 code. Is there a general overview of the error 
>>>> codes somewehere in the documentation. I have found nothing.
>>>>
>>>> Code is:
>>>>
>>>> com.novell.groupwise.ws.PlainText ptLogin = new PlainText();
>>>> ptLogin.setUsername(user);
>>>> ptLogin.setPassword(passwd);
>>>>
>>>> m_loginResponse = m_gwservice.loginRequest((Authentication) ptLogin 
>>>> /* TODO */, "de",
>>>>                     new BigDecimal(1.0), "BAL GWSoap Helper");
>>>> System.out.println("Status Code:             " + 
>>>> m_loginResponse.getStatus().getCode());
>>>> //OK, status is 0
>>>>
>>>> Proxy proxy = new
>>>
>>>
>>> Proxy(user,passwd,"kal-wwi05a.NWGW-V-HAN-PO.NWGW-V-DOM");
>>>
>>>> LoginResponse p_loginResponse = 
>>>> m_gwservice.loginRequest((Authentication) proxy /* TODO */, "de",
>>>>                         new BigDecimal(1.0), "BAL GWSoap Helper");
>>>> System.out.println("Proxy Status Code:             " + 
>>>> p_loginResponse.getStatus().getCode());
>>>> //Bad, status is 34051
>>>>
>>>> Thanks
>>>> Hendrik
>>>>
>>>> Preston Stephenson wrote:
>>>>
>>>>> Error 53540: Access denied (You don't have rights to login.)
>>>>> Error 53532: Groups cannot be used here
>>>>> Error 53505: User not on post office
>>>>>
>>>>> The value for the proxy field is the email address.
>>>>> You have to be already logged in as a valid user before
>>>>> you login as a proxy to a user.
>>>>> You can't just do a login as a proxy.
>>>>>
>>>>> Preston
>>>>>
>>>>>
>>>>>
>>>>>>>> On Wednesday, October 26, 2005 at 9:15 am, in message
>>>>>
>>>>>
>>>>> <435F9DB2.8080002@gmx.org>, Hendrik Saly wrote:
>>>>>
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> my question is: How can i query calendars and mailboxes from other 
>>>>>> users
>>>
>>>
>>>
>>>>>> (the permissions are ok, because i can view that in webaccess) via 
>>>>>> the proxy mechanism.
>>>>>>
>>>>>> I try the following:
>>>>>>
>>>>>> Proxy proxy = new Proxy(user,passwd,"XXX");
>>>>>>
>>>>>> m_gwservice.loginRequest(proxy, "de",new BigDecimal(1.0), "GWSoap 
>>>>>> Helper");
>>>>>>
>>>>>> But (depending on the XXX value) i get return codes like 53540, 
>>>>>> 53532 and 53505 (instead of 0).
>>>>>> What is the right value for XXX? Is it the userid, email, uuid or 
>>>>>> something other of the foreign user?
>>>>>> If i login with:
>>>>>>
>>>>>> com.novell.groupwise.ws.PlainText ptLogin = new PlainText();
>>>>>> ptLogin.setUsername(user);
>>>>>> ptLogin.setPassword(passwd);
>>>>>> m_gwservice.loginRequest(ptLogin, "de",new BigDecimal(1.0), "GWSoap 
>>>>>> Helper");
>>>>>> there is all right.
>>>>>>
>>>>>>
>>>>>> Thanks in advance
>>>>>> Hendrik