Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> JS i SOAP, soap pod różnymi przeglądarkami.
mat3u
post
Post #1





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 29.12.2003
Skąd: OHIO

Ostrzeżenie: (0%)
-----


Witam,

szukam stron, przykładów opisujących korzystanie z SOAP w JS. Znalazłem na googlach jak to zrobic pod mozillą. I napisałem prosty skrypt :

Kod
function news(){
var p = new Array();
    //p[0] = new SOAPParameter(0, 'news');
    
var method = "get_news";
var soap = new SOAPCall();
var uri = "http://localhost/~mat3u/soap";
soap.transportURI = uri + "/1.php";
soap.encode(0,method,"urn:xmethods-news",0,null,p.length,p);

var translation = soap.invoke();

    if(translation.fault){
      // error returned from the web service
      window.alert(translation.fault.faultString);
    } else {
      // we expect only one return SOAPParameter - the translated string.
      var response = new Array();
      response = translation.getParameters(false, {});
  var test = document.getElementById("MainPage");
  test.innerHTML = response[0].value;
    }
}


jednak nie wiem jak to zrobić pod innymi przeglądarkami (IMG:http://forum.php.pl/style_emoticons/default/worriedsmiley.gif) . Ten kod nie działa pod IE (nic dziwnego (IMG:http://forum.php.pl/style_emoticons/default/tongue.gif) ). Na googlach znajduje tylko szczątkowe informacje na ten temat. Czy ktoś zna jakies opisy, strony, ew. książki na ten temat. Temat SOAP pod mozillą też mnie interesuje, szczególnie manuale lub coś takiego, ale zadowole się wszelkimi artykułami. (IMG:http://forum.php.pl/style_emoticons/default/guitar.gif)

Z góry THX.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.12.2025 - 01:26