Hi all,
I thought by using webservicemessagecallback I would be able to add namespace to the envelope like this


webServiceTemplate.sendAndReceive(new WebServiceMessageCallback(){
SaajSoapMessage ssm = (SaajSoapMessage)message;
ssm.setSoapAction(action);
SOAPMessage sm = ssm.getSaajMessage();
SOAPPart spart = sm.getSOAPPart();
SOAPEnvelope envelope = spart.getEnvelope();
envelope.addNamespaceDeclaration("xa", "XMLApi.XXX.com");
But even before this happens I get an exception message

javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The prefix "xa" for element "xa:SetFParameter" is not bound


Any suggestions how I can overcome this?

Thanks.
--Narasimha