/**
* Creates an exchange.
*
* @param interfaceName the target interface name (use null as wild card)
* @param serviceName the target service name (use null as wild card)
* @param endpointName the target end-point name (use null as wild card)
* @param operationName the target operation name (can be null but not recommended)
* @param mep the invocation MEP (not null)
* @return the created exchange
* @throws MessagingException
* @throws PEtALSCDKException
*/
public Exchange createExchange(QName interfaceName, QName serviceName, String endpointName, QName operationName, MEPConstants mep)
throws MessagingException, PEtALSCDKException;
The most simple solution is to put a method that allows to set all the main attributes on an exchange.