Sending a Message to a SOAP Messaging Provider
The process of sending a message to a messaging provider is similar to using point-to-point SOAP communication. As with the point-to-point example, a SOAP message must be prepared. The process of preparing the message is the same, though the process of addressing the message is slightly different.
As you might expect, the process of establishing communication with the message recipient is also different. The SOAPConnection object is not used to establish the connection; instead, a ProviderConnection factory, most likely retrieved from a JNDI naming service, is used to create a connection to the messaging provider.
In this client example as shown below, we use a Java servlet to send the SOAP message ...
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.