The conservative-liberal axis (or spectrum) is not where we should look to locate McCain. Rather than Liberal or Conservative he was... an egomaniac. And he played to whatever policies or actions boosted his self-image and furthered his ambitions.
Yep, which is why he wanted to get attention by bucking his party.