在用axis的stubs时出错:Exception in thread "main" AxisFault

来源:百度知道 编辑:UC知道 时间:2024/05/08 20:23:21
在用axis的stubs时运行客户端的JAVA代码出错:
Exception in thread "main"
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (404)/axis_example/services/MyService
faultActor:
faultNode:
faultDetail:
{}:return code: 404
<html><head><title>Apache Tomcat/5.5.20 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}

web service已经发布到服务器了不表示客户运行就没有错。你可以看看服务器(tomcat?)的log文件。还有这一行你检查过吗:

The requested resource /axis_example/services/MyService) is not available.

还有axis实在不好用,新的axis2方便多了。