Steven,

you pointed me on the right direction to fix it: since I use xml_curl, there was a not closed tag and dsn was not present on
internal profile.

Thank you very much.