webservice报错 Server returned error code = 401 for URI

原创 2012年03月27日 19:22:20
严重: Server returned error code = 401 for URI : http://xxxx/MyService.asmx. Check server logs for details
2008-8-28 16:14:50 org.apache.catalina.core.StandardWrapperValve invoke
严重: Servlet.service() for servlet jsp threw exception
org.codehaus.xfire.XFireRuntimeException: Server returned error code = 401 for URI : http://xxxxxx. Check server logs for details
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:130)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:114)
at org.codehaus.xfire.client.Client.invoke(Client.java:336)
at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)

at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)


错误原因:

看你的service.xml的name和namespace的名字是不是相同了,我这里有一个例子:
<?xml version="1.0" encoding="UTF-8"?>
<beans>
  <service xmlns="http://xfire.codehaus.org/config/1.0">
    <name>ICategoryService2W</name>
    <namespace>http://127.0.0.1:8080/admin/services/</namespace>
    <serviceClass>com.xx.ecm.category.ICategoryService2W</serviceClass>
    <implementationClass>com.xx.ecm.category.managerimpl.CategoryService2W</implementationClass>
  </service>
</beans>

org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Server returned error code = 40

严重: Servlet.service() for servlet jsp threw exception org.codehaus.xfire.XFireRuntimeException: Cou...

XFire实现webservice的相关错误记录

1.客户端通过调用服务端的窄接口实现类方法时出现,如下错误信息: org.codehaus.xfire.XFireRuntimeException: Could not invoke service...

Android 打包几种报错情况和解决办法proguard returned with error code 1.

第一种情况: Proguard returned with error code 1. See console  Error: C:/Documents (系统找不到指定文件)  后来发现是因为将整个...

Eclipse中Reasons for Java was Started but Returned Exit Code=13 Error

Before going to the solution, let us know why it is showing that error. If you know the problem behi...

The development server returned response error code: 500 in react-native

写ReactNative应用时遇到:The development server returned response error code: 500,经查看是由于某个modules不在modules ...

Server returned HTTP response code: 500 for URL解决方法

最近在做web service相关的东西,老师的作业题如下: 开发一个Java类,手工编写WSDL文档,并打包发布到Axis容器;客户端调用程序:基于Socket或HTTP库,自己构造SOAP调用报...

Server returned HTTP response code: 500 for URL: http.......错误

在前不久做一个项目需要调用第三方接口,但一直报Server returned HTTP response code: 500 for URL: http.......错误,经过调试接口可正常调用并返回...

java.io.IOException: Server returned HTTP response code: 500 for URL

java.io.IOException: Server returned HTTP response code: 500 for URL java.io.IOException: Server ret...

Eclipse启动报错 java was started but returned code=14

由于项目原因进行了JDK版本的升级,升级后发现Eclipse跑不起来,启动弹出如下错: 无法启动。从网上反馈的资料显示主要有以下几个方面的原因: (1) 安装路径中有中文; (2) 下载的版本跟...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:webservice报错 Server returned error code = 401 for URI
举报原因:
原因补充:

(最多只允许输入30个字)