O'Reilly logo

J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software by Art Taylor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required