I am trying to send XML message to Swift Alliance Access(SAA). My sample xml message is like below. But I am getting "Invalid XML prefix" error message. When I check the XML against XSD. It says valid. The error message says it may be related to SAA message partner or xml content, but I couldn't find a solution.
Maybe the situation is not related to XML. I just want to make sure there is no problem with the XML. SAA Message Partner configuration can also cause this.
What could I be missing?
XSD file is too big. I can upload it if anyone wants to see it.
<Saa:DataPDU xmlns:Saa="urn:swift:saa:xsd:saa.2.0">
<Saa:Revision>2.0.13</Saa:Revision>
<Saa:Header>
<Saa:Message>
<Saa:SenderReference>12345678</Saa:SenderReference>
<Saa:MessageIdentifier>pacs.008.001.08</Saa:MessageIdentifier>
<Saa:Format>MX</Saa:Format>
<Saa:SubFormat>Input</Saa:SubFormat>
<Saa:Sender>
<Saa:BIC12>XXXXXXXXXXXX</Saa:BIC12>
</Saa:Sender>
<Saa:Receiver>
<Saa:BIC12>YYYYYYYYYYYY</Saa:BIC12>
</Saa:Receiver>
</Saa:Message>
</Saa:Header>
</Saa:DataPDU>
An error occured while decoding XML data. Check the message partner configuration or the file content. Context = SerializerException ErrorMessafe = decodePDU: "Invalid XML Prefix"