File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Tomcat and SOAP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat and SOAP" Watch "Tomcat and SOAP" New topic
Author

Tomcat and SOAP

Noner Nik
Greenhorn

Joined: Sep 21, 2010
Posts: 2
I necessary to connect to information system through SOAP, require the data and then place on my WEB page.

I have Apache Tomcat 6, taglibrary 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

Code of the JSP page

-----------------------------------------------------------------------------------------------------------

<!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>


-----------------------------------------------------------------------------------------------------------

Tomcat gives mistake, when performing JSP pages: - 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://....

-----------------------------------------------------------------------------------------------------------------------

Please, where is a problem here?

Beforehand thank for answers.




Noner Nik
Greenhorn

Joined: Sep 21, 2010
Posts: 2
The problem has solved.

Problem was conditioned that, that importance url and in tag wsa:To were a miscellaneouses.

url="http://....."

<wsa:To>http://.....</wsa:To>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat and SOAP
 
Similar Threads
HeaderElements must be namespace qualified when create soap client
Axis2 and mustUnderstand
WSSE Security in SOAP HEADER
CXF, WSDL, and SecurityPolicy problems with "None of the policy alternatives can be satisfied."
Configuring the SOAP Header in client