home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2005 June (DVD) / DPPRO0605DVD.iso / dotNETSDK / SETUP.EXE / netfxsd1.cab / readme_xml_39________.3643236F_FC70_11D3_A536_0090278A1BB8 < prev    next >
Encoding:
Extensible Markup Language  |  2002-06-17  |  3.7 KB  |  96 lines

  1. <?xml version='1.0'?> 
  2. <?xml-stylesheet type="text/xsl" href="..\..\..\..\readme.xsl"?> 
  3. <sample> 
  4. <title> Remoting Objects Sample</title>
  5.  
  6. <title-short>Using Client Activated objects .NET remoting</title-short>
  7.  
  8. <overview> 
  9. This sample shows how to create a client activated object, publish
  10. it as a service and use a client to activate the object and make
  11. a number of method calls.  This sample uses SOAP over HTTP on port 80.
  12. It demonstrates how to:<p></p>
  13. <li><b>activate a sample using a constructor with parameters</b></li>
  14. <li><b>use set and get to access a public property</b></li>
  15. <li><b>store state between calls</b></li>
  16. <li><b>use methods to change state</b></li>
  17. <li><b>call overloaded methods on remote objects</b></li>
  18.  
  19. </overview>
  20.  
  21. <subdirectory>Technologies\Remoting\Basic\RemotingObjects
  22.  
  23. <directory name = "bin">
  24. Contains the CAOLibrary.dll required when the service is accessed using IIS.  The service should be registered with IIS before calling this service from the client in Client/ConsoleClient.</directory>
  25.  
  26. <directory name = "Service">
  27. The source file CAOLibrary.cs and associated makefile are stored here.  The makefile
  28. creates CAOLibrary.dll and copies this file to the bin directory.
  29. </directory>
  30.  
  31. <directory name = "Client">
  32. Contains a makefile to build the client in the ConsoleClient directory.
  33. </directory>
  34.  
  35. <directory name = "Client\ConsoleClient">
  36. Contains the source and associated makefile to build client.exe.  The client
  37. uses client.exe.config to configure itself.
  38. </directory>
  39.  
  40. </subdirectory>
  41.  
  42. <customsection  name = "Registering the service in IIS">
  43. <li>Compile the service to a DLL and copy this DLL to a bin directory
  44. where the service will be loaded from.  For this samples we create
  45. the bin subdirectory under RemotingObjects and copy the CAOLibrary.dll there.  Building the sample by running nmake will accomplish this. </li><p></p>
  46.  
  47. <li>Start Internet Services Manager and select Default Web Site
  48. under the server node.  Select Action, New, Virtual Directory on the
  49. menu and click Next to continue.</li><p></p> 
  50.  
  51. <li>Enter RemotingObjects as the alias and press Next.</li><p></p> 
  52.  
  53. <li>Enter the directory where the service is located.  Enter the full path
  54. up to but excluding the bin directory where the DLL in step 1 was copied to.
  55. For example:<p></p> 
  56.  
  57.   <b>C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Remoting\Basic\RemotingObjects</b></li><p></p>
  58.  
  59. <li>Press Next.  Accept the defaults presented and press Next again.  Press Finish.  The service
  60. has now been registered and will appear under the list of Default Web Sites in the Internet Services
  61. Manager window.</li><p></p> 
  62.  
  63. <li>Check that there is a web.config file in the directory where the service was registered.  This file describes our service and will automatically be loaded when a client attempts to access our service with a browser or client using the HTTP channel on port 80.</li> 
  64.  
  65. </customsection>
  66.  
  67. <customsection  name = "Requirements">
  68. This sample will only operate correctly on any version of Windows with the Common Language Runtime and Internet Information Server (IIS) installed.  
  69. </customsection>
  70.  
  71. <buildsteps> 
  72. <step> 
  73. Type <b>nmake -a all</b> from the command line.      
  74. <example> 
  75. C:\Program Files\Microsoft.NET\SDK\v1.1\Samples\Technologies\Remoting\Basic\RemotingObjects> nmake -a all
  76. </example>
  77. </step>
  78. </buildsteps>
  79.  
  80. <runsteps> 
  81. <step>
  82. Ensure that RemotingObjects is registered as a service with IIS and run client.exe
  83. in the Client/ConsoleClient directory
  84. </step>
  85. </runsteps>
  86.  
  87. <keywords> 
  88. <word name="Remoting" keyword="R"/>
  89. <word name="Collections" keyword="C"/>
  90. <word name="MBR" keyword="M"/>
  91. <word name="Client Activated" keyword="A"/>
  92. </keywords>
  93. </sample>
  94.  
  95.  
  96.