Python中文网

一个关于 编程问题的解答网站.

有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

Java web服务客户端问题(轴错误(403)禁止)

我正在尝试访问另一家公司使用https开发的web服务。我编写了一个java客户机,但当我运行它时,我得到了以下错误:

Anybody who encountered such problem? Need a huge help!

AxisFault
 faultCode: {http://xml.apache.org/axis/}HTTP
 faultSubcode: 
 faultString: (403)403 
 faultActor: 
 faultNode: 
 faultDetail: 
  {}:return code:  403
<!doctype html><html lang="en"><head><title>HTTP Status [403] – [Forbidden]</title><style type="text/css">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;} a {color:black;} a.name {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status [403] – [Forbidden]</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Description</b> The server understood the request but refuses to authorize it.</p><hr class="line" /><h3>Apache Tomcat/8.5.15</h3></body></html>
  {http://xml.apache.org/axis/}HttpErrorCode:403

(403)403 
  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 globus.IssuingWS.IssuingSoapBindingStub.listCustomers(IssuingSoapBindingStub.java:2517)
  at globus.IssuingWS.IssuingPortProxy.listCustomers(IssuingPortProxy.java:143)
  at com.is.tieto_globuz.tieto.TclientService.getTclientsFl(TclientService.java:365)
  at com.is.tieto_globuz.tieto.PagingListModel.getPageData(PagingListModel.java:59)
  at com.is.utils.AbstractPagingListModel.<init>(AbstractPagingListModel.java:38)
  at com.is.tieto_globuz.tieto.PagingListModel.<init>(PagingListModel.java:31)
  at com.is.tieto_globuz.customer.AddCstViewCtrl.onClick$btn_fill_globuz(AddCstViewCtrl.java:2229)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
  at java.lang.reflect.Method.invoke(Unknown Source)
  at org.zkoss.zk.ui.event.GenericEventListener.onEvent(GenericEventListener.java:81)
  at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:192)
  at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138)
  at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:306)
  at org.zkoss.zk.ui.event.Events.sendEvent(Events.java:329)
  at org.zkoss.zk.ui.AbstractComponent$ForwardListener.onEvent(AbstractComponent.java:3052)
  at org.zkoss.zk.ui.impl.EventProcessor.process0(EventProcessor.java:192)
  at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:138)
  at org.zkoss.zk.ui.impl.UiEngineImpl.processEvent(UiEngineImpl.java:1626)
  at org.zkoss.zk.ui.impl.UiEngineImpl.process(UiEngineImpl.java:1410)
  at org.zkoss.zk.ui.impl.UiEngineImpl.execUpdate(UiEngineImpl.java:1134)
  at org.zkoss.zk.au.http.DHtmlUpdateServlet.process(DHtmlUpdateServlet.java:562)
  at org.zkoss.zk.au.http.DHtmlUpdateServlet.doGet(DHtmlUpdateServlet.java:457)
  at org.zkoss.zk.au.http.DHtmlUpdateServlet.doPost(DHtmlUpdateServlet.java:465)

共 (1) 个答案