1 16 package org.apache.axis.soap; 17 18 import org.apache.axis.Constants; 19 20 import javax.xml.namespace.QName ; 21 22 28 public class SOAP12Constants implements SOAPConstants { 29 private static QName headerQName = new QName (Constants.URI_SOAP12_ENV, 30 Constants.ELEM_HEADER); 31 private static QName bodyQName = new QName (Constants.URI_SOAP12_ENV, 32 Constants.ELEM_BODY); 33 private static QName faultQName = new QName (Constants.URI_SOAP12_ENV, 34 Constants.ELEM_FAULT); 35 private static QName roleQName = new QName (Constants.URI_SOAP12_ENV, 36 Constants.ATTR_ROLE); 37 38 40 41 public static final String PROP_WEBMETHOD = "soap12.webmethod"; 42 43 public String getEnvelopeURI() { 44 return Constants.URI_SOAP12_ENV; 45 } 46 47 public String getEncodingURI() { 48 return Constants.URI_SOAP12_ENC; 49 } 50 51 public QName getHeaderQName() { 52 return headerQName; 53 } 54 55 public QName getBodyQName() { 56 return bodyQName; 57 } 58 59 public QName getFaultQName() { 60 return faultQName; 61 } 62 63 66 public QName getRoleAttributeQName() { 67 return roleQName; 68 } 69 70 73 public String getContentType() { 74 return "application/soap+xml"; 75 } 76 77 80 public String getNextRoleURI() { 81 return Constants.URI_SOAP12_NEXT_ROLE; 82 } 83 84 87 public String getAttrHref() { 88 return Constants.ATTR_REF; 89 } 90 91 94 public String getAttrItemType() { 95 return Constants.ATTR_ITEM_TYPE; 96 } 97 98 101 public QName getVerMismatchFaultCodeQName() { 102 return Constants.FAULT_SOAP12_VERSIONMISMATCH; 103 } 104 105 108 public QName getMustunderstandFaultQName() { 109 return Constants.FAULT_SOAP12_MUSTUNDERSTAND; 110 } 111 112 115 public QName getArrayType() { 116 return Constants.SOAP_ARRAY12; 117 } 118 } 119 | Popular Tags |