none
Custom Webservices RRS feed

  • Frage

  • Dear all,

       i am working i ms crm 4.0. I am trying to write a custom workflow for some requirements. I have used jQuery before to get the values from js file which i placed in a path. But now i am trying to write a custom workflow to get the performance effectively.

    Is it possible to call webservices inside the clientside scripting like as we call the jQuery function which is stored in outside path.

    ie. For calling the jQuery from outside, we can use the following code on the OnLoad event:

    function load_script (url)
    {
        var x = new ActiveXObject("Msxml2.XMLHTTP");
        x.open('GET', url, false);
        x.send('');
        eval(x.responseText);
        var s = x.responseText.split(/\n/);
        var r = /^function\s*([a-z_]+)/i;
        for (var i = 0; i < s.length; i++)
       {
            var m = r.exec(s[i]);
            if (m != null)
            window[m[1]] = eval(m[1]);
        }
    }

    load_script("/_customscript/fethchxml.js");

    After using this, we can call the function inside that js file..

    Like the above methos, is there any method to call the webservices methods from ouside..

    please help me..


    Regards

    Arun

    Montag, 16. November 2009 13:35

Antworten

Alle Antworten