« Return to Thread: SOAP headers

SOAP headers

by bug_bug_bug :: Rate this Message:

Reply to Author | View in Thread



I have component exposed with cxf inbound and has a cxf outbound as well.

the outbound WS requires a set of special fields in header for auth (this is provided by third party, so i cant change it) something like :

  <soapenv:Header>
  <wsse:Security xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/secext">
    <wsse:UsernameToken>
      <wsse:Username>UserName</wsse:Username>
      <wsse:Password>319f4d26e3c536b5dd871bb2c52e3178</wsse:Password>
    </wsse:UsernameToken>
  </wsse:Security>
</soapenv:Header>


i want to add similiar thing in my request header before i send it to outbound.

Can somebody help me to achieve this please?

i am trying out "cxf:inInterceptors" and "cxf:outInterceptors" but nowhere i could get hold of the SOAPHeader.

any help would be great.

thanks in advance

 « Return to Thread: SOAP headers