【发布时间】:2015-06-05 11:29:25
【问题描述】:
我是网络服务的新手。我按照 this 教程使用 JAX-WS(RPC 样式)创建了一个简单的 SOAP Web 服务,并且我想在 WebSphere 上发布我的端点。我知道我的应用在哪里:
[AUDIT ] CWWKT0016I: Web application available (default_host): http://localhost:9080/belediye-liberty/
我分配了我的发布网址,例如:
import javax.xml.ws.Endpoint;
import com.ibm.cloudoe.services.HelloImp;
//Endpoint publisher
public class HelloPub{
public static void main(String[] args) {
Endpoint.publish("http://localhost:9080/belediye-liberty/ws/hello", new HelloImp());
}
}
但我无法访问 wsdl 并收到如下错误:
[WARNING ] SRVE8093W: The servlet class name is null for the servlet named [javax.ws.rs.core.Application] so the request cannot be handled.
[WARNING ] SRVE0190E: File not found: /ws/hello
我想我以错误的方式分配 url。我该怎么做? 感谢您的帮助。
【问题讨论】:
标签: web-services jakarta-ee wsdl websphere jax-ws