Forum Discussion
xmlns="" is causing rejection on BIG-IP ASM
Dear sirs, we are facing a rejection by F5-ASM when the below SOAP XML request (received from the client side):
http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
is changed into :
http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
The sole difference is that: xmlns="" attribute was added to the element. Kindly advise on how to solve it, knowing that we do not have control on the sending party program to force it not to insert the [xmlns=""] into the tag.
The error reported is: Malformed document - Schema validation failed
Thanks and regards
Dear sirs, I found the reason behind the rejection.
It was simply because the element is not under namespace ";; and that is why it needs to have an attribute of [xmlns=""] in order to work correctly.
Its parent element (sendOTP) had the attribute of "xmlns=";; thus affecting its child element namespace.
Sorry sirs,
I was wrong. It is the other way round.
The rejection occurs when removing the [xmlns=""] attribute from the element.
To re-clarify:
works fine
does not work
Sorry for this.
Regards,
did you upload a schema / template XML?
which version of ASM (TMOS)?
Yes I've uploaded a flattened wsdl file. It is BIG-IP ASM v12.1.2
- Simon_BlakelyEmployee
Mountazar,
It looks to me that those SOAP request are incomplete, as there are no closing elements for the and elements.
Without the entire request it is difficult to determine if the syntax is valid XML.
Please repost the entire working an non-working request for comparison, and take care with the formatting (enclose the entire request using the code tag) so it is clear exactly what the SOAP request is.
Thanks
Dear S, I found the reason behind the rejection.
It was simply because the element is not under namespace "; and that is why it needs to have an attribute of [xmlns=""] in order to work correctly. Its parent element (sendOTP) had the attribute of "xmlns="; thus affecting its child element namespace.
Thank you anyway for your willing to help.
Kind regards, Mountazar
Dear sirs, I found the reason behind the rejection.
It was simply because the element is not under namespace ";; and that is why it needs to have an attribute of [xmlns=""] in order to work correctly.
Its parent element (sendOTP) had the attribute of "xmlns=";; thus affecting its child element namespace.
- Simon_BlakelyEmployee
Good spot - I recommend using an XML validation tool tool to check out problematic requests to ensure that they do validate correctly.
And this is what I did.
I used:
https://www.codeproject.com/KB/webservices/SoapValidator/SoapValidator.zip
Thank you
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com