Hi, My Request [my request] just contains a simple call but is confidential:
DEBUG httpclient.wire.content - >> "<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body>[my request]</soapenv:Body></soapenv:Envelope>" The response: DEBUG org.apache.commons.httpclient.methods.EntityEnclosingMethod - Request body sent [junit] 3713 [main] DEBUG httpclient.wire.header - << "HTTP/1.1 500 Internal Server Error[\r][\n]" DEBUG httpclient.wire.content - << "<html><head><title>Apache Tomcat/5.5.23 - Error report</title><style><!--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;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 500 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>The server encountered an internal error () that prevented it from fulfilling this request.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/5.5.23</h3></body></html>" The error @ server 2008-01-31 20:30:58,697 [http-8080-Processor24] ERROR org.apache.axis2.engine.AxisEngine - SOAP header missing org.apache.axis2.AxisFault: SOAP header missing at org.apache.rampart.handler.RampartReceiver.setFaultCodeAndThrowAxisFault(RampartReceiver.java:165) at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:98) at org.apache.axis2.engine.Phase.invoke(Phase.java:317) at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131) at javax.servlet.http.HttpServlet.service(HttpServlet.java:710) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) at java.lang.Thread.run(Thread.java:595) Caused by: org.apache.rampart.RampartException: SOAP header missing at org.apache.rampart.RampartEngine.process(RampartEngine.java:99) at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:91) ... 21 more Nandana Mihindukulasooriya wrote: > Hi Stefan, > Are you using SOAP 1.1 ? Can you capture the messages > exchanged using a TCPMon and post the messages. > > thanks, > nandana > > On 5/6/08, Stefan Lischke <[EMAIL PROTECTED]> wrote: >> hi, >> >> When there are Exceptions in the Security Phase (rampart), e.g. NullPointer, >> ClassNotFound or the >> RampartException (SOAP header missing) then the answer from Axis2 seems to >> be html, cause i got the >> following Exception on client side parsing response: >> >> org.apache.axiom.soap.SOAPProcessingException: First Element must contain >> the local name, Envelope , >> but found html >> >> So any ideas why axis2 returns a HTML result? >> >> A similar bug in axis2[1] >> >> Thanx in advance >> >> Stefan >> >> [1] https://issues.apache.org/jira/browse/AXIS2-2352 >>
