Announcement Announcement Module
Collapse
No announcement yet.
adding namespace to the envelope Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • adding namespace to the envelope

    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
Working...
X