web services - Soap header or http header -


have web application connects jax-ws service. want send security credentials in header. but.. know there 2 types of headers: 1) soap header, can set handler in client side 2) http header in transport layer

can explain pros , cons of setting additional information in each of these headers? best practice?

soap headers , http headers not same.

the soap headers contain routing information, authentication information , on. independent of transport soap uses. if send data web service should place inside soap headers. soap message passed receiver.

http headers contain content type, content length, cache directives clients, cookies , on. independent of transmitted http. http headers intercepted in web server.

see also:


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -