【发布时间】:2018-01-07 02:55:22
【问题描述】:
我是 Spring Boot 新手,不熟悉 SOAP Web 服务的工作原理。
我正在尝试使用 Spring Boot 使用 SOAP Web 服务。我正在关注官网给出的参考:https://spring.io/guides/gs/consuming-web-service/
我的代码与参考中给出的代码完全相同。当我尝试使用mvn clean install 运行代码时,会引发以下编译错误:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project springboot-demo: Compilation fail
ure: Compilation failure:
[ERROR] C:\Users\Archit\IdeaProjects\springboot-demo\src\main\java\hello\QuoteClient.java:[9,17] error: package hello.wsdl does not exist
[ERROR] C:\Users\Archit\IdeaProjects\springboot-demo\src\main\java\hello\QuoteClient.java:[10,17] error: package hello.wsdl does not exist
[ERROR] C:\Users\Archit\IdeaProjects\springboot-demo\src\main\java\hello\QuoteClient.java:[16,11] error: cannot find symbol
[ERROR] symbol: class GetQuoteResponse
[ERROR] location: class QuoteClient
[ERROR] C:\Users\Archit\IdeaProjects\springboot-demo\src\main\java\hello\Application.java:[3,17] error: package hello.wsdl does not exist
[ERROR] C:\Users\Archit\IdeaProjects\springboot-demo\src\main\java\hello\QuoteClient.java:[18,8] error: cannot find symbol
[ERROR] symbol: class GetQuote
[ERROR] location: class QuoteClient
[ERROR] C:\Users\Archit\IdeaProjects\springboot-demo\src\main\java\hello\QuoteClient.java:[18,31] error: cannot find symbol
[ERROR] symbol: class GetQuote
[ERROR] location: class QuoteClient
[ERROR] C:\Users\Archit\IdeaProjects\springboot-demo\src\main\java\hello\QuoteClient.java:[23,8] error: cannot find symbol
[ERROR] symbol: class GetQuoteResponse
[ERROR] location: class QuoteClient
[ERROR] C:\Users\Archit\IdeaProjects\springboot-demo\src\main\java\hello\QuoteClient.java:[23,37] error: cannot find symbol
[ERROR] symbol: class GetQuoteResponse
[ERROR] location: class QuoteClient
[ERROR] C:\Users\Archit\IdeaProjects\springboot-demo\src\main\java\hello\Application.java:[25,12] error: cannot find symbol
[ERROR] -> [Help 1]
我正在运行的代码位于:https://github.com/spring-guides/gs-consuming-web-service/tree/master/complete。
【问题讨论】:
标签: web-services spring-boot soap soap-client