I haven't tested the following code in awhile, but it worked
once upon a time.
function getDataSourceChildNodes(id) {
if (! parent.sessionId)
getSessionId();
// build up array of parameters to call with
var parameterInArray = new Array();
var sessionIdParameter = new SOAPParameter(parent.sessionId,
"sessionId");
var idParameter = new SOAPParameter(id, "dataSourceId");
parameterInArray[0] = sessionIdParameter;
parameterInArray[1] = idParameter;
// prepare soap call
var soapCall = new SOAPCall();
soapCall.transportURI = "http://" + location.hostname +
"/TheDataWeb_Services/servlet/AxisServlet";
soapCall.actionURI = "getDataSourceChildNodes";
soapCall.encode(0, "getDataSourceChildNodes", "urn:ferrett", 0, null,
parameterInArray.length, parameterInArray);
// make the call
var soapResponse = soapCall.invoke();
// test for fault
var soapFault = soapResponse.fault;
if (soapFault != null) {
var faultNameSpace = soapFault.faultNamespace;
var faultCode = soapFault.faultCode;
var faultSummary = soapFault.faultString;
var faultActor = soapFault.actorURI;
alert("getDataSourceChildNodes failed: " + faultSummary);
return null;
}
// get response parameters
var parameterOutArray = soapResponse.getParameters(false, {});
if (parameterOutArray.length != 1) {
alert("wrong number of returned parameters, expected 1, found " +
parameterOutArray.length);
return null;
}
var response = parameterOutArray[0];
return response.value;
}
On Mon, 2002-12-02 at 17:22, [EMAIL PROTECTED] wrote:
> In fact the SOAP spec requires the SOAPAction header for SOAP over HTTP.
> The header need not contain a value, but it must exist. A constant source
> of interoperability issues between SOAP implementations is the value of
> this header.
>
> Cheers
>
> ADK
>
> --------------------------------------------
>
> There is no magic.
>
>
>
>
> Roy Wood
>
> <roy.wood@filo To: <[EMAIL PROTECTED]>
>
> gix.com> cc:
>
> Subject: Mozilla?
>
> 03/12/2002
>
> 08:45
>
> Please respond
>
> to axis-user
>
>
>
>
>
>
>
>
>
> I'm trying to use Mozilla and its built-in SOAP support to access a
> service I've set up (Axis + TomCat), but I keep getting a "no SOAPAction
> Header error" error back. I took a look, and Mozilla doesn't seem to
> send a SOAPAction Header, and apparently Axis requires this.
>
> Anyone else have any experience using Mozilla to invoke SOAP services?
>
>
> -Roy
>
>
>
>
>
>
>-----------------------------------------------------------------------------------------------
> Have you seen our website?.... http://www.vodafone.co.nz
>
> CAUTION: This correspondence is confidential and intended for the named recipient(s)
>only.
> If you are not the named recipient and receive this correspondence in error, you
>must not copy,
> distribute or take any action in reliance on it and you should delete it from your
>system and
> notify the sender immediately. Thank you.
>
> Unless otherwise stated, any views or opinions expressed are solely those of the
>author and do
> not represent those of Vodafone New Zealand Limited.
>
> Vodafone New Zealand Limited
> 21 Pitt Street, Private Bag 92161, Auckland, 1020, New Zealand
> Telephone + 64 9 357 5100
> Facsimile + 64 9 377 0962
--
Heitzso <[EMAIL PROTECTED]>
MetaMedia, Inc.