SOAPConstants.java 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  1. /*
  2. * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved.
  3. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  4. *
  5. *
  6. *
  7. *
  8. *
  9. *
  10. *
  11. *
  12. *
  13. *
  14. *
  15. *
  16. *
  17. *
  18. *
  19. *
  20. *
  21. *
  22. *
  23. *
  24. */
  25. /*
  26. * $Id: SOAPConstants.java,v 1.12 2005/04/05 22:28:13 mk125090 Exp $
  27. * $Revision: 1.12 $
  28. * $Date: 2005/04/05 22:28:13 $
  29. */
  30. package com.cxfws.client.SoapHeader;
  31. import javax.xml.namespace.QName;
  32. /**
  33. * The definition of constants pertaining to the SOAP protocol.
  34. */
  35. public interface SOAPConstants {
  36. /**
  37. * Used to create <code>MessageFactory</code> instances that create
  38. * <code>SOAPMessages</code> whose concrete type is based on the
  39. * <code>Content-Type</code> MIME header passed to the
  40. * <code>createMessage</code> method. If no <code>Content-Type</code>
  41. * header is passed then the <code>createMessage</code> may throw an
  42. * <code>IllegalArgumentException</code> or, in the case of the no
  43. * argument version of <code>createMessage</code>, an
  44. * <code>UnsupportedOperationException</code>.
  45. *
  46. * @since SAAJ 1.3
  47. */
  48. public static final String DYNAMIC_SOAP_PROTOCOL = "Dynamic Protocol";
  49. /**
  50. * Used to create <code>MessageFactory</code> instances that create
  51. * <code>SOAPMessages</code> whose behavior supports the SOAP 1.1 specification.
  52. *
  53. * @since SAAJ 1.3
  54. */
  55. public static final String SOAP_1_1_PROTOCOL = "SOAP 1.1 Protocol";
  56. /**
  57. * Used to create <code>MessageFactory</code> instances that create
  58. * <code>SOAPMessages</code> whose behavior supports the SOAP 1.2
  59. * specification
  60. *
  61. * @since SAAJ 1.3
  62. */
  63. public static final String SOAP_1_2_PROTOCOL = "SOAP 1.2 Protocol";
  64. /**
  65. * The default protocol: SOAP 1.1 for backwards compatibility.
  66. *
  67. * @since SAAJ 1.3
  68. */
  69. public static final String DEFAULT_SOAP_PROTOCOL = SOAP_1_1_PROTOCOL;
  70. /**
  71. * The namespace identifier for the SOAP 1.1 envelope.
  72. * @since SAAJ 1.3
  73. */
  74. public static final String
  75. URI_NS_SOAP_1_1_ENVELOPE = "http://schemas.xmlsoap.org/soap/envelope/";
  76. /**
  77. * The namespace identifier for the SOAP 1.2 envelope.
  78. * @since SAAJ 1.3
  79. */
  80. public static final String
  81. URI_NS_SOAP_1_2_ENVELOPE = "http://www.w3.org/2003/05/soap-envelope";
  82. /**
  83. * The namespace identifier for the SOAP 1.1 envelope, All SOAPElements in this
  84. * namespace are defined by the SOAP 1.1 specification.
  85. */
  86. public static final String
  87. URI_NS_SOAP_ENVELOPE = URI_NS_SOAP_1_1_ENVELOPE;
  88. /**
  89. * The namespace identifier for the SOAP 1.1 encoding.
  90. * An attribute named <code>encodingStyle</code> in the
  91. * <code>URI_NS_SOAP_ENVELOPE</code> namespace and set to the value
  92. * <code>URI_NS_SOAP_ENCODING</code> can be added to an element to indicate
  93. * that it is encoded using the rules in section 5 of the SOAP 1.1
  94. * specification.
  95. */
  96. public static final String
  97. URI_NS_SOAP_ENCODING = "http://schemas.xmlsoap.org/soap/encoding/";
  98. /**
  99. * The namespace identifier for the SOAP 1.2 encoding.
  100. * @since SAAJ 1.3
  101. */
  102. public static final String
  103. URI_NS_SOAP_1_2_ENCODING = "http://www.w3.org/2003/05/soap-encoding";
  104. /**
  105. * The media type of the <code>Content-Type</code> MIME header in SOAP 1.1.
  106. * @since SAAJ 1.3
  107. */
  108. public static final String
  109. SOAP_1_1_CONTENT_TYPE = "text/xml";
  110. /**
  111. * The media type of the <code>Content-Type</code> MIME header in SOAP 1.2.
  112. * @since SAAJ 1.3
  113. */
  114. public static final String
  115. SOAP_1_2_CONTENT_TYPE = "application/soap+xml";
  116. /**
  117. * The URI identifying the next application processing a SOAP request as the intended
  118. * actor for a SOAP 1.1 header entry (see section 4.2.2 of the SOAP 1.1 specification).
  119. * <p>
  120. * This value can be passed to
  121. * {@link SOAPHeader#examineMustUnderstandHeaderElements(String)},
  122. * {@link SOAPHeader#examineHeaderElements(String)} and
  123. * {@link SOAPHeader#extractHeaderElements(String)}
  124. */
  125. public static final String
  126. URI_SOAP_ACTOR_NEXT = "http://schemas.xmlsoap.org/soap/actor/next";
  127. /**
  128. * The URI identifying the next application processing a SOAP request as the intended
  129. * role for a SOAP 1.2 header entry (see section 2.2 of part 1 of the SOAP 1.2
  130. * specification).
  131. * @since SAAJ 1.3
  132. */
  133. public static final String
  134. URI_SOAP_1_2_ROLE_NEXT = URI_NS_SOAP_1_2_ENVELOPE + "/role/next";
  135. /**
  136. * The URI specifying the role None in SOAP 1.2.
  137. * @since SAAJ 1.3
  138. */
  139. public static final String
  140. URI_SOAP_1_2_ROLE_NONE = URI_NS_SOAP_1_2_ENVELOPE + "/role/none";
  141. /**
  142. * The URI identifying the ultimate receiver of the SOAP 1.2 message.
  143. * @since SAAJ 1.3
  144. */
  145. public static final String
  146. URI_SOAP_1_2_ROLE_ULTIMATE_RECEIVER =
  147. URI_NS_SOAP_1_2_ENVELOPE + "/role/ultimateReceiver";
  148. /**
  149. * The default namespace prefix for http://www.w3.org/2003/05/soap-envelope
  150. * @since SAAJ 1.3
  151. */
  152. public static final String SOAP_ENV_PREFIX = "env";
  153. /**
  154. * SOAP 1.2 VersionMismatch Fault
  155. * @since SAAJ 1.3
  156. */
  157. public static final QName SOAP_VERSIONMISMATCH_FAULT =
  158. new QName(URI_NS_SOAP_1_2_ENVELOPE, "VersionMismatch", SOAP_ENV_PREFIX);
  159. /**
  160. * SOAP 1.2 MustUnderstand Fault
  161. * @since SAAJ 1.3
  162. */
  163. public static final QName SOAP_MUSTUNDERSTAND_FAULT =
  164. new QName(URI_NS_SOAP_1_2_ENVELOPE, "MustUnderstand", SOAP_ENV_PREFIX);
  165. /**
  166. * SOAP 1.2 DataEncodingUnknown Fault
  167. * @since SAAJ 1.3
  168. */
  169. public static final QName SOAP_DATAENCODINGUNKNOWN_FAULT =
  170. new QName(URI_NS_SOAP_1_2_ENVELOPE, "DataEncodingUnknown", SOAP_ENV_PREFIX);
  171. /**
  172. * SOAP 1.2 Sender Fault
  173. * @since SAAJ 1.3
  174. */
  175. public static final QName SOAP_SENDER_FAULT =
  176. new QName(URI_NS_SOAP_1_2_ENVELOPE, "Sender", SOAP_ENV_PREFIX);
  177. /**
  178. * SOAP 1.2 Receiver Fault
  179. * @since SAAJ 1.3
  180. */
  181. public static final QName SOAP_RECEIVER_FAULT =
  182. new QName(URI_NS_SOAP_1_2_ENVELOPE, "Receiver", SOAP_ENV_PREFIX);
  183. }