org.opensaml.ws.soap.client
Class SOAPClient

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

public class SOAPClient
extends Object

A client for sending and receiving SOAP messages. When a client sends a message it will create a Transport instance, based on the endpoint's scheme, marshall and bind the message to the transport, receive, decode, and umarshall the response, evaluate the message security policy, and finally return the response. After this process is complete the response message and transport will be added to the message context.


Constructor Summary
SOAPClient()
          Constructor.
 
Method Summary
 Map<String,ClientTransportFactory> getRegisteredTransports()
          Gets the transports registered with this client.
 void send(URI endpointURI, MessageContext messageContext)
          Sends a SOAP message to the given endpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPClient

public SOAPClient()
Constructor.

Method Detail

getRegisteredTransports

public Map<String,ClientTransportFactory> getRegisteredTransports()
Gets the transports registered with this client.

Returns:
mutable list of transports registered with this client

send

public void send(URI endpointURI,
                 MessageContext messageContext)
          throws TransportException,
                 MessageDecodingException,
                 SecurityPolicyException
Sends a SOAP message to the given endpoint.

Parameters:
endpointURI - endpoint to send the SOAP message to
messageContext - context of the message to send
Throws:
TransportException - thrown if there is a problem creating or using the Transport
MessageDecodingException - thrown if there is a problem decoding the response
SecurityPolicyException - thrown if there is a problem evaluating the decoder's security policy


Copyright © 2006-2008 Internet2. All Rights Reserved.