找不到端点映射

时间:2019-10-22 09:39:10

标签: spring-boot

找不到SaajSoapMessage {http://techprimers.com/spring-boot-soap-example} getUserRequest

的端点映射

//端点类的代码

@Endpoint
public class UserEndPoint {

    @Autowired
     private UserService userService;

    @PayloadRoot(namespace = "https://techprimers.com/spring-boot-soap-example", localPart = "getUserRequest")
    @ResponsePayload
    public GetUserResponse getUserRequest(@RequestPayload GetUserRequest request) {
         System.out.println("UserEndpoint");
         GetUserResponse getUserResponse = new GetUserResponse();
         getUserResponse.setName(userService.getUsers(request.getName()));
         return getUserResponse;
     }
}

0 个答案:

没有答案