Java and Web Services

J2EE supports Web Services through the Java Web Services development pack. Specifically as of this writing, it supports the SOAP 1.1 specification and the SOAP with attachments specification. The API implements synchronous messaging using a request–response cycle or implements asynchronous one-way messaging using a provider. It is possible to create a standalone client using the API as long as the JAXM class files are visible to the client.

Two communication paradigms are possible using SOAP: point-to-point and remote provider communication. The difference between these two approaches is essentially that of synchronous versus asynchronous messaging.

A point-to-point model involves direct communication between the client, ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.