January 2009

To set HTTP header in a SOAP message :

SOAPConnectionFactory factory = SOAPConnectionFactory.newInstance();

SOAPConnection soapConnection =factory.createConnection();

SOAPMessage message = MessageFactory.newInstance().createMessage(null,yourInputStream);

message.getMimeHeaders().addHeader("header name", "header value");

soapConnection.call(message, "server url");


some time you need to change the author name of the files you create by eclipse rather than the system user name.

to do so:

1- open eclipse.ini file in the eclipse directory.

2- add the following line after -vmargs line

-Duser.name=your name