REQUIREMENT client.csharp |
Type | NEW |
Priority | MEDIUM |
Status | CLOSED |
Topic | XmlBlaster provides full access from C#. | |||||||||||||||||||||||||||||||||||
Des cription |
OverviewYou have full access to XmlBlaster's interface from C#. Currently there are several approaches to choose from, starting from using the full XmlBlaster client capabilities (fail-over, client cache, ...) when using the ActiveX technologies up to complete access using the XML-RPC protocol but without advanced client features. The following table gives an overview, we recommend to choose 1. Approaches to access xmlBlaster from C#
ActiveX
For Windows users only, you can use the original xmlBlaster Java Client library by hosting it with the free ActiveX bridge from SUN (Java JDK 1.5). XML-RPCThe second way use XML-RPC protocol to access XmlBlaster. This page will explain this technology. You will find the demonstration in the directory xmlBlaster/demo/csharp/xmlrpc. All XmlBlaster's interface are supported:
The demoThe demonstration was done with Microsoft Visual Studio .NET 2003, but it should works with CSharpDevelop IDE (just create a new projet, reference xml-rpc library and System.Remoting and include the *.cs files). Problably it will or not need some changes to run with mono. The Microsoft .Net Framework does not include the xml-rpc protocol, so we have to use a external library (assembly). I've choose xml-rpc.net.0.9.2 from http://www.xml-rpc.net/ written by Charles Cook. It seems to be nice and it implements Client and Server side of the protocol.
The demo consists in a little drawing application.
To run the demo, click on the exe file two times.
Screenshot |
|||||||||||||||||||||||||||||||||||
Example CSHARP |
Start XmlBlaster server > set XMLBLASTER_HOME=D:\xmlBlaster_REL_1_0_7\xmlBlaster > java -jar %XMLBLASTER_HOME%/lib/xmlBlaster.jar -plugin/xmlrpc/port 8089 -plugin/xmlrpc/hostname localhost
Start 2 demo applications by clicking on xmlBlaster/demo/csharp/xmlrpc/bin/CSharpDrawingDemo.exe. |
|||||||||||||||||||||||||||||||||||
Example CSHARP |
Here will come some peace of code. |
|||||||||||||||||||||||||||||||||||
Configure |
NOTE: Configuration parameters are specified on command line (-someValue 17) or in the
xmlBlaster.properties file (someValue=17). See requirement "util.property" for details. |
|||||||||||||||||||||||||||||||||||
Todo |
|
|||||||||||||||||||||||||||||||||||
See CODE | ||||||||||||||||||||||||||||||||||||
See CODE | ||||||||||||||||||||||||||||||||||||
See | http://www.xmlBlaster.org/xmlBlaster/demo/csharp/xmlrpc/README | |||||||||||||||||||||||||||||||||||
See REQ | interface | |||||||||||||||||||||||||||||||||||
See REQ | client.c.windowsCE | |||||||||||||||||||||||||||||||||||
See REQ | protocol.xmlrpc |
This page is generated from the requirement XML file xmlBlaster/doc/requirements/client.csharp.xml