Queries

DemographicInfoQuery

class q2_cores.EPL.queries.demographic_info_query.DemographicInfoQuery(logger, ssn, institution_id, consumer_id, request_namespace=None, header_namespace=None)[source]

Bases: EplSoapBase

Builds the xml payload for the demographic call for the EPL core.

Object which builds the query to be send to the Core. If server is running debug mode, will return mocked response instead of calling the core.

Parameters:
  • logger (Logger) – Reference to calling request’s logger (self.logger in your extension)

  • mock_failure – If server is running in debug mode, will be used while mocking the response

build()[source]
mock_response()[source]

When run in DEBUG mode, the SDK will intercept calls before they go to HQ’s AdapterPassThru endpoint.

In these cases, the response will be whatever is returned from this function.

EplSoapBaseQuery

class q2_cores.EPL.queries.epl_soap_base.EplSoapBase(logger)[source]

Bases: BaseQuery

Object which builds the query to be send to the Core. If server is running debug mode, will return mocked response instead of calling the core.

Parameters:
  • logger (Logger) – Reference to calling request’s logger (self.logger in your extension)

  • mock_failure – If server is running in debug mode, will be used while mocking the response

static wrap_in_soap(message_nodes)[source]

wraps message nodes in soap body and envelope :type message_nodes: list :param message_nodes: A list of xml nodes :rtype: str :return: The full soap shape to be sent to the core

MockResponses

q2_cores.EPL.queries.mock_responses.mock_demo_response()[source]
q2_cores.EPL.queries.mock_responses.mock_exception_response()[source]