зеркало из https://github.com/mozilla/pjs.git
Converted tests to use new names for services on my soap server.
SOAP is not part of default build.
This commit is contained in:
Родитель
3d38f01ebc
Коммит
ccca509c68
|
@ -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";
|
||||
|
|
|
@ -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++) {
|
||||
|
|
|
@ -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";
|
||||
|
|
|
@ -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++) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче