Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SOAP call not working on Firefox #25

Open
mongonv opened this issue Dec 15, 2015 · 2 comments
Open

SOAP call not working on Firefox #25

mongonv opened this issue Dec 15, 2015 · 2 comments

Comments

@mongonv
Copy link

mongonv commented Dec 15, 2015

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

@jfredsilva
Copy link

I have the same problem, in my case it works on chrome and iOS, but not on Android.
Where you able to fix it?

@andrewmcgivery
Copy link
Owner

Are you able to duplicate this with some kind of small demo that I could look at?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants