我有一个简化如下的 cxf Web 服务。我的问题是,如果我像下面这样注入服务,生成的 wsdl 也会有 setParameterService/getParameterService 和 getMessageSource/setMessageSource 方法。如果我不想将它们公开为 Web 服务,我该怎么办?
@WebService(portName = "OrganizationPort", serviceName = "OrganizationService", name = "OrganizationService", targetNamespace = "http://akum.compugroup.com")
@SOAPBinding(parameterStyle = ParameterStyle.WRAPPED, use = Use.LITERAL, style = Style.DOCUMENT)
class OrganizationWebService {
def parameterService
def messageSource
static expose = EndpointType.JAX_WS
@WebMethod
@WebResult
Organization kurumSorgulama(@WebParam(partName = "KurumSorgulamaTalep", name = "KurumSorgulamaTalep", targetNamespace = "http://akum.compugroup.com") String kurumKodu) {
return organization
}
@WebMethod
@WebResult
Organization authorize(@WebParam(partName = "KurumSorgulamaTalep", name = "KurumSorgulamaTalep", targetNamespace = "http://akum.compugroup.com") String kurumKodu) {
return organization
}
}