Description
If there is empty elements in the SOAP message, the builder fails to extract SOAP body
Here is the message for which it fails:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://www.w3.org/2005/08/addressing"><soapenv:Header><ReplyTo customer:level="premium" xmlns="http://www.w3.org/2005/08/addressing" xmlns:customer="http://example.org/customer"><wsa:Address xmlns:wsa="http://www.w3.org/2005/08/addressing">http://www.w3.org/2005/08/addressing/none</wsa:Address><wsa:ReferenceParameters customer:level="premium" xmlns:wsa="http://www.w3.org/2005/08/addressing"><customer:CustomerKey xmlns:customer="http://example.org/customer">Key#123456789</customer:CustomerKey></wsa:ReferenceParameters><wsa:Metadata customer:total="1" xmlns:customer="http://example.org/customer" xmlns:wsa="http://www.w3.org/2005/08/addressing"/><customer:Metadata xmlns:customer="http://example.org/customer"><customer:extraStuff>This should be ignored.</customer:extraStuff></customer:Metadata></ReplyTo><wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://222.165.178.239:9090/axis2/services/wsa_test_svc</wsa:To><wsa:Action xmlns:wsa="http://www.w3.org/2005/08/addressing">http://example.org/action/notify</wsa:Action><wsa:MessageID xmlns:wsa="http://www.w3.org/2005/08/addressing">uuid:A1861687-010A-4000-E000-0D94C0A8005E</wsa:MessageID></soapenv:Header><soapenv:Body><m:notify xmlns:m="http://example.org/notify">test1108</m:notify></soapenv:Body></soapenv:Envelope>
If I remove the tag "<wsa:Metadata customer:total="1" xmlns:customer="http://example.org/customer" xmlns:wsa="http://www.w3.org/2005/08/addressing"/>" it works