var soap_div=""; if(soap_div==""){var d=new Date;soap_div = 'sfsoap_'+Math.floor(Math.random()*9999);var e=document.createElement('div');e.id=soap_div;var f=document.getElementsByTagName("body")[0];f.appendChild(e);} setTimeout("a('FooterGlobal','"+soap_div+"','');",30); function a(b,c,f){ if(typeof SOAPObject=='undefined'){setTimeout("a('"+b+"','"+c+"','"+f+"');",30); return;} var soapBody = new SOAPObject("getCatalogEntry"); //Create a new object that we want to send to a web service //CatalogService soapBody.ns = {name:"ns1",uri:"urn:localhost-catalog"}; var soapParam = new SOAPObject("catalogId").attr("xsi:type","xsd:string").val(b); //Setting value of that object soapBody.appendChild(soapParam); var sr = new SOAPRequest("", soapBody); //Request is now ready to be sent to a web-service sr.addNamespace("ns1", "urn:localhost-catalog"); sr.addNamespace("xsd", "http://www.w3.org/2001/XMLSchema"); sr.addNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance"); SOAPClient.Proxy = "http://sfarchive.org/api/proxy.php?_type=jsonp"; //Specify web-service address (if local to your domain) or a proxy file SOAPClient.SOAPServer = "http://sfarchive.org/api/soap-server.php"; //My proxy uses SOAPServer header to redirect my requests var d = "pr"+c+Math.floor(Math.random()*9999); eval("function "+d+"(respObj){var txt = '';try{ obj = respObj.Body[0].getCatalogEntryResponse[0]; txt = obj['return'][0].Text;}catch(e){}if('"+c+"'!=''){$('#"+c+"')[0].innerHTML =txt;}if('"+f+"' != undefined && '"+f+"'=='LINK_CSS'){var a,b,c;a=txt;b=document.getElementsByTagName('head')[0];c=document.createElement('link');c.type = 'text/css'; c.rel='stylesheet';c.media='screen';c.href=a;b.appendChild(c);}}"); SOAPClient.SendRequest(sr, eval(d)); //Send request to server and assign callback function }