Java Reference
In-Depth Information
We then need to do the same for the
centimetersToInches
operation (not shown),
after doing so our design window will show the newly added operations.
In addition to adding operations to our web service, we can control quality of service
settings for it by simply selecting or unselecting checkboxes in the design window.
Web services transmit data as XML text messages between the web service and its
client. Sometimes, it is necessary to transmit binary data such as images. Binary data
is normally inlined in the SOAP message, by using
MTOM
(
Message
Transmission
Optimization
Mechanism
), binary data is sent as an attachment to the message,
making the transmission of binary data more efficient. When using NetBeans, we can
indicate that we wish to use MTOM by simply checking the
Optimize Transfer Of
Binary Data (MTOM)
checkbox in the design window.
Checking the
Reliable Message Delivery
checkbox allows us to indicate that we
want to make sure that messages are delivered at least once and not more than once.
Enabling reliable message delivery allows our applications to recover from situations
where our messages may have been lost in transit.