Java Web Services Developer SAAJ Ing. Lennon Shimokawa Miyashiro
SAAJ SOAP with Attachments API for Java Usado por JAX-WS Es un API que puede usarse cuando se construyen los mensajes SOAP directamente Permite escribir y recibir mensajes SOAP javax.xml.soap
Estándares SAAJ SOAP 1.1 y 1.2 SOAP with Attachments
Overview Los mensajes SAAJ siguen el estándar SOAP El API SAAJ permite construir mensajes SOAP 1.1 y 1.2 Mensajes: sin attachments y con attachments
Messages with no Attachments
Message with Attachments
SAAJ y DOM DOM: Document Object Model SAAJ API extiende las clases de DOM Node interface extends the org.w3c.dom.Node interface. SOAPElement interface extends both the Node interface and the org.w3c.dom.Element interface. SOAPPart class implements the org.w3c.dom.Document interface. Text interface extends the org.w3c.dom.Text interface.
SAAJ Connections Los mensajes SAAJ son enviados y recibidos en una conexión SOAPConnection Conexión punto-a-punto, request- response
SAAJ API MessageFactory factory = MessageFactory.newInstance(); SOAPMessage message = factory.createMessage(); SOAPHeader header = message.getSOAPHeader(); SOAPBody body = message.getSOAPBody();