开发者

Annotation endpoint Location for JAX-WS

开发者 https://www.devze.com 2023-01-21 12:57 出处:网络
does exist a specific annotation to define the address of the endpoint. In fact, I want to remove the attribute address in the SPring file and move the annotation directly in t开发者_C百科he impl. cla

does exist a specific annotation to define the address of the endpoint. In fact, I want to remove the attribute address in the SPring file and move the annotation directly in t开发者_C百科he impl. class.

Current:

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

@WebService public interface DataManagerService

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

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

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

Many thanks, in advance, Christophe P.


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

精彩评论

暂无评论...
验证码 换一张
取 消