Tomcat и SOAP
В наличии Apache Tomcat 6 и библиотека jakarta-taglibs-io-20060829.zip.
29.08.2006 03:14 109я898 io-doc.war
29.08.2006 03:14 60я280 io-examples.war
29.08.2006 03:14 27я343 taglibs-io.jar
29.08.2006 03:14 15я857 taglibs-io.tld
код JSP страницы
-----------------------------------------------------------------------------------------------------------
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<%@ taglib uri="/WEB-INF/taglibs-io.tld" prefix="io" %>
<io:soap
url="http://..."
SOAPAction="http://...">
<io:body>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header><SourceInfo xmlns="+http://....+">
</soap:Header>
<soap:Body>
....
</soap:Body>
</soap:Envelope>
</io:body>
</io:soap>
-----------------------------------------------------------------------------------------------------------
При выполнии JSP страницы Tomcat сервером возникает ошибка - Server returned HTTP response code: 405 for URL
HTTP Status 500 -
--------------------------------------------------------------------------------
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: javax.servlet.ServletException: javax.servlet.jsp.JspException: Server returned HTTP response code: 405 for URL: http://...
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:527)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:401)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
javax.servlet.ServletException: javax.servlet.jsp.JspException: Server returned HTTP response code: 405 for URL: http://...
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:862)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791)
org.apache.jsp.Processing_jsp._jspService(Processing_jsp.java:305)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
javax.servlet.jsp.JspException: Server returned HTTP response code: 405 for URL: http://....
-----------------------------------------------------------------------
Подскажите по какой причине может возникать данная ошибка?
Заранее благодарю за ответы.
Проблема была зарыта в том, что
значение url и в теге wsa:To были разными
url="http://....."
<wsa:To>http://.....</wsa:To>