Annotation Endpoint JAX-WS Location

There is a specific annotation for determining the endpoint address. In fact, I want to remove the attribute address in the SPring file and transfer the annotation directly to impl. class.

Current:

jaxws: endpoint id = "dataManagerEndPoint" executor = "# dataManagerService" address = "/datamanager/v1.0"

@WebService open interface DataManagerService

I would like to change (if possible) ...

jaxws: endpoint id = "dataManagerEndPoint" executor = "# dataManagerService"

@WebService @EndPointAddress ("/datamanager/v1.0") public interface DataManagerService

Thank you very much in advance Christoph P.

+3
1
@WebService(portName = "PortTypeName", serviceName = "ServiceName", targetNamespace = "http://www.namespace.com", wsdlLocation = "META-INF/wsdlname.wsdl", endpointInterface = "com.package.service.PortTypeName")
0

Source: https://habr.com/ru/post/1770722/


All Articles