Skip to content

CRUD SOAP

connectx.crud.soap

Soap

Bases: Crud

A helper class for making SOAP requests.

Extends Crud and provides methods to send SOAP requests with optional HTTP basic authentication.

__init__

Initialize a new Soap client.

Parameters:

Name Type Description Default
url str

The endpoint URL of the SOAP service.

required
soap_action str

The SOAP action base string.

required
username str

Username for HTTP Basic Auth.

None
password str

Password for HTTP Basic Auth.

None
env str

Environment label.

'TEST'

headers

Build SOAP request headers.

Parameters:

Name Type Description Default
service str

The SOAP service name.

required

Returns:

Type Description
dict

A dictionary with headers required for the SOAP request.

request

Send a SOAP request to the configured service.

Parameters:

Name Type Description Default
service_name str

The SOAP service name.

required
xml_data str

The XML payload of the request.

required

Returns:

Type Description
Response

The HTTP response object returned by the request.