<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I've updated the project to use:<br>
tango.util.time.WallClock,<br>
tango.util.time.Clock,<br>
<br>
it works with tango 0.98 RC2.<br>
<br>
Please download hessiand again.<br>
<br>
<br>
Simen Haugen wrote:
<blockquote cite="mid:f43evc$96$1@digitalmars.com" type="cite">
<pre wrap="">I cannot compile it. You're using tango.util.time.Utc, and in my tango trunk
that file doesn't exist.
"Radu" <a class="moz-txt-link-rfc2396E" href="mailto:radu.racariu@void.space"><radu.racariu@void.space></a> wrote in message
<a class="moz-txt-link-freetext" href="news:f3f7n3$1r10$1@digitalmars.com">news:f3f7n3$1r10$1@digitalmars.com</a>...
</pre>
<blockquote type="cite">
<pre wrap="">HessianD (<a class="moz-txt-link-freetext" href="http://www.dsource.org/projects/hessiand/">http://www.dsource.org/projects/hessiand/</a>)
A D implementation of the Hessian (<a class="moz-txt-link-freetext" href="http://caucho.com/hessian">http://caucho.com/hessian</a>) binary web
service protocol.
Supports both the client and the server model.
Client sample:
import hessian.HttpProxy :
HttpProxy;
import tango.io.Stdout;
char[] echo(char[] param);
void main ()
{
// create a Http proxy on the given Http endpoint so we can post
our Hessian stream
scope service = new HttpProxy(<a class="moz-txt-link-rfc2396E" href="http://localhost:5667/hessiantest">"http://localhost:5667/hessiantest"</a>);
// create a proxy method that will do the Hessian serialization
and deserialization
auto _echo = &service.proxy!(echo);
// we'll perform the remote call and display the result
Stdout ("Remote result: ") ( _echo("Hello World!") ).newline.flush;
}
Server sample:
import hessian.HttpServer:
Server;
class impl
{
char[] echo (char[] param)
{
return param;
} }
void main()
{
// create a Http server on the given port
auto server = new Server(5667);
// attach a context with the Http endpoint and the class
implementing the method
auto context = server.addContext!(impl)("/test/hessiantest");
// bind the method to the context created
context.bind!(impl.echo);
// and finally start listenning to Http Post requests
server.start;
}
</pre>
</blockquote>
<pre wrap=""><!---->
</pre>
</blockquote>
<br>
</body>
</html>