cancel
Showing results for 
Search instead for 
Did you mean: 

Spring Web Service integrated into Alfresco

uvukasinovic
Champ on-the-rise
Champ on-the-rise
I created Spring Web Service(spring-ws) from existing WSDL file. I am able to expose it and test it with SOAP UI.

Via CMIS this service is able to connect and communicate with Alfresco. So, everything is clear with that solution.


But, I have a problem, if I want to put it inside Alfresco Repo AMP(Maven SDK Alfresco 4.2.f) and deploy together spring-ws and repo amp.

Because, I have to edit web.xml and put inside MessageDispatcherServlet and servlet-mapping.

Is there any elegant solution to extend web.xml? Or, do you have some advice about these solutions?

Thanks.
1 REPLY 1

angelborroy
Community Manager Community Manager
Community Manager
We use to include our customized
web.xml
inside a Repo Maven AMP artifact, using
/project/repo-custom/src/main/amp/web/WEB-INF/web.xml
and deploying using
-force
option with
apply_amps
.

Another option is to use @WebServlet (https://docs.oracle.com/javaee/6/api/javax/servlet/annotation/WebServlet.html) and not to modify original
web.xml
at all.
Hyland Developer Evangelist