RFC 3288 |
TOC |
|
This document specifies an Internet standards track protocol for the Internet community, and requests discussion and suggestions for improvements. Please refer to the current edition of the “Internet Official Protocol Standards” (STD 1) for the standardization state and status of this protocol. Distribution of this memo is unlimited.
Copyright © The Internet Society (2002). All Rights Reserved.
This memo specifies a Simple Object Access Protocol (SOAP) binding to the Blocks Extensible Exchange Protocol core (BEEP). A SOAP binding describes how SOAP messages are transmitted in the network.
The SOAP is an XML-based (extensible markup language) messaging protocol used to implement a wide variety of distributed messaging models. It defines a message format and describes a variety of message patterns, including, but not limited to, RPC, asynchronous event notification, unacknowledged messages, and forwarding via SOAP intermediaries.
RFC 3288 |
TOC |
1.
Introduction
2.
BEEP Profile Identification
2.1.
Profile Initialization
3.
SOAP Message Packages
4.
SOAP Message Patterns
4.1.
One-way Message
4.2.
Request-Response Exchange
4.3.
Request/N-Responses Exchange
5.
URL Schemes
5.1.
The soap.beep URL Scheme
5.1.1.
Resolving IP/TCP Address Information
5.2.
The soap.beeps URL Scheme
6.
Registration Templates
6.1.
SOAP Profile Feature Registration Template
7.
Initial Registrations
7.1.
Registration: The SOAP Profile
7.2.
Registration: The soap.beep URL Scheme
7.3.
Registration: The soap.beeps URL Scheme
7.4.
Registration: The System (Well-Known) TCP port number for SOAP over BEEP
8.
Security Considerations
9.
References
Appendix A.
Acknowledgements
Appendix B.
IANA Considerations
§
Authors' Addresses
§
Intellectual Property and Copyright Statements
TOC |
This memo specifies how SOAP 1.1 envelopes (Box, D., Ehnebuske, D., Kakivaya, G., Layman, A., Mendelsohn, N., Nielsen, H., Thatte, S., and D. Winer, “Simple Object Access Protocol (SOAP) 1.1,” May 2000.) [W3C.SOAP] are transmitted using a BEEP profile (Rose, M., “The Blocks Extensible Exchange Protocol Core,” March 2001.) [RFC3080]. In the W3C, the XMLP effort is evolving SOAP. Accordingly, this memo provides a mechanism for negotiating the use of new features.
Throughout this memo, the term "envelope" refers to the "SOAP-Env:Envelope" element defined in Section 4 of [W3C.SOAP] (Box, D., Ehnebuske, D., Kakivaya, G., Layman, A., Mendelsohn, N., Nielsen, H., Thatte, S., and D. Winer, “Simple Object Access Protocol (SOAP) 1.1,” May 2000.). Further, the terms "peer", "client", "server", "one-to-one", and "one-to-many" are used in the context of BEEP. In particular, Sections 2.1 and 2.1.1 of [RFC3080] (Rose, M., “The Blocks Extensible Exchange Protocol Core,” March 2001.) discuss BEEP roles and exchange styles.
TOC |
The BEEP profile for SOAP is identified as
http://iana.org/beep/soap
in the BEEP "profile" element during channel creation.
In BEEP, when the first channel is successfully created, the "serverName" attribute in the "start" element identifies the "virtual host" associated with the peer acting in the server role, e.g.,
<start number='1' serverName='stockquoteserver.example.com'> <profile uri='http://iana.org/beep/soap' /> </start>
The "serverName" attribute is analagous to HTTP's "Host" request-header field (c.f., Section 14.23 of [RFC2616] (Fielding, R., Gettys, J., Mogul, J., Nielsen, H., Masinter, L., Leach, P., and T. Berners-Lee, “Hypertext Transfer Protocol -- HTTP/1.1,” June 1999.)).
There are two states in the BEEP profile for SOAP, "boot" and "ready":
TOC |
The boot message is used for two purposes:
- resource identification:
- each channel bound to the BEEP profile for SOAP provides access to a single resource (a network data object or service).
- feature negotiation:
- if new features of SOAP (such as compression) emerge, their use can be negotiated.
The DTD syntax for the boot message and its response are:
<!ELEMENT bootmsg EMPTY> <!ATTLIST bootmsg resource CDATA #REQUIRED features NMTOKENS ""> <!ELEMENT bootrpy EMPTY> <!ATTLIST bootrpy features NMTOKENS "">
The boot message contains a mandatory and an optional attribute:
Section 6.1 (SOAP Profile Feature Registration Template) defines a registration template for optional features.
If the peer acting in the server role recognizes the requested resource, it replies with the boot response that contains one optional attribute:
Otherwise, if the boot message is improperly formed, or if the requested resource isn't recognized, the peer acting in the server role replies with an error message (c.f., Section 7.1 of [RFC3080] (Rose, M., “The Blocks Extensible Exchange Protocol Core,” March 2001.)).
Typically, the boot message and its response are exchanged during channel initialization (c.f., Section 2.3.1.2 of [RFC3080] (Rose, M., “The Blocks Extensible Exchange Protocol Core,” March 2001.)).
For example, here the boot message and its response are exchanged during channel initialization:
C: <start number='1' serverName='stockquoteserver.example.com'> C: <profile uri='http://iana.org/beep/soap'> C: <![CDATA[<bootmsg resource='/StockQuote' />]]> C: </profile> C: </start> S: <profile uri='http://iana.org/beep/soap'> S: <![CDATA[<bootrpy />]]> S: </profile>
The channel bound to the BEEP profile for SOAP is now in the "ready" state.
Alternatively, here is an example in which the boot exchange is unsuccessful:
C: <start number='1' serverName='stockquoteserver.example.com'> C: <profile uri='http://iana.org/beep/soap'> C: <![CDATA[<bootmsg resource='/StockPick' />]]> C: </profile> C: </start> S: <profile uri='http://iana.org/beep/soap'> S: <![CDATA[<error code='550'>resource not S: supported</error>]]> S: </profile>
Although the channel was created successfully, it remains in the "boot" state.
TOC |
The BEEP profile for SOAP transmits envelopes encoded as UTF-8 using the media type "application/xml" (Murata, M., St.Laurent, S., and D. Kohn, “XML Media Types,” January 2001.) [RFC3023], e.g.,
MSG 1 1 . 0 364 Content-Type: application/xml <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <m:GetLastTradePrice xmlns:m="Some-URI"> <symbol>DIS</symbol> </m:GetLastTradePrice> </SOAP-ENV:Body> </SOAP-ENV:Envelope> END
In addition, the BEEP profile for SOAP also allows envelopes to be transmitted as the root part of a "multipart/related" (Levinson, E., “The MIME Multipart/Related Content-type,” August 1998.) [RFC2387] content, and with subordinate parts referenced using the rules of Section 3 of [W3C.SOAP‑ATTACHMENTS] (Barton, J., Thatte, S., and H. Nielsen, “SOAP Messages with Attachments,” December 2000.) (i.e., using either the "Content-ID:" (Levinson, E., “Content-ID and Message-ID Uniform Resource Locators,” August 1998.) [RFC2392] or "Content-Location:" (Palme, F., Hopmann, A., Shelness, N., and E. Stefferud, “MIME Encapsulation of Aggregate Documents, such as HTML (MHTML),” March 1999.) [RFC2557] headers), e.g.,
MSG 1 2 . 364 668 Content-Type: multipart/related; boundary="MIME_boundary"; type=application/xml; start="<claim061400a.xml@claiming-it.com>" --MIME_boundary Content-Type: application/xml Content-ID: <claim061400a.xml@claiming-it.com> <?xml version='1.0' ?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> .. <theSignedForm href="cid:claim061400a.tiff@claiming-it.com" /> .. </SOAP-ENV:Body> </SOAP-ENV:Envelope> --MIME_boundary Content-Type: image/tiff Content-Transfer-Encoding: binary Content-ID: <claim061400a.tiff@claiming-it.com> ...binary TIFF image... --MIME_boundary-- END
Consistent with Section 2 of [W3C.SOAP‑ATTACHMENTS] (Barton, J., Thatte, S., and H. Nielsen, “SOAP Messages with Attachments,” December 2000.), it is strongly recommended that the multipart contain a "start" parameter, and that the root part contain a "Content-ID:" header. However, because BEEP provides an 8bit-wide path, a "transformative" Content-Transfer-Encoding (e.g., "base64" or "quoted-printable") should not be used. Further note that MIME (Freed, N. and N. Borenstein, “Multipurpose Internet Mail Extensions (MIME) Part One: Format of Internet Message Bodies,” November 1996.) [RFC2045] requires that the value of the "Content-ID" header be globally unique.
TOC |
TOC |
A one-way message involves sending a message without any response being returned.
The BEEP profile for SOAP achieves this using a one-to-many exchange, in which the client sends a "MSG" message containing an envelope, and the server immediately sends back a "NUL" message, before processing the contents of the envelope.
TOC |
A request/response exchange involves sending a request, which results in a response being returned.
The BEEP profile for SOAP achieves this using a one-to-one exchange, in which the client sends a "MSG" message containing an envelope, and the server sends back a "RPY" message containing an envelope.
Finally, the BEEP profile for SOAP does not use the "ERR" message for SOAP faults when performing one-to-one exchanges — whatever response is generated by the server is always returned in the "RPY" message.
TOC |
A request/N-responses exchange involves sending a request, which results in zero or more responses being returned.
The BEEP profile for SOAP achieves this using a one-to-many exchange, in which the client sends a "MSG" message containing an envelope, and the server sends back zero or more "ANS" messages, each containing an envelope, followed by a "NUL" message.
TOC |
This memo defines two URL schemes, "soap.beep" and "soap.beeps", which identify the use of SOAP over BEEP over TCP. Note that, at present, a "generic" URL scheme for SOAP is not defined.
TOC |
The "soap.beep" URL scheme uses the "generic URI" syntax defined in Section 3 of [RFC2396] (Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifiers (URI): Generic Syntax,” August 1998.), specifically:
The values of both the scheme and authority components are case-insensitive.
For example, the URL
soap.beep://stockquoteserver.example.com/StockQuote
might result in the example shown in Section 2.1 (Profile Initialization).
TOC |
The "soap.beep" URL scheme indicates the use of the BEEP profile for SOAP running over TCP/IP.
If the authority component contains a domain name and a port number, e.g.,
soap.beep://stockquoteserver.example.com:1026
then the DNS is queried for the A RRs corresponding to the domain name, and the port number is used directly.
If the authority component contains a domain name and no port number, e.g.,
soap.beep://stockquoteserver.example.com
the SRV algorithm (Gulbrandsen, A., Vixie, P., and L. Esibov, “A DNS RR for specifying the location of services (DNS SRV),” February 2000.) [RFC2782] is used with a service parameter of "soap-beep" and a protocol parameter of "tcp" to determine the IP/TCP addressing information. If no appropriate SRV RRs are found (e.g., for "_soap-beep._tcp.stockquoteserver.example.com"), then the DNS is queried for the A RRs corresponding to the domain name and the port number used is assigned by the IANA for the registration in Section 7.4 (Registration: The System (Well-Known) TCP port number for SOAP over BEEP).
If the authority component contains an IP address, e.g.,
soap.beep://10.0.0.2:1026
then the DNS is not queried, and the IP address is used directly. If a port number is present, it is used directly; otherwise, the port number used is assigned by the IANA for the registration in Section 7.4 (Registration: The System (Well-Known) TCP port number for SOAP over BEEP).
While the use of literal IPv6 addresses in URLs is discouraged, if a literal IPv6 address is used in a "soap.beep" URL, it must conform to the syntax specified in [RFC2472] (Haskin, D. and E. Allen, “IP Version 6 over PPP,” December 1998.).
TOC |
The "soap.beeps" URL scheme is identical, in all ways, to the "soap.beep" URL scheme specified in Section 5.1 (The soap.beep URL Scheme), with the exception that prior to starting the BEEP profile for SOAP, the BEEP session must be tuned for privacy. In particular, note that both URL schemes use the identical algorithms and parameters for address resolution as specified in Section 5.1.1 (Resolving IP/TCP Address Information) (e.g., the same service name for SRV lookups, the same port number for TCP, and so on).
There are two ways to perform privacy tuning on a BEEP session, either:
Regardless, upon completion of the negotiation process, a tuning reset occurs in which both BEEP peers issue a new greeting. Consult Section 3 of [RFC3080] (Rose, M., “The Blocks Extensible Exchange Protocol Core,” March 2001.) for an example of how a BEEP peer may choose to issue different greetings based on whether privacy is in use.
TOC |
TOC |
When a feature for the BEEP profile for SOAP is registered, the following information is supplied:
- Feature Identification:
- specify a string that identifies this feature. Unless the feature is registered with the IANA, the feature's identification must start with "x-".
- Feature Semantics:
- specify the semantics of the feature.
- Contact Information:
- specify the electronic contact information for the author of the feature.
TOC |
TOC |
- Profile Identification:
- http://iana.org/beep/soap
- Messages exchanged during Channel Creation:
- bootmsg, bootrpy
- Messages starting one-to-one exchanges:
- bootmsg, SOAP-Env:Envelope
- Messages in positive replies:
- bootrpy, SOAP-Env:Envelope
- Messages in negative replies:
- error
- Messages in one-to-many exchanges:
- SOAP-Env:Envelope
- Message Syntax:
- SOAP-Env:Envelope as defined in Section 4 of [W3C.SOAP] (Box, D., Ehnebuske, D., Kakivaya, G., Layman, A., Mendelsohn, N., Nielsen, H., Thatte, S., and D. Winer, “Simple Object Access Protocol (SOAP) 1.1,” May 2000.) and [W3C.SOAP‑ATTACHMENTS] (Barton, J., Thatte, S., and H. Nielsen, “SOAP Messages with Attachments,” December 2000.)
- Message Semantics:
- c.f., [W3C.SOAP] (Box, D., Ehnebuske, D., Kakivaya, G., Layman, A., Mendelsohn, N., Nielsen, H., Thatte, S., and D. Winer, “Simple Object Access Protocol (SOAP) 1.1,” May 2000.)
- Contact Information:
- Eamon O'Tuathail <eamon.otuathail@clipcode.com>, Marshall Rose <mrose@dbc.mtview.ca.us>
TOC |
- URL scheme name:
- soap.beep
- URL scheme syntax:
- c.f., Section 5.1 (The soap.beep URL Scheme)
- Character encoding considerations:
- c.f., the "generic URI" syntax defined in Section 3 of [RFC2396] (Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifiers (URI): Generic Syntax,” August 1998.)
- Intended usage:
- identifies a SOAP resource made available using the BEEP profile for SOAP
- Applications using this scheme:
- c.f., "Intended usage", above
- Interoperability considerations:
- n/a
- Security Considerations:
- c.f., Section 8 (Security Considerations)
- Relevant Publications:
- c.f., [W3C.SOAP] (Box, D., Ehnebuske, D., Kakivaya, G., Layman, A., Mendelsohn, N., Nielsen, H., Thatte, S., and D. Winer, “Simple Object Access Protocol (SOAP) 1.1,” May 2000.), [W3C.SOAP‑ATTACHMENTS] (Barton, J., Thatte, S., and H. Nielsen, “SOAP Messages with Attachments,” December 2000.), and [RFC3080] (Rose, M., “The Blocks Extensible Exchange Protocol Core,” March 2001.)
- Contact Information:
- Eamon O'Tuathail <eamon.otuathail@clipcode.com>, Marshall Rose <mrose@dbc.mtview.ca.us>
- Author/Change controller:
- the IESG
TOC |
- URL scheme name:
- soap.beeps
- URL scheme syntax:
- c.f., Section 5.2 (The soap.beeps URL Scheme)
- Character encoding considerations:
- c.f., the "generic URI" syntax defined in Section 3 of [RFC2396] (Berners-Lee, T., Fielding, R., and L. Masinter, “Uniform Resource Identifiers (URI): Generic Syntax,” August 1998.)
- Intended usage:
- identifies a SOAP resource made available using the BEEP profile for SOAP after the BEEP session has been tuned for privacy
- Applications using this scheme:
- c.f., "Intended usage", above
- Interoperability considerations:
- n/a
- Security Considerations:
- c.f., Section 8 (Security Considerations)
- Relevant Publications:
- c.f., [W3C.SOAP] (Box, D., Ehnebuske, D., Kakivaya, G., Layman, A., Mendelsohn, N., Nielsen, H., Thatte, S., and D. Winer, “Simple Object Access Protocol (SOAP) 1.1,” May 2000.), [W3C.SOAP‑ATTACHMENTS] (Barton, J., Thatte, S., and H. Nielsen, “SOAP Messages with Attachments,” December 2000.), and [RFC3080] (Rose, M., “The Blocks Extensible Exchange Protocol Core,” March 2001.)
- Contact Information:
- Eamon O'Tuathail <eamon.otuathail@clipcode.com>, Marshall Rose <mrose@dbc.mtview.ca.us>
- Author/Change controller:
- the IESG
TOC |
- Protocol Number:
- TCP
- Message Formats, Types, Opcodes, and Sequences:
- c.f., Section 2.1 (Profile Initialization)
- Functions:
- c.f., [W3C.SOAP] (Box, D., Ehnebuske, D., Kakivaya, G., Layman, A., Mendelsohn, N., Nielsen, H., Thatte, S., and D. Winer, “Simple Object Access Protocol (SOAP) 1.1,” May 2000.)
- Use of Broadcast/Multicast:
- none
- Proposed Name:
- SOAP over BEEP
- Short name:
- soap-beep
- Contact Information:
- Eamon O'Tuathail <eamon.otuathail@clipcode.com>, Marshall Rose <mrose@dbc.mtview.ca.us>
TOC |
Although service provisioning is a policy matter, at a minimum, all implementations must provide the following tuning profiles:
- for authentication:
- http://iana.org/beep/SASL/DIGEST-MD5
- for confidentiality:
- http://iana.org/beep/TLS (using the TLS_RSA_WITH_3DES_EDE_CBC_SHA cipher)
- for both:
- http://iana.org/beep/TLS (using the TLS_RSA_WITH_3DES_EDE_CBC_SHA cipher supporting client-side certificates)
Further, implementations may choose to offer MIME-based security services providing message integrity and confidentiality, such as OpenPGP (Elkins, M., Del Torto, D., Levien, R., and T. Roessler, “MIME Security with OpenPGP,” August 2001.) [RFC3156] or S/MIME (Ramsdell, B., “S/MIME Version 3 Message Specification,” June 1999.) [RFC2633].
Regardless, consult [RFC3080] (Rose, M., “The Blocks Extensible Exchange Protocol Core,” March 2001.)'s Section 9 for a discussion of BEEP-specific security issues.
TOC |
TOC |
The authors gratefully acknowledge the contributions of: Christopher Ferris, Huston Franklin, Alexey Melnikov, Bill Mills, and Roy T. Fielding.
TOC |
The IANA has registered the profile specified in Section 7.1 (Registration: The SOAP Profile), and selected an IANA-specific URI, e.g.,
http://iana.org/beep/soap
The IANA has registered "soap.beep" and "soap.beeps" as URL schemes, as specified in Section 7.2 (Registration: The soap.beep URL Scheme) and Section 7.3 (Registration: The soap.beeps URL Scheme), respectively.
The IANA has also registered "SOAP over BEEP" as a TCP port number, as specified in Section 7.4 (Registration: The System (Well-Known) TCP port number for SOAP over BEEP).
Finally, the IANA maintains a list of SOAP profile features, c.f., Section 6.1 (SOAP Profile Feature Registration Template). The IESG is responsible for assigning a designated expert to review the specification prior to the IANA making the assignment. Prior to contacting the IESG, developers of SOAP profile features must use the mailing list beepwg@lists.beepcore.org to solicit commentary.
TOC |
Eamon O'Tuathail | |
Clipcode.com | |
24 Thomastown Road | |
Dun Laoghaire | |
Dublin | |
IE | |
Phone: | +353 1 2350 424 |
Email: | eamon.otuathail@clipcode.com |
URI: | http://www.clipcode.com/ |
Marshall T. Rose | |
Dover Beach Consulting, Inc. | |
POB 255268 | |
Sacramento, CA 95865-5268 | |
US | |
Phone: | +1 916 483 8878 |
Email: | mrose@dbc.mtview.ca.us |
TOC |
Copyright © The Internet Society (2002). All Rights Reserved.
This document and translations of it may be copied and furnished to others, and derivative works that comment on or otherwise explain it or assist in its implementation may be prepared, copied, published and distributed, in whole or in part, without restriction of any kind, provided that the above copyright notice and this paragraph are included on all such copies and derivative works. However, this document itself may not be modified in any way, such as by removing the copyright notice or references to the Internet Society or other Internet organizations, except as needed for the purpose of developing Internet standards in which case the procedures for copyrights defined in the Internet Standards process must be followed, or as required to translate it into languages other than English.
The limited permissions granted above are perpetual and will not be revoked by the Internet Society or its successors or assigns.
This document and the information contained herein is provided on an “AS IS” basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
The IETF takes no position regarding the validity or scope of any intellectual property or other rights that might be claimed to pertain to the implementation or use of the technology described in this document or the extent to which any license under such rights might or might not be available; neither does it represent that it has made any effort to identify any such rights. Information on the IETF's procedures with respect to rights in standards-track and standards-related documentation can be found in BCP 11. Copies of claims of rights made available for publication and any assurances of licenses to be made available, or the result of an attempt made to obtain a general license or permission for the use of such proprietary rights by implementors or users of this specification can be obtained from the IETF Secretariat.
The IETF invites any interested party to bring to its attention any copyrights, patents or patent applications, or other proprietary rights which may cover technology that may be required to practice this standard. Please address the information to the IETF Executive Director.
Funding for the RFC Editor function is currently provided by the Internet Society.