List of usage examples for javax.xml.soap SOAPEnvelope getAttribute
public String getAttribute(String name);
From source file:ee.ria.xroad.common.message.SoapUtils.java
/** * Returns true, if the SOAP message is RPC-encoded. * @param soap the SOAP message/*from w w w . j a v a2 s. c o m*/ * @return boolean * @throws Exception if there are errors reading the SOAP envelope */ public static boolean isRpcMessage(SOAPMessage soap) throws Exception { SOAPEnvelope envelope = soap.getSOAPPart().getEnvelope(); return RPC_ENCODING.equals(envelope.getAttribute(RPC_ATTR)); }