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 "jian yang (Jira)" <ji...@apache.org> on 2019/11/14 14:11:00 UTC
[jira] [Created] (AXIS2-5973) How to remove the extra empty tag
in soap fault envelop
jian yang created AXIS2-5973:
--------------------------------
Summary: How to remove the extra empty tag <soapenv:Header/> in soap fault envelop
Key: AXIS2-5973
URL: https://issues.apache.org/jira/browse/AXIS2-5973
Project: Axis2
Issue Type: Improvement
Components: transports
Affects Versions: 1.7.9, 1.7.7, 1.7.6
Reporter: jian yang
After following uplift:
* Axiom API current version 1.2.14 (Dec, 2012), uplifted to version in MVN Repository 1.2.22 (Jan, 2019)
* Apache Axis2 current version 1.6.3 (Jun, 2015), uplifted to version in MVN Repository 1.7.9 (Nov, 2018)
we found there is a extra empty tag <soapenv:Header/> in the soap fault envelop:
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="[http://schemas.xmlsoap.org/soap/envelope/]">
*<soapenv:Header/>*
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Client</faultcode>
<faultstring>FaultException</faultstring>
<detail>
...
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
It is not a error as <*soapenv:Header*> is optional. But this extra empty tag failed many test cases and might impact customer as well.
Why this behavior changed to send such empty tag <*soapenv:Header/*> (comparing to 1.6.4)?
Is there some options for axis2 user to get rid of this extra <*soapenv:Header/*> if it is empty?
Regards,
Jian
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org