我用axis发布webservice服务,设置完用户名和密码后有在tomcat下访问没有问题,我讲class发不到WebLogic下时,报AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (401)Unauthorized
faultActor:
faultNode:
faultDetail:
{}:return code: 401
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode xmlns:ns1="http://xml.apache.org/axis/">ns1:Server.Unauthenticated</faultcode><faultstring>User 'null' not authenticated (unknown user)</faultstring><detail><ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">richsoft-15cf78</ns2:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
{http://xml.apache.org/axis/}HttpErrorCode:401
(401)Unauthorized
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:744)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:144)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at client.TestClient.ceshi(TestClient.java:55)
at client.TestClient.main(TestClient.java:65)
当把服务中的用户名密码去掉之后可以直接访问,据说是因为WebLogic下的jar包和axis下的jar冲突,急求解决办法
------解决方案--------------------------------------------------------
该回复于2010-04-19 08:15:37被版主删除
------解决方案--------------------------------------------------------
非要用Web Service不可吗?
------解决方案--------------------------------------------------------
貌似说的是axis访问的用户密码问题