欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

java 调用webservice 报 No service named XXXXHttpSoap11Endpoint is availab异常 博客分类: java javawebserviceConfigurationExceptionNo service namedavailable 

程序员文章站 2024-03-26 13:11:53
...

服务能正常使用,但是每次调用后台输出如下异常:

 

[wasrv] 2015-10-30 20:29:01 :Exception: 

org.apache.axis.ConfigurationException: No service named  XXXXHttpSoap11Endpoint is available

org.apache.axis.ConfigurationException: No service named  XXXXHttpSoap11Endpoint is available

at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)

at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)

at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)

at org.apache.axis.client.Call.invoke(Call.java:2671)

at org.apache.axis.client.Call.invoke(Call.java:2424)

at org.apache.axis.client.Call.invoke(Call.java:2347)

at org.apache.axis.client.Call.invoke(Call.java:1804)

at com.tc.dz.service.generate. XXXXSoap11BindingStub.add( XXXXSoap11BindingStub.java:263)

at com.tc.dz.service.generate. XXXXTestCase.add( XXXXTestCase.java:148)

at com.tc.dz.service.CallService.add(CallService.java:48)

at com.tc.wa.biz.GenInfo.getInfo(GenInfo.java:109)

at com.tc.wa.biz.GenInfo.main(GenInfo.java:136)

 

at org.apache.axis.configuration.FileProvider.getService(FileProvider.java:233)

at org.apache.axis.AxisEngine.getService(AxisEngine.java:311)

at org.apache.axis.MessageContext.setTargetService(MessageContext.java:755)

at org.apache.axis.client.Call.invoke(Call.java:2671)

at org.apache.axis.client.Call.invoke(Call.java:2424)

at org.apache.axis.client.Call.invoke(Call.java:2347)

at org.apache.axis.client.Call.invoke(Call.java:1804)

at com.tc.dz.service.generate. XXXXSoap11BindingStub.add( XXXXSoap11BindingStub.java:263)

at com.tc.dz.service.generate. XXXXTestCase.add( XXXXTestCase.java:148)

at com.tc.dz.service.CallService.add(CallService.java:48)

at com.tc.wa.biz.GenInfo.getInfo(GenInfo.java:109)

at com.tc.wa.biz.GenInfo.main(GenInfo.java:136)

 

解决办法:

在log4j 配置文件 log4j.properties 中增加如下信息:

log4j.logger.org.apache.axis.ConfigurationException = INFO

 

参考链接:

http://*.com/questions/65310/apache-axis-configurationexception

http://www.iteye.com/problems/49610