Loading ...
Sorry, an error occurred while loading the content.
 

Re: [ydn-javascript] Calling SOAP WebService.

Expand Messages
  • [Softrack] Tartaise Philippe
    An exemple is on YUIblog, i see a man make the SOAP message, but it s quite difficult to use. For me i use another .js there is :
    Message 1 of 3 , Mar 6, 2008
      An exemple is on YUIblog, i see a man make the SOAP message, but it's quite difficult to use.
      For me i use another .js there is : http://www.codeproject.com/KB/ajax/JavaScriptSOAPClient.aspx
      it's a good script who decode response by the wsdl.
      you have to make some change for pass a object instead of a function. But in my project that's work very well
      After the changes, you can do something like that:
      var pl = new SOAPClientParameters();
             pl.add("id",...);
             pl.add("price",...);
             var callback = {
             success: function(o)
             {
                                                      //o is an object with a value return who have the return object
                                                      // use the scope for actions :  like this.scope.value = o['return'].value;
      }
      ,failure: function( o )
      {
      // do something with your failure.
      },
                      scope: this
                      };
             SOAPClient.invoke("wsdlUrl", "method", pl, true, callback);
      I hope that's help you






      Le vendredi 25 janvier 2008 à 15:18 +0000, sinsiddhartha a écrit :
      Hi!

      With YUI, will I be able to get data from SOAP webservices? Is there a
      way to call SOAP WebService and bind data to datatable?

      Thanks




    Your message has been successfully submitted and would be delivered to recipients shortly.