l-ra / openeet

EET Client library - open source implementation of client library for EET
Apache License 2.0
36 stars 19 forks source link

SOAP signature is not valid #2

Closed VeselyJan92 closed 8 years ago

VeselyJan92 commented 8 years ago

I cloned project and I am getting ERR SOAP signature is not valid, do you have any idea how to fix it?

l-ra commented 8 years ago

Could you please elaborate more on the issue? Which platform (Java, C#, Shell). What is your code example?

VeselyJan92 commented 8 years ago

So the first problem is formatting of amounts in XML, java uses locale formatting if there isn´t Locale parametr in a format method therefore in XML there is parametr: celk_trzba="100,00", which use Czech sign you need to use: String.format(Locale.US, "%.2f", amount) in order to get a dot. And the second problem I haven´t figure out yet. It is in: assertTrue(validateXmlDSig(signed, data.getCertificate()));, But I didn't change anything else except the amount method.

VeselyJan92 commented 8 years ago

Solved for those who use IntelliJ when you clone project you need to change manually line separators to LF for all templates.

l-ra commented 8 years ago

Bad issue mentioned in closing commit.