Generally Irish expression with the implications:
1) To joke with someone, to say
something without intending it.
2) (Similarly), To lie in an obvious manner.
1) E.g "The guy said I was a dick, but I knew he was taking the
piss".
2) E.g "The driver told the
Police that he was sober, they said "You're taking the
piss" and arrested him.