문제

In grails where would you place an exposed webservice using GroovyWS plugin? Also where would you place the methods as in the example online? I feel like newing a WSServer is the wrong approach since we are working on a Spring-MVC framework.

def server = new WSServer() 
server.setNode("MathService", "http://localhost:6980/MathService") 
server.start() 

Should I be using the Apache CXF plugin instead?

올바른 솔루션이 없습니다

다른 팁

You can trying using the jaxRS plugin or just plainly expose your action for a controller via url mapping. In the action you can call a service method. You can use CXF but it would be a overkill because it uses SOAP.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top