Class SoapEncodingUtil

java.lang.Object
org.apache.cxf.aegis.type.encoded.SoapEncodingUtil

public final class SoapEncodingUtil extends Object
Utilitiy methods for SOAP reading and writing encoded mesages.
  • Method Details

    • readId

      public static String readId(MessageReader reader)
      Reads the SOAP 1.2 or SOAP 1.1 id attribute.
      Parameters:
      reader - the stream to read; must not be null
      Returns:
      the id or null of neither attribute was present
    • writeId

      public static void writeId(MessageWriter writer, String id)
      Writes a SOAP 1.1 id attribute.
      Parameters:
      writer - the stream to which the id should be written; must not be null
      id - the id to write; must not be null
    • readRef

      public static String readRef(MessageReader reader)
      Reads the SOAP 1.2 or SOAP 1.1 reference attribute.
      Parameters:
      reader - the stream to read; must not be null
      Returns:
      the reference id or null of neither attribute was present
    • writeRef

      public static void writeRef(MessageWriter writer, String refId)
      Writes a SOAP 1.1 ref attribute.
      Parameters:
      writer - the stream to which the id should be written; must not be null
      refId - the reference id to write; must not be null
    • readAttributeValue

      public static String readAttributeValue(MessageReader reader, QName name)
    • writeAttribute

      public static void writeAttribute(MessageWriter writer, QName name, String value)