Calling an ASP.net web service

Calling an ASP.net web service

par Paul Walsh,
Nombre de réponses : 4

I would like to call an ASP.NET web service from Moodle. Can anybody offer any advice. Thanks, P.

Moyenne des évaluations: -
En réponse à Paul Walsh

Re: Calling an ASP.net web service

par Howard Miller,
Avatar Core developers Avatar Documentation writers Avatar Particularly helpful Moodlers Avatar Peer reviewers Avatar Plugin developers
By definition, it shouldn't matter that it's asp.net. However, there are lots of different web service protocols so you need to understand the spec for the one you want to call.

Next you need to write the Moodle client side and put it somewhere sensible. All that depends on what the web service does of course.

Really - lots more information is needed to give you any sort of sensible advice.
En réponse à Howard Miller

Re: Calling an ASP.net web service

par Paul Walsh,

Fair enough. I just want to call a simple ASP.NET 3.5 SOAP Version 1.1 based web service. Web service is for authenticating login id and password pair input parameters and it returns a boolean. I was hoping that there might be some samples?

En réponse à Paul Walsh

Re: Calling an ASP.net web service

par Howard Miller,
Avatar Core developers Avatar Documentation writers Avatar Particularly helpful Moodlers Avatar Peer reviewers Avatar Plugin developers
Well, you should find some examples of using SOAP in PHP. There are SOAP libraries in Moodle already. The next step is to write your own authentication plugin to do this. You can pretty much grab one of the existing ones and modify it.

You don't say which version of Moodle - Moodle 2 has a lot more web service stuff than 1.9 and earlier.