A tree shouldn't just ooze sap from its trunk or branches. If it does it's either because of an injury (pruning for instance) or an infection.
Either way, I don't like the look of this. My guess is that it has a (bacterial?) infection and directly inside the trunk. I'm afraid there's not much you can do. Either it manages to save itself, or it dies a slow death.