什么是部署的JAX-WS服务的默认URL

时间:2014-02-27 11:48:27

标签: java jetty jax-ws

我需要将基于JEE的Web服务移植到普通的spring / maven / JAX-WS / jetty。我收到现有项目作为模板。它编译和部署,但我面临着愚蠢的问题:如何找到,部署服务的位置?

服务端点接口:

@WebService(name = "myService")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL,    parameterStyle = SOAPBinding.ParameterStyle.BARE)
public interface MyEndpoint {

实现:

@SchemaValidation
@WebService(endpointInterface = "package.MyEndpoint",
        portName = "MyServicePort", serviceName = "myService")
public class MyEndpointImpl implements MyEndpoint {

Jetty启动日志:

[INFO] --- maven-jetty-plugin:6.1.24:run (default-cli) @ MyBackend ---
[INFO] Configuring Jetty for project: MyBackend Maven Webapp
[INFO] Webapp source directory = D:\Dev\prototypy\MyBackend\src\main\webapp
[INFO] Reload Mechanic: automatic
[INFO]  jetty-env.xml = D:\Dev\prototypy\MyBackend\src\main\resources\jetty\jetty-env.xml
[INFO] Classes = D:\Dev\prototypy\MyBackend\target\classes
[INFO] Logging to org.slf4j.impl.SimpleLogger(org.mortbay.log) via org.mortbay.log.Slf4jLog
[INFO] Context path = /my-ws
[INFO] Tmp directory =  determined at runtime
[INFO] Web defaults = org/mortbay/jetty/webapp/webdefault.xml
[INFO] Web overrides =  none
[INFO] web.xml file = D:\Dev\prototypy\MyBackend\src\main\webapp\WEB-INF\web.xml
[INFO] Webapp directory = D:\Dev\prototypy\MyBackend\src\main\webapp
[INFO] Starting jetty 6.1.24 ...
[INFO] jetty-6.1.24
[INFO] No Transaction manager found - if your webapp requires one, please configure one.
[INFO] Started SelectChannelConnector@0.0.0.0:8080
[INFO] Started Jetty Server

我尝试了所有组合,但我总是收到404错误

http://localhost:8080/my-ws/myService
http://localhost:8080/my-ws/myEndpoint
http://localhost:8080/my-ws/MyEndpoint

如何查找已部署端点的默认URI?感谢

0 个答案:

没有答案