Added restriction for direclty calling XmlOperation and SerialOperation