注:我無法找到這個問題的直接答案,所以我將以下文檔解答我的解答作爲答案。AXIS錯誤:在這個位置沒有SOAP服務
我使用Axis 1.4和 axistools-maven-plugin
從wsdl生成了web服務的服務器端部分。軸心國的servlet映射到/services/*
,將 服務在WEB-INF/server-config.wsdd
配置如下:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<service name="TestService" style="document" use="literal">
<namespace>http://example.com/testservier</namespace>
<parameter name="className" value="com.example.TestServiceImpl"/>
<parameter name="allowedMethods" value="*"/>
<parameter name="scope" value="Session"/>
</service>
</deployment>
當我部署此Web應用程序到Tomcat和訪問 http://localhost:8080/testservice/services
的部署服務的列表是 返回。
And now... Some Services
- TestService (wsdl)
- TestService
點擊wsdl
應該返回說明對這一服務,但會導致下面的錯誤頁面:
AXIS error
Could not generate WSDL!
There is no SOAP service at this location
Horstmann但我們該如何打開server-config.wsdd文件?我現在正在遇到一模一樣的問題。 – user3841581 2016-11-25 11:51:36