Hi all,
I thought by using webservicemessagecallback I would be able to add namespace to the envelope like this
But even before this happens I get an exception messagewebServiceTemplate.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");
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


Reply With Quote
