o
    tBh}                     @   sl   d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
 eejdejidZG d	d
 d
eZdS )    N)etree)ElementMaker)ns)Plugin)get_or_create_headerwsa)	namespacensmapc                   @   s   e Zd ZdejiZdd ZdS )WsAddressingPluginr   c                 C   s   |j j}|s	|j}t|}t|tdtt	  t
|d g}|| tjdd dkr?tj||j| jd ||fS t| ||fS )z6Apply the ws-addressing headers to the given envelope.z	urn:uuid:addressN   )      )keep_ns_prefixes	top_nsmap)abstract
wsa_action
soapactionr   WSAAction	MessageIDstruuiduuid4Toextendr   LXML_VERSIONcleanup_namespacesr	   )selfenvelopehttp_headers	operationbinding_optionsr   headerheaders r%   _/var/www/html/riverr-enterprise-integrations-main/venv/lib/python3.10/site-packages/zeep/wsa.pyegress   s    


zWsAddressingPlugin.egressN)__name__
__module____qualname__r   r   r	   r'   r%   r%   r%   r&   r
      s    
r
   )r   lxmlr   lxml.builderr   zeepr   zeep.pluginsr   zeep.wsdl.utilsr   r   r
   r%   r%   r%   r&   <module>   s    