在WebSphere上发布Web服务 [英] Publishing Web Service on WebSphere

查看:267
本文介绍了在WebSphere上发布Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Web服务的新手。我通过以下 这个 教程,我想在WebSphere上发布我的端点。我知道我的应用程序在哪里:

I am pretty new in web services. I created a simple SOAP web service with JAX-WS (RPC style) by following this tutorial and I want to publish my endpoint on WebSphere. I know where my app is:

[AUDIT   ] CWWKT0016I: Web application available (default_host): http://localhost:9080/belediye-liberty/

我分配了我的发布网址:

and I assigned my publish url like:

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并收到如下错误:

But I cannot access wsdl and getting an error like:

[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

我想我是以错误的方式分配网址。我该怎么做?
感谢您的帮助。

I guess I am assigning url in a wrong way. How should I do this? Thanks for help.

推荐答案

部署时必须选择部署Web服务选项第1页

You have to select Deploy Webservice option while deploy in Step1 page

这篇关于在WebSphere上发布Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆