【问题标题】:changing the default URL i.e. http://localhost:8080/axis2/services/ in Webservices using axis使用轴更改 Web 服务中的默认 URL,即 http://localhost:8080/axis2/services/
【发布时间】:2011-08-31 01:30:02
【问题描述】:

我尝试了下面提到的链接中的 Web 服务示例

http://www.tidytutorials.com/2009/02/web-services-example-using-axis-2-and.html

在示例中,当我们使用 wsdl2java 生成客户端代码时,使用的 url 与标题中提到的一样,即http://localhost:8080/axis2/services/ 有什么方法可以使用 axis2/services 的自定义名称作为 ex。池塘/帐户

我尝试使用包,将 aar 文件保存在 services 目录中新创建的文件夹中,但无法正常工作

【问题讨论】:

  • 只是为了确定:引用:Axis2 假设您所有的服务实现都在一个名为 services 的目录中,在 WEB-INF 文件夹中。因此,如果您不更改它,则不必修改axis2.xml 文件。 (来自我发布的链接)

标签: web-services axis2


【解决方案1】:

试试这个

在axis2.xml中你会看到

<parameter name="contextRoot">axis2</parameter>

它通常被注释掉,我怀疑轴默认使用axis2。但是尝试更改它,看看是否可以解决它

我不认为您使用的是 eclipse,但如果您使用的是,它可以通过 Project Properties -> Web Project Settings 更轻松地更改上下文根

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-06
    • 2012-08-12
    • 1970-01-01
    • 1970-01-01
    • 2015-03-07
    相关资源
    最近更新 更多