Sunday, October 12, 2008

hessian binary web service protocol

The Hessian binary web service protocol makes web services usable without requiring a large framework, and without learning yet another alphabet soup of protocols. Because it is a binary protocol, it is well-suited to sending binary data without any need to extend the protocol with attachments.
http://hessian.caucho.com/#Java

In our project i needed to write a test client in C# to use Exposed java API methods.For that I used HessianC#. I added hessiancsharp.dll to the .NET project.
http://www.hessiancsharp.org/

in Java , its like this.
bean id="advertisementService" class="org.springframework.remoting.caucho.HessianProxyFactoryBean"
description Proxy for the user service using HTTP. /description
property name="serviceUrl" value="${admanager.url}remoting/secured/advertisementService"/
property name="serviceInterface" value="com.fastsearch.admomentum.admanager.advertisement.client.ExposedAdvertisementService"/
property name="serializerFactory" ref="hessianSerializer"/
property name="username" value="advertiser@test.com"/
property name="password" value="password"/
/bean

No comments: