通过wsdl调用Web服务方法

时间:2013-06-18 04:01:46

标签: java web-services jsp jboss

我有一个通过wsdl调用Web服务方法的Web应用程序。 wsdl url通过Web浏览器成功浏览,但通过部署在jboss服务器中的Web应用程序调用webservice时出现以下异常。

Stacktrace:
    Org. apache. jasper. servlet. JspServletWrapper. handleJspException (JspServletWrapper.java: 504)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause 
com.sun.xml.ws.client.ClientTransportException: The server sent HTTP status code 403: Forbidden
    com.sun.xml.ws.transport.http.client.HttpTransportPipe.checkStatusCode(HttpTransportPipe.java:222)
    com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:179)
    com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:93)
    com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:105)
    com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
    com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
    com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
    com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
    com.sun.xml.ws.client.Stub.process(Stub.java:319)
    com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:157)
    com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)

提前致谢。

0 个答案:

没有答案