I have created a CustomOutHandler with the following invoke method:

        public void invoke(MessageContext context) throws Exception {
                
        Element el = context.getOutMessage().getOrCreateHeader();
        final Namespace ns = Namespace.getNamespace("","http://ws.service.com";);
        el.addNamespaceDeclaration(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);
        }

Now I am trying to add the SoadHeader in the C# client that calls the XFire
webservice. I cannot figure out how to do that.

If the client were written in Java apparently I could have used
client.getProxy().addOutHandler() however given that the client is in C#
what should be the approach.

Thanks

HM
-- 
View this message in context: 
http://www.nabble.com/C--client-sending-SOAP-Headers-to-XFire-service-tf3120514.html#a8645441
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to