1 55 package org.jboss.axis.soap; 56 57 import org.jboss.axis.Constants; 58 59 import javax.xml.namespace.QName ; 60 61 67 public class SOAP12Constants implements SOAPConstants 68 { 69 private static QName headerQName = new QName (Constants.URI_SOAP12_ENV, 70 Constants.ELEM_HEADER); 71 private static QName bodyQName = new QName (Constants.URI_SOAP12_ENV, 72 Constants.ELEM_BODY); 73 private static QName faultQName = new QName (Constants.URI_SOAP12_ENV, 74 Constants.ELEM_FAULT); 75 private static QName roleQName = new QName (Constants.URI_SOAP12_ENV, 76 Constants.ATTR_ROLE); 77 78 80 83 public static final String PROP_WEBMETHOD = "soap12.webmethod"; 84 85 public String getEnvelopeURI() 86 { 87 return Constants.URI_SOAP12_ENV; 88 } 89 90 public String getEncodingURI() 91 { 92 return Constants.URI_SOAP12_ENC; 93 } 94 95 public QName getHeaderQName() 96 { 97 return headerQName; 98 } 99 100 public QName getBodyQName() 101 { 102 return bodyQName; 103 } 104 105 public QName getFaultQName() 106 { 107 return faultQName; 108 } 109 110 113 public QName getRoleAttributeQName() 114 { 115 return roleQName; 116 } 117 118 121 public String getContentType() 122 { 123 return "application/soap+xml; charset=utf-8"; 124 } 125 126 129 public String getNextRoleURI() 130 { 131 return Constants.URI_SOAP12_NEXT_ROLE; 132 } 133 134 137 public String getAttrHref() 138 { 139 return Constants.ATTR_REF; 140 } 141 142 145 public String getAttrItemType() 146 { 147 return Constants.ATTR_ITEM_TYPE; 148 } 149 150 153 public QName getVerMismatchFaultCodeQName() 154 { 155 return Constants.FAULT_SOAP12_VERSIONMISMATCH; 156 } 157 158 161 public QName getMustunderstandFaultQName() 162 { 163 return Constants.FAULT_SOAP12_MUSTUNDERSTAND; 164 } 165 166 167 } 168 | Popular Tags |