This project has moved and is read-only. For the latest updates, please go here.

[en] Using Zyan in a web project (solved)

Topics: Technical Support
Jul 25, 2014 at 10:51 PM
Edited Jul 30, 2014 at 2:25 PM
Marcel Schmidt wrote:
I’m currently trying to get Zyan Framework working, but due to the fact
that I want to use a Web Server (IIS) <-> Web Service structure,
I can’t get it to work. Maybe developing a web service has been too long ago,
but I also can’t find any discussions on that on the internet.
Web server and web service will work on different servers, but they are
allowed to communicate to each other in the network.
It's possible to use Zyan in web projects.
However I don't understand your specification.
Please specify your project requirements in more details.
What party acts as a server and what are the clients, what operations does your server provide, etc.

Assuming that your client is an ASP.NET website, I've attached a sample project
that demonstrates the usage of Zyan as a middleware:

Server  <---Zyan--->  Web Site

Running the sample

  • Download the archive
  • Unzip the file to an empty folder and open the solution using Visual Studio 2012/2013.
  • Configure web project ZyanDemo.Web to use IIS Express as the development server (hint).
  • Set ZyanDemo.Web as startup project and build the solution.
  • Double-click ZyanDemo.HostConsole\bin\Debug\ZyanDemo.HostConsole.exe file in the Explorer to start demo server.
  • Run the solution by hitting F5, it will open the web site in your browser.
  • Your web page will display product list returned by remote server:

The demo project was submitted by quitewing.
The Illustration was submitted by Marcel Schmidt.
Jul 28, 2014 at 11:46 AM

I was totally wrong trying to integrate Zyan Framework into a web service. Now (after a few tests) I got this setup:
Client: Web Server (ASP.NET, C#.NET)
Server: Console Application (C#.NET)

It works perfectly now, thanks for your support. The only problem is that I can't get the client's IP address if he's not authenticated yet, as mentioned in another thread.
Jul 29, 2014 at 5:58 AM

Sorry for my late reply.
The AuthRequestMessage.ClientAddress property is not a part of the current release (yet).
Either wait for the upcoming release 2.6, or just build Zyan dll from sources.

Regards, Alex