日期:2014-05-18  浏览次数:20902 次

Remoting怎么能不用配置文件
不用配置文件,用代码怎么写Remoting的配置呢?比如下面这段配置文件,怎么翻译成代码?

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.runtime.remoting>
  <application>
  <client>
  <wellknown type="RemotingObject.MyObject,RemotingObject" objectUri="cRemotingClass" mode="Singleton" />
  </client>
  <channels>
  <channel port="1011" ref="http">
  <serverProviders>
  <provider ref="wsdl" />
  <formatter ref="soap" typeFilterLevel="Full" />
  <formatter ref="binary" typeFilterLevel="Full" />
  </serverProviders>
  </channel>
  </channels>
  </application>
  </system.runtime.remoting>
</configuration>

------解决方案--------------------
具体需求请说清楚一下,先帮你顶