 | Rmoting configuartion sample |
| using System;
| | 1:using System.Collections.Generic;
| | 2:using System.Text;
| | 3:using System.Configuration;
| | 4:using System.Runtime.Remoting;
| | 5:using System.Runtime.Remoting.Channels;
| | 6:using System.Runtime.Remoting.Channels.Http;
| | 7:using System.Runtime.Serialization.Formatters.Binary;
| | 8:using System.Runtime.Serialization.Formatters.Soap;
| | 9:using System.Runtime.Remoting.Proxies;
| | 10:using MyRemoteObjectDefination;
| | 11:using ServiceEntities;
| | 12:
| | 13:namespace MyRemoting.Client
| | 14:{
| | 15: public class MyClientObject
| | 16: {
| | 17: public MyClientObject()
| | 18: {
| | 19:
| | 20: }
| | 21:
| | 22: public ServiceEntities.BusinessException GetExceptionDetails()
| | 23: {
| | 24: //Create Service class object
| | 25: IBusinessException svc = (IBusinessException)Activator.GetObject(typeof(IBusinessException), "http://" + Util.Instance.RemoteServer + ":80/COBRemote/BusinessExceptionSummary.soap");
| | 26:
| | 27:
| | 28: //Get B.Exception details
| | 29: return svc.GetExceptionDetails();
| | 30:
| | 31:
| | 32: }
| | 33: }
| | 34:}
| | 35: |
|