This project is read-only.

possible to consume a external webservice?

Jan 17, 2011 at 9:43 AM

Is it possible to post and get result to a external webservice? And is there a example available?

I want to make a module that can communicate with a microsoft crm webservice, or do i have to create a .dll for that?

Jan 17, 2011 at 10:16 AM


I did implement a little module that acts as a webservice client for a remote ws, just writing mdo methods I needed in custom c# files.

More precisely:

  1. I generated classes from the wsdl, using visual studio
  2. with those classes, I wrote and tested my methods
  3. I then included methods in Findy.XsltDb namespace (see below), and added my file under /App_Code/XsltDb
  4. after that, I can call my methods from XsltDb just like mdo:methodname


namespace Findy.XsltDb
    public partial class Helper
        public string SvcLogin(string user, string password)
            string authToken = "";
            return authToken;




In my xslt:

<xsl:variable name="token" select="mdo:SvcLogin('user','pwd')" />

Hope this helps.



Jan 17, 2011 at 1:21 PM


There is a sample of communicating to ASP.NET web service

Web service parameters can be transferred via GET (as parameters in URL that you pass to document() function).

In more complex cases you'd better use Alberto's aproach, given above.

Jan 17, 2011 at 1:24 PM

Hmm, yes i understand parts of it, i'm not a programmer in nature :)

I like to process a form and post that to a external webservice. The form part is not the problem but the submitting to a webservice is. Is there a more complete example possible?

Jan 17, 2011 at 3:52 PM

I've add a sample request here.

Please vote for it. Maybe MS guys will make a sample for us. If they will I definitely incorporate it in XsltDb and you will get a complete framework for ASP.NET web services.

Jan 17, 2011 at 8:14 PM

I;ve completed the first part of the task, i'll put the webservice code in here tomorrow when i'm on the job.