Severe: server returned error code = 401 for Uri: http: // xxxx/myservice. asmx. Check server logs for details
16:14:50 org. Apache. Catalina. Core. standardwrappervalve invoke
Severe: 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)
Error cause:
Check whether the name of your service. XML is the same as that of namespace. Here is an example:
<? 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>