Skip to content

SOAP call not working on Firefox #25

Open
@mongonv

Description

@mongonv

We use this lib on our app and it works perfect on chrome and IE, but cannot get firefox to load the wsdl. Have tried debugging thru it and cannot find what is causing the problem in FF. It gets to the following lines and the wsdl variable is null:

SOAPClient._sendSoapRequest = function (url, method, parameters, async, callback, wsdl)
{
// get namespace
var ns = (wsdl.documentElement.attributes["targetNamespace"] + "" == "undefined") ?

It appears to be related to the _loadWsdl function where the xmlHttp.readyState always comes back as 1 instead of the 4 the following is looking for:

SOAPClient._loadWsdl = function (url, method, parameters, async, callback)
{
// load from cache?
var wsdl = SOAPClient_cacheWsdl[url];
if (wsdl + "" != "" && wsdl + "" != "undefined")
{
return SOAPClient._sendSoapRequest(url, method, parameters, async, callback, wsdl);
}
// get wsdl
var xmlHttp = SOAPClient._getXmlHttp();
xmlHttp.open("GET", url + "?wsdl", async);
if (async)
{
xmlHttp.onreadystatechange = function ()
{
if (xmlHttp.readyState == 4)
{
SOAPClient._onLoadWsdl(url, method, parameters, async, callback, xmlHttp);
}
}
}
xmlHttp.send(null);
if (!async)
{
return SOAPClient._onLoadWsdl(url, method, parameters, async, callback, xmlHttp);
}
};

Any thoughts or ideas would be greatly appreciated.
Ed

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions