Changes to match new IDL.

Not part of default build.


git-svn-id: svn://10.0.0.236/trunk@109140 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rayw%netscape.com 2001-11-28 19:04:02 +00:00
parent 233b7897cf
commit 7d0a856ad7
2 changed files with 10 additions and 12 deletions

View File

@ -39,8 +39,7 @@ function makeCall(syncCall, faultCall) {
var s = new SOAPCall();
// The targetObjectURI, methodName and destinatioName are mandatory.
// The actionURI is optional.
s.targetObjectURI = "uri:some-namespace";
s.methodName = "GetLastTradePrice";
if (faultCall) {
s.transportURI = "http://blueviper/cgi-bin/soapfault.cgi";
}
@ -52,8 +51,8 @@ function makeCall(syncCall, faultCall) {
// Create parameter objects. This is needed if we want named parameters.
// If we don't want them to be named, we can just pass the
// raw JavaScript values into the setParameters method.
var p1 = new SOAPParameter("foo", "a string");
var p2 = new SOAPParameter("bar", 4);
var p1 = new SOAPParameter("a string", "foo");
var p2 = new SOAPParameter(4, "bar");
var p3 = new SOAPParameter();
p3.name = "baz";
p3.value = true;
@ -71,7 +70,7 @@ function makeCall(syncCall, faultCall) {
// 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.setParameters(p1, p2, p3, p4, new Dog("Fido", "Lab", "Black"));
s.encode("GetLastTradePrice", "uri:some-namespace", 0, null, 5, new Array(5, p1, p2, p3, p4, new SOAPParameter(new Dog("Fido", "Lab", "Black"))));
if (syncCall) {
var r = s.invoke();
@ -88,4 +87,4 @@ function makeCall(syncCall, faultCall) {
<INPUT TYPE="button" VALUE="Async call" onclick="makeCall(false, false);">
<INPUT TYPE="button" VALUE="Fault call" onclick="makeCall(true, true);">
</BODY>
</HTML>
</HTML>

View File

@ -39,8 +39,7 @@ function makeCall(syncCall, faultCall) {
var s = new SOAPCall();
// The targetObjectURI, methodName and destinatioName are mandatory.
// The actionURI is optional.
s.targetObjectURI = "uri:some-namespace";
s.methodName = "GetLastTradePrice";
if (faultCall) {
s.transportURI = "http://blueviper/cgi-bin/soapfault.cgi";
}
@ -52,8 +51,8 @@ function makeCall(syncCall, faultCall) {
// Create parameter objects. This is needed if we want named parameters.
// If we don't want them to be named, we can just pass the
// raw JavaScript values into the setParameters method.
var p1 = new SOAPParameter("foo", "a string");
var p2 = new SOAPParameter("bar", 4);
var p1 = new SOAPParameter("a string", "foo");
var p2 = new SOAPParameter(4, "bar");
var p3 = new SOAPParameter();
p3.name = "baz";
p3.value = true;
@ -71,7 +70,7 @@ function makeCall(syncCall, faultCall) {
// 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.setParameters(p1, p2, p3, p4, new Dog("Fido", "Lab", "Black"));
s.encode("GetLastTradePrice", "uri:some-namespace", 0, null, 5, new Array(5, p1, p2, p3, p4, new SOAPParameter(new Dog("Fido", "Lab", "Black"))));
if (syncCall) {
var r = s.invoke();
@ -88,4 +87,4 @@ function makeCall(syncCall, faultCall) {
<INPUT TYPE="button" VALUE="Async call" onclick="makeCall(false, false);">
<INPUT TYPE="button" VALUE="Fault call" onclick="makeCall(true, true);">
</BODY>
</HTML>
</HTML>