Fixes to the test.
SOAP is not part of default build. git-svn-id: svn://10.0.0.236/trunk@112438 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
e7eda6ecb5
commit
3a3a1492b1
@ -16,6 +16,7 @@ user interfaces such as the one in this test.
|
||||
// Passed in as the response handler in the asynchronous case
|
||||
// and called directly (see below) in the synchronous case
|
||||
function oncompletion(resp, call, status) {
|
||||
document.getElementById('BUTTON').value = "Call";
|
||||
if (status != 0) {
|
||||
alert("Error completion: " + status);
|
||||
return true;
|
||||
@ -32,8 +33,10 @@ function oncompletion(resp, call, status) {
|
||||
}
|
||||
else {
|
||||
var ret = resp.getParameters(false, {});
|
||||
var val = ret[0].value;
|
||||
alert(val);
|
||||
nw = window.open();
|
||||
nw.document.open();
|
||||
nw.document.write(ret[0].value);
|
||||
nw.document.close();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@ -51,9 +54,10 @@ function makeCall(value) {
|
||||
// a struct parameter. It does not have a parameter wrapper because
|
||||
// we don't need it to be named
|
||||
s.encode(0, "ProcessSRL", "http://www.SoapClient.com/xml/SQLDataSoap.xsd", 0, null,
|
||||
1, new Array(new SOAPParameter("/xml/news.sri","SRLFile")),
|
||||
new Array(new SOAPParameter(value,"RequestName")));
|
||||
if (currentCall != null) { currentCall.abort(); }
|
||||
2, new Array(new SOAPParameter("/xml/news.sri","SRLFile"),
|
||||
new SOAPParameter(value,"RequestName")));
|
||||
if (currentCall != null) { currentCall.abort(); }
|
||||
document.getElementById('BUTTON').value = "Wait...";
|
||||
currentCall = s.asyncInvoke(oncompletion);
|
||||
|
||||
}
|
||||
@ -62,15 +66,15 @@ function makeCall(value) {
|
||||
<FORM>
|
||||
|
||||
<SELECT ID=SERVICE SIZE="1" name="RequestName">
|
||||
<OPTION VALUE="7am">7am</option>
|
||||
<OPTION VALUE="news">News.com</option>
|
||||
<OPTION VALUE="newslinx">Newslinx</option>
|
||||
<OPTION VALUE="reuters" SELECTED>Reuters</option>
|
||||
<OPTION VALUE="sv">SilliconValley</option>
|
||||
<OPTION VALUE="techweb">Techweb</option>
|
||||
<OPTION VALUE="yahoo">Yahoo</option>
|
||||
<OPTION VALUE="7am">7am</OPTION>
|
||||
<OPTION VALUE="news">News.com</OPTION>
|
||||
<OPTION VALUE="newslinx">Newslinx</OPTION>
|
||||
<OPTION VALUE="reuters" SELECTED>Reuters</OPTION>
|
||||
<OPTION VALUE="sv">SilliconValley</OPTION>
|
||||
<OPTION VALUE="techweb">Techweb</OPTION>
|
||||
<OPTION VALUE="yahoo">Yahoo</OPTION>
|
||||
</SELECT>
|
||||
|
||||
<INPUT TYPE="button" VALUE="Call" ONCLICK="makeCall(document.getElementById('SERVICE').value);">
|
||||
<INPUT ID=BUTTON TYPE="button" VALUE="Call" ONCLICK="makeCall(document.getElementById('SERVICE').value);">
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
@ -16,6 +16,7 @@ user interfaces such as the one in this test.
|
||||
// Passed in as the response handler in the asynchronous case
|
||||
// and called directly (see below) in the synchronous case
|
||||
function oncompletion(resp, call, status) {
|
||||
document.getElementById('BUTTON').value = "Call";
|
||||
if (status != 0) {
|
||||
alert("Error completion: " + status);
|
||||
return true;
|
||||
@ -32,8 +33,10 @@ function oncompletion(resp, call, status) {
|
||||
}
|
||||
else {
|
||||
var ret = resp.getParameters(false, {});
|
||||
var val = ret[0].value;
|
||||
alert(val);
|
||||
nw = window.open();
|
||||
nw.document.open();
|
||||
nw.document.write(ret[0].value);
|
||||
nw.document.close();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@ -51,9 +54,10 @@ function makeCall(value) {
|
||||
// a struct parameter. It does not have a parameter wrapper because
|
||||
// we don't need it to be named
|
||||
s.encode(0, "ProcessSRL", "http://www.SoapClient.com/xml/SQLDataSoap.xsd", 0, null,
|
||||
1, new Array(new SOAPParameter("/xml/news.sri","SRLFile")),
|
||||
new Array(new SOAPParameter(value,"RequestName")));
|
||||
if (currentCall != null) { currentCall.abort(); }
|
||||
2, new Array(new SOAPParameter("/xml/news.sri","SRLFile"),
|
||||
new SOAPParameter(value,"RequestName")));
|
||||
if (currentCall != null) { currentCall.abort(); }
|
||||
document.getElementById('BUTTON').value = "Wait...";
|
||||
currentCall = s.asyncInvoke(oncompletion);
|
||||
|
||||
}
|
||||
@ -62,15 +66,15 @@ function makeCall(value) {
|
||||
<FORM>
|
||||
|
||||
<SELECT ID=SERVICE SIZE="1" name="RequestName">
|
||||
<OPTION VALUE="7am">7am</option>
|
||||
<OPTION VALUE="news">News.com</option>
|
||||
<OPTION VALUE="newslinx">Newslinx</option>
|
||||
<OPTION VALUE="reuters" SELECTED>Reuters</option>
|
||||
<OPTION VALUE="sv">SilliconValley</option>
|
||||
<OPTION VALUE="techweb">Techweb</option>
|
||||
<OPTION VALUE="yahoo">Yahoo</option>
|
||||
<OPTION VALUE="7am">7am</OPTION>
|
||||
<OPTION VALUE="news">News.com</OPTION>
|
||||
<OPTION VALUE="newslinx">Newslinx</OPTION>
|
||||
<OPTION VALUE="reuters" SELECTED>Reuters</OPTION>
|
||||
<OPTION VALUE="sv">SilliconValley</OPTION>
|
||||
<OPTION VALUE="techweb">Techweb</OPTION>
|
||||
<OPTION VALUE="yahoo">Yahoo</OPTION>
|
||||
</SELECT>
|
||||
|
||||
<INPUT TYPE="button" VALUE="Call" ONCLICK="makeCall(document.getElementById('SERVICE').value);">
|
||||
<INPUT ID=BUTTON TYPE="button" VALUE="Call" ONCLICK="makeCall(document.getElementById('SERVICE').value);">
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user