Announcement Announcement Module
Collapse
No announcement yet.
Question about adding custom header within doWithMessage Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Question about adding custom header within doWithMessage

    Hi All,
    I read previous posts about how to add custom header using Transformer.

    But I keep getting

    Caused by: org.xml.sax.SAXParseException: The prefix "abcd" for element "abcd:Request" is not bound.

    I tried to declare this additional namespace in soap envelope and in the same line. Still not working.

    I am using Java 1.5.0_22 and Spring WS 1.5.9

    Anyone see this "not bound" before? Thanks in advance.

  • #2
    You could do this in an interceptor. You can get the soap header of the request which has methods for adding soap headers. I believe it will figure out the namespace issues for you. Look at the SoapMessage and SoapHeader classes. If you use those they should sort out the namespaces for you.

    Comment

    Working...
    X