Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version
Go to top

Using Web Services for Remoting over the Internet.

, 15 Feb 2002
This article describes a design and implementation (C#) of the Remoting over Internet using the Web Service as a gateway into the Remoting infrastructure.
remotingoverinternet_src.zip
ConsoleClient
bin
Debug
ConsoleClient.exe
ConsoleClient.pdb
MyRemoteObject.dll
MyRemoteObject.pdb
ConsoleClient.csproj.user
obj
Debug
ConsoleClient.exe
ConsoleClient.exe.incr
ConsoleClient.pdb
temp
TempPE
ConsoleServer
bin
Debug
ConsoleServer.exe
ConsoleServer.pdb
ConsoleServer.csproj.user
obj
Debug
ConsoleServer.exe
ConsoleServer.exe.incr
ConsoleServer.pdb
temp
TempPE
MyRemoteObject
bin
Debug
MyRemoteObject.dll
MyRemoteObject.pdb
MyRemoteObject.csproj.user
MyRemoteObject.snk
obj
Debug
MyRemoteObject.dll
MyRemoteObject.dll.incr
MyRemoteObject.pdb
temp
TempPE
WebServiceChannelLib
bin
Debug
WebServiceChannelLib.dll
WebServiceChannelLib.pdb
obj
Debug
Service.resources
temp
TempPE
WebServiceChannelLib.dll
WebServiceChannelLib.dll.incr
WebServiceChannelLib.pdb
WebServiceChannelLib.csproj.user
WebServiceChannelLib.snk
WebServiceListener
bin
WebServiceListener.dll
WebServiceListener.pdb
Global.asax
WebServiceListener.csproj.webinfo
WebServiceListener.vsdisco
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.0.2914.16
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by wsdl, Version=1.0.2914.16.
// 
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.Web.Services;


[System.Web.Services.WebServiceBindingAttribute(Name="ServiceSoap", Namespace="http://tempuri.org/")]
public class Service : System.Web.Services.Protocols.SoapHttpClientProtocol {
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    public Service(string uri) {
        this.Url = uri;
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/Echo", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    public string Echo(string msg) {
        object[] results = this.Invoke("Echo", new object[] {
                    msg});
        return ((string)(results[0]));
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    public System.IAsyncResult BeginEcho(string msg, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("Echo", new object[] {
                    msg}, callback, asyncState);
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    public string EndEcho(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((string)(results[0]));
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SyncProcessMessage", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    public string SyncProcessMessage(string request) {
        object[] results = this.Invoke("SyncProcessMessage", new object[] {
                    request});
        return ((string)(results[0]));
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    public System.IAsyncResult BeginSyncProcessMessage(string request, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("SyncProcessMessage", new object[] {
                    request}, callback, asyncState);
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    public string EndSyncProcessMessage(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((string)(results[0]));
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SyncProcessSoapMessage", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
    public string SyncProcessSoapMessage(string request) {
        object[] results = this.Invoke("SyncProcessSoapMessage", new object[] {
                    request});
        return ((string)(results[0]));
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    public System.IAsyncResult BeginSyncProcessSoapMessage(string request, System.AsyncCallback callback, object asyncState) {
        return this.BeginInvoke("SyncProcessSoapMessage", new object[] {
                    request}, callback, asyncState);
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    public string EndSyncProcessSoapMessage(System.IAsyncResult asyncResult) {
        object[] results = this.EndInvoke(asyncResult);
        return ((string)(results[0]));
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Roman Kiss
Software Developer (Senior)
United States United States
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 15 Feb 2002
Article Copyright 2002 by Roman Kiss
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid