Вы находитесь на странице: 1из 9

Remoting

XML
XML
XML.

( ).
,
, XML-
, .
, ++ .
: msxml, xerces libxml2.
Microsoft, ,
, DOM- XML-,
, , .
, .
Xerces Apache, DOM-, SAX. C++, Java Perl
. ,
:

.
, libxml2, Xerces,
Gnome.
,
.
- , ,
libxml2 .
XML
.
.
, XML
, .
, ,
.
,
. web-, .NET Remoting Indigo
XML,
SOAP (Simple Object Access Protocol).

(1.2) SOAP 24 2003 .


SOAP-,
, . , SOAP
, ,
. SOAP (
XML-RPC) RPC- (Remote
Procedure Call), ,
DCOM CORBA.
.net remoting
,
,
.
c
.NET Remoting. , ,
. ,
.NET Framework 1.1,
M$ Visual Studio 2003 2005.

using System;

using System.Runtime.Remoting;

namespace SimpleServer

{
class Program
{
[STAThread]
static void Main(string[] args)

{
// .NET
RemotingConfiguration.Configure("SimpleServer.exe.config");
//
Console.WriteLine("Press any key...");
Console.ReadLine();
}
}
, .NET Remoting
. :
mode="SingleCall"
type="TestObject.Test, TestObject"
objectUri="Test.rem" />

MSDN,
. wellknown ,
, .
mode SingleCall,
.
mode Singleton,
, .
type ,
, . channel.
ref , : http (
http) tcp ( TCP/IP).
port , .
, ,
,
8080.

.net remoting
, .NET Remoting,
.
using System;
using System.Runtime.Remoting;
using TestObject;
namespace Client
{
class Client
{
[STAThread]
static void Main(string[] args)
{
// .NET Remoting
RemotingConfiguration.Configure("SimpleClient.exe.config");
//
Test test = new Test();
// ,
Console.WriteLine(test.hello());
}
}

,
TestObject.
SimpleClient.exe.config. :

type="TestObject.hello, TestObject"
url="http://192.168.10.87:8000/RemotingTest/Test.rem" />
wellknown. ,
( type).
url, (http tcp).
,
.
,
MarshalByRefObject.
using System;
namespace TestObject
{
public class Test: MarshalByRefObject
{
public string hello()
{
return "Hello world!!!";
}
}

}
.
( ), , .
, , .
: .
TCP/IP,
HTTP- SOAP- (. . ).
192.168.10.87 SOAP
TestObject.hello, SOAP- ,
Hello world!!!. ,
2500 SOAP 1000 .
,
,
: TCP/IP SOAP,
HTTP.
.NET Remoting DCOM CORBA,
. TCP/IP HTTP .
,
HTTP .
web-
Web- - .
, ,
URI
XML.
.NET Remoting,
-
, web. , : web-
, ,
.

. , , SOAP
. .NET Remoting
.NET, .

MO-
,
RPC ( ), . ,
MO- (Message-Oriented). , ,
: ,
. -,

-.

. Message-Oriented
. MO-
IBM MQSeries M$MQ.
indigo
, ,
Microsoft
Indigo. ,
,
. Indigo (
) : IIS 5.1, 6.0 7.0 (
Vist), NT, ,
Vist Windows Activation Services.
Indigo , COM+, MSMQ, .NET
Remoting ASP.NET Web-services. Indigo
- :
(), ,

SOAP. Indigo web- ASP.NET .NET
Remoting
. , TestObject .NET
Remoting Indigo:

using System;
using System.ServiceModel;

namespace TestObject
{
//
[ServiceContract]
public class Test: MarshalByRefObject
{
//
[OperationContract]
public string hello()
{
return "Hello world!!!";
}
}
}
Indigo, web-,
svcutil. URL- svcutil
- ( ),
. Indigo
WinFX SDK.
mono

SOAP. web-
.

MS. , IBM
Apache.
.NET ,
, mono.
,
-
. , Mono -
.NET, # CLI, .NET Framework 1.1.
1.1.13 11 2006 , ADO.NET,
ASP.NET, Apache.
Mono , .NET
ECMA. Indigo (
Avalon) Microsoft ,
,
.
xml-rpc


, XML-RPC,
SOAP,
, , .
,
hello() ( XML-RPC):
hello
XML, , hello,
.
Hello world!!!
: ( string),
(int), (bool), (double),
(dateTime.iso8601), (base64), (struct)
(array). ,
XML- .