// javascript proxy for SOAP based web services
// by Matthias Hertel
/* A WebService for the calculation of prime factors. */

proxies.CalcService = {
url: "/AJAXEngine/S02_AJAXCoreSamples/CalcService.asmx",
ns: "http://www.mathertel.de/CalcFactors/"
} // proxies.CalcService

/* inputMessageName='HelloWorldSoapIn', outputMessageName='HelloWorldSoapOut'  */


/** Say hello to the world. */

proxies.CalcService.HelloWorld = function () { return(proxies.callSoap(arguments)); }
proxies.CalcService.HelloWorld.fname = "HelloWorld";
proxies.CalcService.HelloWorld.service = proxies.CalcService;
proxies.CalcService.HelloWorld.action = "\"http://www.mathertel.de/CalcFactors/HelloWorld\"";
proxies.CalcService.HelloWorld.params = ["who"];
proxies.CalcService.HelloWorld.rtype = ["HelloWorldResult"];

/* inputMessageName='SlowWorldSoapIn', outputMessageName='SlowWorldSoapOut'  */


/** Wast a lot of time, but no cpu. */

proxies.CalcService.SlowWorld = function () { return(proxies.callSoap(arguments)); }
proxies.CalcService.SlowWorld.fname = "SlowWorld";
proxies.CalcService.SlowWorld.service = proxies.CalcService;
proxies.CalcService.SlowWorld.action = "\"http://www.mathertel.de/CalcFactors/SlowWorld\"";
proxies.CalcService.SlowWorld.params = ["duration:int"];
proxies.CalcService.SlowWorld.rtype = ["SlowWorldResult"];

/* inputMessageName='AddIntegerSoapIn', outputMessageName='AddIntegerSoapOut'  */


/** Add 2 numbers. */

proxies.CalcService.AddInteger = function () { return(proxies.callSoap(arguments)); }
proxies.CalcService.AddInteger.fname = "AddInteger";
proxies.CalcService.AddInteger.service = proxies.CalcService;
proxies.CalcService.AddInteger.action = "\"http://www.mathertel.de/CalcFactors/AddInteger\"";
proxies.CalcService.AddInteger.params = ["number1:int","number2:int"];
proxies.CalcService.AddInteger.rtype = ["AddIntegerResult:int"];

/* inputMessageName='AddDoubleSoapIn', outputMessageName='AddDoubleSoapOut'  */


/** Add 2 doubles. */

proxies.CalcService.AddDouble = function () { return(proxies.callSoap(arguments)); }
proxies.CalcService.AddDouble.fname = "AddDouble";
proxies.CalcService.AddDouble.service = proxies.CalcService;
proxies.CalcService.AddDouble.action = "\"http://www.mathertel.de/CalcFactors/AddDouble\"";
proxies.CalcService.AddDouble.params = ["number1:float","number2:float"];
proxies.CalcService.AddDouble.rtype = ["AddDoubleResult:float"];

/* inputMessageName='CalcPrimeFactorsSoapIn', outputMessageName='CalcPrimeFactorsSoapOut'  */


/** Calculate all prime factors of a given number. */

proxies.CalcService.CalcPrimeFactors = function () { return(proxies.callSoap(arguments)); }
proxies.CalcService.CalcPrimeFactors.fname = "CalcPrimeFactors";
proxies.CalcService.CalcPrimeFactors.service = proxies.CalcService;
proxies.CalcService.CalcPrimeFactors.action = "\"http://www.mathertel.de/CalcFactors/CalcPrimeFactors\"";
proxies.CalcService.CalcPrimeFactors.params = ["inputText"];
proxies.CalcService.CalcPrimeFactors.rtype = ["CalcPrimeFactorsResult"];

/* inputMessageName='CalcPrimeFactors2SoapIn', outputMessageName='CalcPrimeFactors2SoapOut'  */


/** Calculate all prime factors of a given number. */

proxies.CalcService.CalcPrimeFactors2 = function () { return(proxies.callSoap(arguments)); }
proxies.CalcService.CalcPrimeFactors2.fname = "CalcPrimeFactors2";
proxies.CalcService.CalcPrimeFactors2.service = proxies.CalcService;
proxies.CalcService.CalcPrimeFactors2.action = "\"http://www.mathertel.de/CalcFactors/CalcPrimeFactors2\"";
proxies.CalcService.CalcPrimeFactors2.params = ["number:int"];
proxies.CalcService.CalcPrimeFactors2.rtype = ["CalcPrimeFactors2Result"];

/* inputMessageName='SlowCalcPrimeFactorsSoapIn', outputMessageName='SlowCalcPrimeFactorsSoapOut'  */


/** Calculate all prime factors of a given number with a slow response. 
Use this method if your CPU is too fast. */ proxies.CalcService.SlowCalcPrimeFactors = function () { return(proxies.callSoap(arguments)); } proxies.CalcService.SlowCalcPrimeFactors.fname = "SlowCalcPrimeFactors"; proxies.CalcService.SlowCalcPrimeFactors.service = proxies.CalcService; proxies.CalcService.SlowCalcPrimeFactors.action = "\"http://www.mathertel.de/CalcFactors/SlowCalcPrimeFactors\""; proxies.CalcService.SlowCalcPrimeFactors.params = ["inputText"]; proxies.CalcService.SlowCalcPrimeFactors.rtype = ["SlowCalcPrimeFactorsResult"];