Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

About encrypting a SOAPHeader in either interaction layer or processing layer

Ranch Foreman
Posts: 1922
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In EPractice lab, a question "A web service needs to encrypt certain SOAP headers when responding."
Which is true?
a. The web service interaction layer is the appropriate place for such encryption.
b. The web service processing layer is the appropriate place for such encryption
c. Either the web service interaction or processing layer is appropriate for such encryption.
d. Neither the web service interaction nor processing layer is appropriate for such encryption.

I believe the answer should be c.
According to Ivan's notes:

Responsibility of service interaction layer:
- generate and send responses to client

Responsibility of processing layer:
- contain all business logic
-generate data to be sent with the response to the client, if a response is to be given.

I think it is fine to encrypt the header when the response is to be generated in the interaction layer. It is also fine to consider the encryption should be done in the business logic implementation.

But the given answer is a.
You don't know me, but I've been looking all over the world for. Thanks to the help from this tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic