Heray-Was-Here
Server : Apache
System : Linux vps103298.mylogin.co 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : calvet ( 273824)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /proc/self/root/proc/self/root/usr/share/doc/perl-SOAP-Lite/examples/COM/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/usr/share/doc/perl-SOAP-Lite/examples/COM/remote.cs
// -- SOAP::Lite -- soaplite.com -- Copyright (C) 2001 Paul Kulchenko --

// Lots of thanks to Tony Hong (xmethods.net) for provided help and examples

// Connect to remote SOAP server

using System;
using System.Reflection;

public class test {
  public static void Main() {
    Type typ = Type.GetTypeFromProgID("SOAP.Lite");
    object obj = Activator.CreateInstance(typ);
    object soaplite = typ.InvokeMember("new",BindingFlags.InvokeMethod,null,obj,null);

    Object[] uri = {"urn:xmethodsInterop"};
    Object[] proxy = {"http://services.xmethods.net:80/perl/soaplite.cgi"};

    typ.InvokeMember("uri",BindingFlags.InvokeMethod,null,soaplite,uri);
    typ.InvokeMember("proxy",BindingFlags.InvokeMethod,null,soaplite,proxy);

    object [] input = {"Hello"};

    object resultObject = typ.InvokeMember("echoString",BindingFlags.InvokeMethod,null,soaplite,input);
    Console.WriteLine(typ.InvokeMember("result",BindingFlags.InvokeMethod,null,resultObject,null));
  }
}

Hry