This project is read-only.

Make SoapClient support Safari 2.0/3.0

Topics: Developer Forum, Project Management Forum
Jul 25, 2007 at 1:36 PM
Hi,

I had to make a few changes to the code in order to make it work with Safari.

I tested this on OS X 10.4.10 running Safari 2.0.4 and WinXP running Safari 3.0.2.

As you probably know, the current demo is not entirely working on Safari, so I hope my fixes will make it all work.

Changes:
Line 73:
old:
else if(o.constructor.toString().indexOf("function Array()") > -1)
new:
else if ((o.constructor.toString().indexOf("function Array()") > -1) || (o instanceof Array))

line 83:
old:
case "":
new:
case undefined: // for Safari 2.0
case "":

line 301:
old:
if(elli.attributes"name" != null && elli.attributes"type" != null)
wsdlTypesell[i].attributes["name"].value = elli.attributes"type".value;
new:
var name = elli.getAttribute("name");
var type = elli.getAttribute("type");
if(name != null && type != null) {
wsdlTypesname = type;
}