Hello,

I'm trying to use the SOAP api and the XPCOM object WebServiceProxyFactory, but when i use the following code, i get the error :"proxy.soap_Login() is not a function". I read many time the WSDL (I'm perhaps blind ^_^) but I can see no errors. Can someon help me please ?

The WSDL : http://soap.organizedplay.com/PublicOPLoginService/PublicOPLoginService.asmx?WSDL

The Code :

    var proxy= null;

    function CallAmazon (aValue){
      if (!proxy) {
        document.getElementById('container').innerHTML = "Proxy !";
        var listener = {
          onLoad: function (aProxy)
          {
            proxy = aProxy;
            proxy.setListener(listener);
            login(aValue);
            document.getElementById('container').innerHTML = "onLoad !";
          },
          onError: function (aError)
          {
            alert(aError);
          },

          soap_LoginCallback : function (aResult)
          {
            var myResult = aResult.soap_LoginResponse;
            document.getElementById('container').innerHTML = "Results !";
          }
        };

        createProxy(listener);
      } else {
          login(aValue);
      }
    }

    function createProxy(aCreationListener)
    {
      try {
        var factory = new WebServiceProxyFactory();

factory.createProxyAsync("http://soap.organizedplay.com/PublicOPLoginService/PublicOPLoginService.asmx?WSDL";, "PublicOPLoginServiceSoap", "", true, aCreationListener);
}
catch (ex) {
alert("test "+ ex);
}
}


    function login(value)
    {
      if (proxy) {

netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
        var Soap_Log = new Object();
        Soap_Log.User_Name="login";
        Soap_Log.User_Password="pass";
        proxy.soap_Login();
      }
      else {
        alert("Error: Proxy set up not complete!");
      }
    }
_______________________________________________
Mozilla-xpcom mailing list
[EMAIL PROTECTED]
http://mail.mozilla.org/listinfo/mozilla-xpcom

Reply via email to