You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Jeff Thomas (Jira)" <ji...@apache.org> on 2025/04/08 16:25:00 UTC
[jira] [Comment Edited] (AXIS2-6061) Axis2 client parses soap envolope in case of a http-404
[ https://issues.apache.org/jira/browse/AXIS2-6061?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17941943#comment-17941943 ]
Jeff Thomas edited comment on AXIS2-6061 at 4/8/25 4:24 PM:
------------------------------------------------------------
hmmm I am just going with the assumption that (i.e Tomcat) would send "text/html" or "text/xml" but a SOAP endpoint would send "application/xml" or "application/soap+xml".
Our endpoints are not all from us... some of our customer projects provide SOAP endpoints which we use and the responses come in all flavors. :/
The situation in my other ticket is that there is no running Axis2 server to accept the request - the 404 comes from Tomcat. (continuous monitoring if endpoints are available).
was (Author: JIRAUSER308863):
hmmm I am just going with the assumption that (i.e Tomcat) would send "text/html" or "text/xml" but a SOAP endpoint would send "application/xml" or "application/soap+xml".
Our endpoints are not all from us... some of our customer projects provide SOAP endpoints which we use and the responses come in all flavors. :/
> Axis2 client parses soap envolope in case of a http-404
> -------------------------------------------------------
>
> Key: AXIS2-6061
> URL: https://issues.apache.org/jira/browse/AXIS2-6061
> Project: Axis2
> Issue Type: Bug
> Components: transports
> Affects Versions: 1.8.2
> Reporter: Manfred Weiss
> Assignee: Robert Lazarski
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.0.1
>
>
> If the server returns a 404 with HTML, the client tries to parse a soap envelope and fails with:
> {code:java}
> com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'd' (code 100) after '<!' (malformed comment?){code}
> I believe the problem was introduced with this commit:
> [https://github.com/apache/axis-axis2-java-core/commit/93d54beb5186803ea7dcb4a806c88d9ae2ea774f]
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org