From ccca509c68f7726d73c5b5220a8fd6a401a4405b Mon Sep 17 00:00:00 2001 From: "rayw%netscape.com" Date: Sat, 2 Feb 2002 15:42:27 +0000 Subject: [PATCH] Converted tests to use new names for services on my soap server. SOAP is not part of default build. --- extensions/webservices/soap/tests/soapisprimenumber.html | 4 ++-- extensions/webservices/soap/tests/soapunscramble.html | 4 ++-- extensions/xmlextras/tests/soapisprimenumber.html | 4 ++-- extensions/xmlextras/tests/soapunscramble.html | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/extensions/webservices/soap/tests/soapisprimenumber.html b/extensions/webservices/soap/tests/soapisprimenumber.html index 0e37fd0fbd4..0d6b25c4778 100644 --- a/extensions/webservices/soap/tests/soapisprimenumber.html +++ b/extensions/webservices/soap/tests/soapisprimenumber.html @@ -48,13 +48,13 @@ function makeCall(value) { // The targetObjectURI, methodName and destinatioName are mandatory. // The actionURI is optional. - s.transportURI = "http://213.23.125.181:8080/RPC"; + s.transportURI = "http://ray.dsl.xmission.com:8080/soap/servlet/rpcrouter"; // Set the parameters on the call object. Note that in this case, // the last parameter is an object that will be serialized into // a struct parameter. It does not have a parameter wrapper because // we don't need it to be named - s.encode(0, "isPrimeNumber", "urn:SpheonJSOAPStatistics", 0, null, 1, new Array(new SOAPParameter(value,"number"))); + s.encode(0, "isPrime", "http://soaptests.mozilla.org/isprime", 0, null, 1, new Array(new SOAPParameter(value,"number"))); if (currentCall != null) { currentCall.abort(); } document.getElementById("NUMBER").style.color="black"; diff --git a/extensions/webservices/soap/tests/soapunscramble.html b/extensions/webservices/soap/tests/soapunscramble.html index 0183ab1aa87..3cb37b0bfca 100644 --- a/extensions/webservices/soap/tests/soapunscramble.html +++ b/extensions/webservices/soap/tests/soapunscramble.html @@ -50,7 +50,7 @@ function makeCall(language,word) { // the last parameter is an object that will be serialized into // a struct parameter. It does not have a parameter wrapper because // we don't need it to be named - s.encode(0, "unscramble", "http://ray.dsl.xmission.com/dictionary", 0, null, + s.encode(0, "unscramble", "http://soaptests.mozilla.org/unscramble", 0, null, 2, new Array(new SOAPParameter(language,"language"), new SOAPParameter(word,"word"))); if (currentCall != null) { currentCall.abort(); } document.getElementById('BUTTON').value = "Wait..."; @@ -68,7 +68,7 @@ function loadLanguages() // the last parameter is an object that will be serialized into // a struct parameter. It does not have a parameter wrapper because // we don't need it to be named - s.encode(0, "languages", "http://ray.dsl.xmission.com/dictionary", 0, null, 0, null); + s.encode(0, "languages", "http://soaptests.mozilla.org/unscramble", 0, null, 0, null); if (currentCall != null) { currentCall.abort(); } var list = s.invoke(oncompletion).getParameters(false, {})[0].value; for (i = 0; i < list.length; i++) { diff --git a/extensions/xmlextras/tests/soapisprimenumber.html b/extensions/xmlextras/tests/soapisprimenumber.html index 0e37fd0fbd4..0d6b25c4778 100644 --- a/extensions/xmlextras/tests/soapisprimenumber.html +++ b/extensions/xmlextras/tests/soapisprimenumber.html @@ -48,13 +48,13 @@ function makeCall(value) { // The targetObjectURI, methodName and destinatioName are mandatory. // The actionURI is optional. - s.transportURI = "http://213.23.125.181:8080/RPC"; + s.transportURI = "http://ray.dsl.xmission.com:8080/soap/servlet/rpcrouter"; // Set the parameters on the call object. Note that in this case, // the last parameter is an object that will be serialized into // a struct parameter. It does not have a parameter wrapper because // we don't need it to be named - s.encode(0, "isPrimeNumber", "urn:SpheonJSOAPStatistics", 0, null, 1, new Array(new SOAPParameter(value,"number"))); + s.encode(0, "isPrime", "http://soaptests.mozilla.org/isprime", 0, null, 1, new Array(new SOAPParameter(value,"number"))); if (currentCall != null) { currentCall.abort(); } document.getElementById("NUMBER").style.color="black"; diff --git a/extensions/xmlextras/tests/soapunscramble.html b/extensions/xmlextras/tests/soapunscramble.html index 0183ab1aa87..3cb37b0bfca 100644 --- a/extensions/xmlextras/tests/soapunscramble.html +++ b/extensions/xmlextras/tests/soapunscramble.html @@ -50,7 +50,7 @@ function makeCall(language,word) { // the last parameter is an object that will be serialized into // a struct parameter. It does not have a parameter wrapper because // we don't need it to be named - s.encode(0, "unscramble", "http://ray.dsl.xmission.com/dictionary", 0, null, + s.encode(0, "unscramble", "http://soaptests.mozilla.org/unscramble", 0, null, 2, new Array(new SOAPParameter(language,"language"), new SOAPParameter(word,"word"))); if (currentCall != null) { currentCall.abort(); } document.getElementById('BUTTON').value = "Wait..."; @@ -68,7 +68,7 @@ function loadLanguages() // the last parameter is an object that will be serialized into // a struct parameter. It does not have a parameter wrapper because // we don't need it to be named - s.encode(0, "languages", "http://ray.dsl.xmission.com/dictionary", 0, null, 0, null); + s.encode(0, "languages", "http://soaptests.mozilla.org/unscramble", 0, null, 0, null); if (currentCall != null) { currentCall.abort(); } var list = s.invoke(oncompletion).getParameters(false, {})[0].value; for (i = 0; i < list.length; i++) {