Could not generate WSDL! There is no SOAP service at this location 求解决方案

macchiatoo 2015-10-24 08:00:52
错误提示:Could not generate WSDL!

There is no SOAP service at this location


问题详情:

发布Webservice 网站,能够成功发布并看到wsdl文件结构(地址是http://localhost:8080/wsserver/services/Hello?wsdl)
Hello.java里面有两个方法分别为sayHello 和selectUser ,想在浏览器上调用该方法,我是这样写的(不知道对不对):
http://localhost:8080/wsserver/services/Hello/sayHello?name=aaa
name是sayHello的参数。

然后网页返回错误信息:
AXIS error

No service is available at this URL
------------------------
然后我调用selectUser方法试试:
http://localhost:8080/wsserver/services/Hello/selectUser?wsdl
网页返回的错误信息:
AXIS error

Could not generate WSDL!

There is no SOAP service at this location


这些都是什么啊,本人小白完全不懂。。(连地址怎么写都不确定。。)


-------------------------
第二个错误信息在网上找的解决办法似乎没用,说是在.wsdl中添加:
<transport name="http">
<requestFlow>
<handler type="java:org.apache.axis.handlers.http.URLMapper"/>
</requestFlow>
</transport>

仔细看了一下.wsdl文件中似乎有相似的节,感觉不是他的问题。

下面贴一下代码
...全文
1037 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
macchiatoo 2015-10-24
  • 打赏
  • 举报
回复
没人解救小的吗。。
macchiatoo 2015-10-24
  • 打赏
  • 举报
回复
server-config.wsdl: <ns1:deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" xmlns:ns1="http://xml.apache.org/axis/wsdd/"> <ns1:globalConfiguration> <ns1:parameter name="sendMultiRefs" value="true"/> <ns1:parameter name="disablePrettyXML" value="true"/> <ns1:parameter name="adminPassword" value="admin"/> <ns1:parameter name="attachments.Directory" value="D:\apache-tomcat-8.0.15\webapps\wsserver\WEB-INF\attachments"/> <ns1:parameter name="dotNetSoapEncFix" value="true"/> <ns1:parameter name="enableNamespacePrefixOptimization" value="false"/> <ns1:parameter name="sendXMLDeclaration" value="true"/> <ns1:parameter name="sendXsiTypes" value="true"/> <ns1:parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/> <ns1:requestFlow> <ns1:handler type="java:org.apache.axis.handlers.JWSHandler"> <ns1:parameter name="scope" value="session"/> </ns1:handler> <ns1:handler type="java:org.apache.axis.handlers.JWSHandler"> <ns1:parameter name="scope" value="request"/> <ns1:parameter name="extension" value=".jwr"/> </ns1:handler> </ns1:requestFlow> </ns1:globalConfiguration> <ns1:handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/> <ns1:handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/> <ns1:handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/> <ns1:service name="AdminService" provider="java:MSG"> <ns1:parameter name="allowedMethods" value="AdminService"/> <ns1:parameter name="enableRemoteAdmin" value="false"/> <ns1:parameter name="className" value="org.apache.axis.utils.Admin"/> <ns1:namespace>http://xml.apache.org/axis/wsdd/</ns1:namespace> </ns1:service> <ns1:service name="Hello" provider="java:RPC" style="wrapped" use="literal"> <ns2:operation name="sayHello" qname="ns1:sayHello" returnQName="ns1:sayHelloReturn" returnType="xsd:string" soapAction="" xmlns:ns1="http://com" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns2="http://xml.apache.org/axis/wsdd/"> <ns2:parameter qname="ns1:name" type="xsd:string"/> </ns2:operation> <ns1:operation name="selectUser" qname="ns2:selectUser" returnQName="ns2:selectUserReturn" returnType="xsd:string" soapAction="" xmlns:ns2="http://com" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/> <ns1:parameter name="allowedMethods" value="sayHello selectUser"/> <ns1:parameter name="typeMappingVersion" value="1.2"/> <ns1:parameter name="wsdlPortType" value="Hello"/> <ns1:parameter name="className" value="com.Hello"/> <ns1:parameter name="wsdlServicePort" value="Hello"/> <ns1:parameter name="schemaQualified" value="http://com"/> <ns1:parameter name="wsdlTargetNamespace" value="http://com"/> <ns1:parameter name="wsdlServiceElement" value="HelloService"/> </ns1:service> <ns1:service name="Version" provider="java:RPC"> <ns1:parameter name="allowedMethods" value="getVersion"/> <ns1:parameter name="className" value="org.apache.axis.Version"/> </ns1:service> <ns1:transport name="http"> <ns1:requestFlow> <ns1:handler type="URLMapper"/> <ns1:handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/> </ns1:requestFlow> <ns1:parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/> <ns1:parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/> <ns1:parameter name="qs.list" value="org.apache.axis.transport.http.QSListHandler"/> <ns1:parameter name="qs.method" value="org.apache.axis.transport.http.QSMethodHandler"/> <ns1:parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/> <ns1:parameter name="qs.wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/> </ns1:transport> <ns1:transport name="local"> <ns1:responseFlow> <ns1:handler type="LocalResponder"/> </ns1:responseFlow> </ns1:transport> </ns1:deployment>
YOLO高分设计资源源码,详情请查看资源内容中使用说明 YOLO高分设计资源源码,详情请查看资源内容中使用说明 YOLO高分设计资源源码,详情请查看资源内容中使用说明 YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明YOLO高分设计资源源码,详情请查看资源内容中使用说明

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧