cancel
Showing results for 
Search instead for 
Did you mean: 

Howto create custom Web Service with web scripts

svast
Champ on-the-rise
Champ on-the-rise
Hi there, I'm totally new to Alfresco, for please forgive my newbee question:

As far as I could see, Web scripts look like a great way for expanding Alfresco API, and creating business oriented custom APIs.
So are born "URL services".

What about Web Services? Is it possible to do WebService (answer to SOAP requests) with WebScripts?

I am asking this because I can not find a way to create easily a custom WebService (SOAP based) with Alfresco.
Is there any guru around here to enlight the track?

Many thanks
1 REPLY 1

pmonks
Star Contributor
Star Contributor
While it is possible, you'd have to parse the incoming SOAP messages yourself (in the Web Script controller) which I think would be difficult in Javascript, and only marginally easier in Java.  That said, it's worth considering since extending the Alfresco SOAP API is not trivial either.

Returning SOAP messages is easy - simply configure your Freemarker template with a canned SOAP message template and fill in the blanks based on what the Javascript controller passes to it.

Cheers,
Peter