org.opensaml.ws.soap.client
Class SOAPClient

java.lang.Object
  extended by org.opensaml.ws.soap.client.SOAPClient

public class SOAPClient
extends java.lang.Object

A client for sending and receiving SOAP messages. Clients are not re-usable or thread safe.


Constructor Summary
SOAPClient(SOAPTransport transport)
          Constructor.
 
Method Summary
 SecurityPolicy getSecurityPolicy()
          Gets the security policy received messages will be evaluated against.
 javax.xml.validation.Schema getValidationSchema()
          Gets the schema used to validate incoming messages.
 SOAPObject receive()
          Receives and incoming SOAP message.
 void send(java.lang.String endpointURI, SOAPObject soapMessage)
          Sends a SOAP message to the given endpoint.
 void setSecurityPolicy(SecurityPolicy policy)
          Sets the security policy received messages will be evaluated against.
 void setValidationSchema(javax.xml.validation.Schema schema)
          Sets the schema used to validate incoming messages.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPClient

public SOAPClient(SOAPTransport transport)
Constructor.

Parameters:
transport - transport used to send and receive messages
Method Detail

getValidationSchema

public javax.xml.validation.Schema getValidationSchema()
Gets the schema used to validate incoming messages.

Returns:
schema used to validate incoming messages

setValidationSchema

public void setValidationSchema(javax.xml.validation.Schema schema)
Sets the schema used to validate incoming messages.

Parameters:
schema - schema used to validate incoming messages

getSecurityPolicy

public SecurityPolicy getSecurityPolicy()
Gets the security policy received messages will be evaluated against.

Returns:
security policy received messages will be evaluated against

setSecurityPolicy

public void setSecurityPolicy(SecurityPolicy policy)
Sets the security policy received messages will be evaluated against.

Parameters:
policy - security policy received messages will be evaluated against

send

public void send(java.lang.String endpointURI,
                 SOAPObject soapMessage)
Sends a SOAP message to the given endpoint.

Parameters:
endpointURI - endpoint to send the SOAP message to
soapMessage - SOAP message to send

receive

public SOAPObject receive()
Receives and incoming SOAP message.

Returns:
the SOAP message received