我想使用以下Soap Web服务创建Java中的SpringBoot应用程序:
@WebService
public class HelloWorld
{
@WebMethod
public String sayHello(String name)
{
return "Hello world, " + name;
}
}
Run Code Online (Sandbox Code Playgroud)
我想获取WSDL ...我想必须创建端点或映射服务?我怎样才能做到这一点?
如果没有spring-boot,它会起作用,因为WEB-INF文件夹中的文件带有以下代码:
@WebService
public class HelloWorld
{
@WebMethod
public String sayHello(String name)
{
return "Hello world, " + name;
}
}
Run Code Online (Sandbox Code Playgroud)
和
<endpoints xmlns='http://java.sun.com/xml/ns/jax-ws/ri/runtime' version='2.0'>
<endpoint name='HelloWorld' implementation='web.service.soap.HelloWorld' url-pattern='/HelloWorld'/>
</endpoints>
Run Code Online (Sandbox Code Playgroud)