diff --git a/test/README b/test/README index c385b1d..2beeb78 100644 --- a/test/README +++ b/test/README @@ -65,7 +65,11 @@ How to test ----------- Build XSP and start the server as usual. -cd to xsp/test and run ServiceClient.exe. +cd to xsp/test and run ServiceClient.exe passing the hostname and port: + +For example: + + mono ServiceClient.exe localhost:8080 After execution, you should see the files trace.log and dump.log in xsp/server/test with the traces of the requests. You can try to add and remove diff --git a/test/ServiceClient.cs b/test/ServiceClient.cs index 88a41f3..ed754c7 100644 --- a/test/ServiceClient.cs +++ b/test/ServiceClient.cs @@ -4,10 +4,12 @@ namespace WebServiceTest { public class ServiceClientTest { - static void Main() + static void Main(string [] args) { Console.WriteLine ("Testing simple web service"); TestService s = new TestService (); + if (args.Length>0) + s.Url = "http://" + args [0] + "/TestService.asmx"; for (int n=0; n<10; n++) { string res = s.Echo ("hola");