Class Soap.SoapMessageBuilder
java.lang.Object
org.keycloak.protocol.saml.profile.util.Soap.SoapMessageBuilder
- Enclosing class:
- Soap
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.xml.soap.SOAPHeaderElement
addMimeHeader
(String name, String value) addNamespace
(String prefix, String ns) jakarta.ws.rs.core.Response
build()
org.apache.http.client.methods.HttpPost
buildHttpPost
(URI uri) Build method for testing, generates an appache httpcomponents HttpPostjakarta.xml.soap.SOAPMessage
Deprecated.jakarta.xml.soap.SOAPMessage
call
(String url, KeycloakSession session) Performs a synchronous call, sending the current message to the given url.jakarta.xml.soap.Name
createName
(String name) byte[]
getBytes()
jakarta.xml.soap.SOAPMessage
-
Method Details
-
addToBody
-
addNamespace
-
addHeader
-
addMimeHeader
-
createName
-
getBytes
public byte[] getBytes() -
build
public jakarta.ws.rs.core.Response build() -
buildHttpPost
Build method for testing, generates an appache httpcomponents HttpPost- Parameters:
uri
- the URI to which to POST the soap message- Returns:
- an HttpPost containing the SOAP message
-
call
@Deprecated public jakarta.xml.soap.SOAPMessage call(String url) throws jakarta.xml.soap.SOAPException Deprecated.Usecall(String,KeycloakSession)
to use SimpleHttp configurationPerforms a synchronous call, sending the current message to the given url- Parameters:
url
- a SOAP endpoint url- Returns:
- the SOAPMessage returned by the contacted SOAP server
- Throws:
jakarta.xml.soap.SOAPException
- Raised if there's a problem performing the SOAP call
-
call
public jakarta.xml.soap.SOAPMessage call(String url, KeycloakSession session) throws jakarta.xml.soap.SOAPException Performs a synchronous call, sending the current message to the given url. SimpleHttp is retrieved using the session parameter.- Parameters:
url
- The SOAP endpoint URL to connectsession
- The session to use to locate the SimpleHttp sender- Returns:
- the SOAPMessage returned by the contacted SOAP server
- Throws:
jakarta.xml.soap.SOAPException
- Raised if there's a problem performing the SOAP call
-
getMessage
public jakarta.xml.soap.SOAPMessage getMessage()
-
call(String,KeycloakSession)
to use SimpleHttp configuration