package eu.dnetlib.dlms.rmi;

import javax.jws.WebParam;
import javax.jws.WebService;
import javax.xml.ws.wsaddressing.W3CEndpointReference;

@WebService
public interface DLMSConnectionService {
	/**
	 * Returns an EPR to a new dlsm connection.
	 * 
	 * @return
	 */
	W3CEndpointReference createConnection();

	W3CEndpointReference executeStatement(
			@WebParam(name = "connectionId") String connectionId,
			@WebParam(name = "statementDescription") StatementDescription statement) throws DLMSConnectionException, DLMSBrokenConnectionException;
}
