Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Groovy
Originally posted by Lasse Koskela: I believe the piece of code you posted is operating with the SOAP header, not the HTTP header...
glorias junior wrote: SOAPMessage soapMessage = MessageFactory.newInstance() MimeHeaders mimeHeader = soapMessage.getMimeHeaders(); //change header's attribute mimeHeader.setHeader("SOAPAction", "http://my.organization.org/webservices/WSSERVICE"); //if you want to add new header's attribute use: mimeHeader.addHeader(action, value)