JavaScript skambinti MUILAS
JavaScrip visada norėjau skambinti tiesiogiai Xurrency.com su MUILAS, įgyvendinti valiutų kurso AJAX, rasti JavaScript SOAP klientas išbandyti. Ši mašina IE, chromuoti sėkmingai grįžti į mokyklą, firefox ir priimančiosios apie klaidą, "prieiga prie riboto URI Denied" Aš nežinau savo所以然.
Nusprendė nebegaminti. Perjungti į php soapclient + JQuery Ajax pasiekti.
JavaScript, SOAP klientas bandymų kodas yra toks:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | "-//W3C//DTD XHTML 1.0 Strict//EN" <! DOCTYPE html PUBLIC "- / / W3C / / DTD XHTML 1.0 Strict / / EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> "http://www.w3.org/1999/xhtml" lang = "en" xml : lang = "en" > <html Xmlns = "http://www.w3.org/1999/xhtml" lang = "en" xml: lang = "en"> <head> XHTML - document </ title > <Title> XHTML - dokumentas </ title> "text/javascript" src = "soapclient.js" ></ script > <script Type = "text / javascript" src = "soapclient.js"> </ script> "text/javascript" > <script Type = "text / javascript"> funkcija valiuta () ( "http://xurrency.com/servidor_soap.php" ; var url = "http://xurrency.com/servidor_soap.php"; new SOAPClientParameters ( ) ; var lt = new SOAPClientParameters (); "amount" , 5 ) ; pl. pridėti ( "suma", 5); "base" , "usd" ) ; pl. pridėti ( "bazė", "usd"); "target" , "eur" ) ; pl. pridėti ( "target", "EUR"); url , "getValue" , pl , true , Currency_callBack ) ; SOAPClient. Invoke (url, "getValue", lt, tiesa, Currency_callBack); ) r ) { funkcija Currency_callBack (r) ( r ) ; alert (r); ) </ Script> </ Head> <body> "" > <form Action = ""> button value = "Invoke" onclick = "currency();" /> <input Type = mygtuką vertė = "Invoke" onclick = "currency ();" /> </ Form> </ Body> </ Html> |











































