public void invoke(MessageContext context) throws Exception {
     final Namespace ns = Namespace.getNamespace("xa", "http://service.xfire.module.webservice.xa.com");
        Element el = new Element("header", ns);        Element auth = new Element("AuthenticationToken", ns);
        Element username_el = new Element("Username", ns);
        username_el.addContent(username);
        Element password_el = new Element("Password", ns);
        password_el.addContent(password);
        auth.addContent(username_el);
        auth.addContent(password_el);
        el.addContent(auth);
        context.getCurrentMessage().setHeader(el);
    }请大虾们帮帮忙,将上面代码转成C#代码,谢谢!!