public class SOAPUtil extends Object
Constructor and Description |
---|
SOAPUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
addData(Source data,
SOAPMessage soapMessage)
Add content to
SOAPMessage |
static SOAPMessage |
create()
Create an empty
SOAPMessage |
static SOAPMessage |
createFault(String message)
Given a string message, create a
SOAPFault |
static SOAPMessage |
createFault12(String message)
Given a string message, create a
SOAPFault that is SOAP 1.2 |
static SOAPMessage |
createSOAP12()
Create a SOAP 1.2 Message
|
static SOAPMessage |
getSOAP12Message(InputStream is)
Given a stream of
SOAPMessage that is SOAP 1.2, construct the SOAPMessage |
static Document |
getSOAPData(SOAPMessage soapMessage)
Given a
SOAPMessage , get the content as a Document |
static SOAPMessage |
getSOAPMessage(InputStream is)
Given a stream of
SOAPMessage , construct the SOAPMessage |
static boolean |
isSOAP12(SOAPMessage soapMessage)
Determine if a SOAPMessage is SOAP 1.2
|
static String |
soapMessageAsString(SOAPMessage soapMessage)
Utility method to dump soapMessage to String.
|
public static SOAPMessage create() throws SOAPException
SOAPMessage
SOAPException
public static SOAPMessage createSOAP12() throws SOAPException
SOAPException
public static SOAPMessage getSOAPMessage(InputStream is) throws IOException, SOAPException
SOAPMessage
, construct the SOAPMessage
is
- IOException
SOAPException
public static SOAPMessage getSOAP12Message(InputStream is) throws IOException, SOAPException
SOAPMessage
that is SOAP 1.2, construct the SOAPMessage
is
- IOException
SOAPException
public static SOAPMessage createFault(String message) throws SOAPException
SOAPFault
message
- SOAPException
public static SOAPMessage createFault12(String message) throws SOAPException
SOAPFault
that is SOAP 1.2message
- SOAPException
public static Document getSOAPData(SOAPMessage soapMessage) throws SOAPException
SOAPMessage
, get the content as a Document
soapMessage
- SOAPException
public static boolean isSOAP12(SOAPMessage soapMessage) throws SOAPException
soapMessage
- SOAPException
public static void addData(Source data, SOAPMessage soapMessage) throws SOAPException
SOAPMessage
data
- soapMessage
- SOAPException
public static String soapMessageAsString(SOAPMessage soapMessage)
soapMessage
- Copyright © 2021 JBoss by Red Hat. All rights reserved.