• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

dumb question regarding when to use SAAJ

 
Vinod Iyer
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I came across below question in a mock test

You need to implement a Java attachments API that will enable developers to produce and consume messages conforming to the SOAP 1.1 specification and SOAP with attachments.

Which is the correct API to implement?

A JAXB
B StAX
C SAAJ
D JAXP

The answer provided is SAAJ but I doubt it, if i understand the question correctly it states that developers needs to produce and consume messages conforming to SOAP1.1 and SOAP with attachments.

JAXP uses SAAJ internally and it is more capable to handle SOAP messages, from what I understand is SAAJ is only for attachment support in SOAP. Hence JAXP is more appropriate according to me.

Am i missing something very obvious ?




 
dharmendra gahlot
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't why is this confusion?

JAXP provides API for XML processing. JAXP does not provide API for attachment.
SAAJ is SOAP with Attachment API for java. It means SAAJ attach an attachment with SOAP messaging capability.
so surely SAAJ is the correct option.
 
Vinod Iyer
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
dharmendra gahlot wrote:I don't why is this confusion?

JAXP provides API for XML processing. JAXP does not provide API for attachment.
SAAJ is SOAP with Attachment API for java. It means SAAJ attach an attachment with SOAP messaging capability.
so surely SAAJ is the correct option.


Yeah correct I just messed up big time. Dont know what was going on in my mind, I was reading JAXP and thinking JAX-WS.

Thanks anyways
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic