Username_for_consumer.xml file order

I was getting this error doing a web service call with WS Security

SOAPException: [ISS.0088.9135] A WMDocument Exception was thrown in the server, usually because an XML block was not well-formed

I found that the order in which the Username tag and the Timestamp tags in the Username_for_consumer.xml file made a difference. The file is in the ./IntegrationServer/config/policy directory.

was

                    <UsernameToken
                            PasswordType="Text"/>
    
                    
                            
            </OutboundSecurity>

changed to.

                    <UsernameToken
                            PasswordType="Text"/>
    
                    <Timestamp
                            TimeToLiveInSeconds="300"
                            IncludeMilliseconds="True"/>

                            
            </OutboundSecurity>

I was then able to make successful WS Security calls. Just wondering if anyone else knew about this. If not maybe it will help someone else in the future.