Java Web Service客户端问题(Axis Error-(403)Forbidden)

时间:2018-06-21 06:00:12

标签: java web-services tomcat webservice-client

我正在尝试使用https访问另一家公司开发的Web服务。我写了一个Java客户端,但是当我运行它时,出现以下错误:

  

有人遇到这样的问题吗?需要巨大的帮助!

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)