Messaging with Web Services: WS-Routing, WS-Referral, and DIME



Summary

Perhaps the most important Web service technology outside of SOAP is WS-Routing. It is a simple specification but a very important one. With WS-Routing, you specify a message path, namely:

  • A message destination with the <to> element

  • The operation's <action>

  • A message ID

  • A forward path of intermediaries

  • An optional reverse path of intermediaries

WS-Referral is another specification that you can use with WS-Routing to control the path a message should take. This specification describes a way to send and receive referral messages both as the body of a SOAP message and as headers piggybacked in other messages.

Finally, sometimes you will need to send SOAP messages with binary attachments. There are several ways to do this, but the best is DIME. This specification allows for quick parsing of the DIME records, and it is usable outside of HTTP without any modification, particularly over other transports such as TCP.