Seeing soap response/request

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Seeing soap response/request

plork123


Hi all

I've created a method that creats a soap header and i want to test it to
make sure the header is being created.  Please can someone help me ahieve
this.


My method

    public static String addSOAPHeader(String token) throws Exception
    {
                Service service = new Service();

                Call call = (Call)service.createCall();

                SOAPHeaderElement tokenHeader = new
SOAPHeaderElement("http://taxservice","TokenHeader");

                tokenHeader.setObjectValue(token);

                call.addHeader(tokenHeader);

                //MessageContext messagecontext = MessageContext.getCurrentContext();

                //Message message = messagecontext.getCurrentMessage();

        return token;
    }

_________________________________________________________________
Winks & nudges are here - download MSN Messenger 7.0 today!
http://messenger.msn.co.uk