Re: i love hessian

From: Christian Campo <christian.campo@xxx.com>
Date: Thu Aug 18 2005 - 02:51:42 PDT

Hi Justen,

as much as you love Hessian (and I certainly LIKE it too), it comes to
my mind that havn't fully understood what Hessian is.

Its NOT:
- SOAP or SOAP compatible
- configurable with WSDL config files or even your own Serializers

However it IS:
- compatible (mostly) between various implementations of Hessian for
various languages
- very good in working out of the box programming again an API (aka Interface)
- very good in abstracting and transporting data from one Hessian
endpoint to another
- it uses HTTP so you can use the Internet and you use a Webcontainer
at the backend (for example)

Therefore its pretty straightforward to write a filter that capture
the client IP adresse out of the HTTP headers and stores it in a
ThreadLocal thingy. Then your webservice can access the client IP
adress. Maybe that code already exists as pointed to by some other
(more knowledgable people than me), but its pretty much a no-brainer
to write it yourself.

cheers
christian campo

On 8/18/05, Radu-Adrian Popescu <radu.popescu@xxx.com> wrote:
> >>> 1. How can I determine the IP address of the client at runtime?
> >>>
> >>
> >> If I'm not mistaken, the Spring framework Hessian utility classes allow
> >> for that.
> >
> > What if one is not using Spring?
> >
>
> Tough luck. You'd have to devise a way to get the IP yourself. But then
> again, if it's already done by somebody else, one might as well save
> oneself the hassle and use the existing code.
>
> >>> 2. How can I access the WSDL for the service for .NET clients?
> >>>
> >>
> >> Care to detail on that? AFAIK Hessian does not have WSDL, but does have
> >> a
> >> .NET/C# client/server implementation.
> >
> > Hessian clients must use on the APIs downloadable from the main page then?
> > It's not a compliant webservices interface then?
> >
>
> Does it say anywhere that it is ? That it supports WSDL or any other part
> of the WebServices stack ?
> At the moment, AFAIK, only IONA seems to think of WSDL as a really
> independent part of the WS spec and dare to use it with something else
> other than SOAP (CORBA/IIOP for instance). So this seems a rather moot
> point, unless someone would choose to venture on building a real WS
> compliant implementation that uses Hessian instead of SOAP.
>
> > Justen
> >
>
> Regards,
> --
> Radu-Adrian Popescu
> CSA, DBA, Developer
> Aldrapay MD
> Aldratech Ltd.
> +40723335573
>
>

-- 
christian campo (gmail.com)
Received on Thu 18 Aug 2005 02:51:42 -0700

This archive was generated by hypermail 2.1.8 : Thu Sep 28 2006 - 20:16:41 PDT