[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Zxid call from matching service



Thomas Kirkham wrote:
> Hi Sampo,
>
>   To clarify the matching service receives a request from a specific ID.
> It then calls the ZXID to check that the ID is valid on the system. It
> can do this by the code below:
>
> public void doPost(HttpServletRequest req, HttpServletResponse res)
>                       throws ServletException, IOException {
>        String qs;
>        int len = req.getContentLength();
>        byte[] b = new byte[len];
>        int got = req.getInputStream().read(b, 0, len);
>        qs = new String(b, 0, got);
>         do_zxid(req, res, qs);
>      }
>    }
>
>  Is this correct?

The code seems correct fo Single Sign-On (SSO). But I understood
Matching Service was supposed to be a SOAP Web Service. For that
you would replace do_zxid() with call to zxid_wsp_validate()
and in response generation phase, with zxid_wsp_decorate().

Cheers,
--Sampo

> Cheers,
>
> Tom
>
> -----Original Message-----
> From: sampo@xxxxxxxxxxx [mailto:sampo@xxxxxxxxxxx]
> Sent: 07 December 2009 14:43
> To: Thomas Kirkham
> Cc: sampo@xxxxxxxxxxx
> Subject: Re: Zxid-042 compile error
>
> Thomas Kirkham wrote:
>> Hi Sampo,
>>
>>
>> FYI
>>
>>    Version 041 compiles ok but get these errors with 042:
>>
>> zxidhlowsf.c: In function 'main':
>> zxidhlowsf.c:119: error: too few arguments to function
>> 'zxid_mk_di_query'
>> zxidhlowsf.c:120: warning: passing argument 4 of 'zxid_find_epr' makes
>
>> pointer from integer without a cast
>> zxidhlowsf.c:120: error: too few arguments to function 'zxid_find_epr'
>> make: *** [zxidhlowsf.o] Error 1
>
> THanks. The errors are due to new arguments I added to those functions.
> Fixed in upcoming 0.43. For time being I recommend you ignore these
> errors as zxidhlowsf has not recently been tested and until I have
> tested, I do not recommend using it.
>
> Cheers,
> --Sampo
>
>> Cheers,
>>
>> Tom
>> This message has been checked for viruses but the contents of an
>> attachment may still contain software viruses which could damage your
>> computer
>> system:
>> you are advised to perform your own checks. Email communications with
>> the University of Nottingham may be monitored as permitted by UK
> legislation.