Interface Payload<T>

All Superinterfaces:
Serializable

public interface Payload<T> extends Serializable
Message content representation

Example:

 
        DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
        Document doc =
          dbf.newDocumentBuilder().parse(new InputSource(new StringReader(payloadXML)));

        // Prepare the payload for inclusion in the Message object
        Map<String, Element> msgParts = new HashMap<String, Element>();
        msgParts.put("msgPart", doc.getDocumentElement());
        Payload<Element> payload = PayloadFactory.createXMLPayload(msgParts);
 

 

  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    Specifies the payload data Payload data is a map of WSDL message part names to the matching data.
  • Method Details

    • setData

      void setData(Map<String,T> data)
      Specifies the payload data Payload data is a map of WSDL message part names to the matching data.
      Parameters:
      data - WSDL message part data
    • getData

      Map<String,T> getData()
      Returns:
      WSDL message part data