Since the rules are a bit unclear concerning this situation, I suggest the following:
If a creature is summoned during combat, you do not get XP for it.
If a creature is summoned out of combat, you get full XP for it because you could not prevent the summoning and have an additional opponent...