
f#]c           @  s%  d  d l  m Z d  d l Td  d l j j j j Z d  d l a	 d  d l
 m Z m Z d  d l Z d   Z d e f d     YZ d e f d	     YZ d
 e f d     YZ d e j f d     YZ e j j e  d e j f d     YZ e j j e  d e j f d     YZ e j j e  d e j f d     YZ e j j e  d e j f d     YZ e j j e  d e j f d     YZ e j j e  d e j f d     YZ e j j e  d e j f d     YZ e j j e  t	 j j j e j  j! d  t	 j j" d   d S(   i(   t   print_function(   t   *N(   t   domutilst   sixc          C  s   y d d l  }  Wn t k
 r# n Xy d d l }  Wn t k
 rG n Xy d d l }  Wn t k
 rk n Xy d d l }  Wn t k
 r n Xy d d l }  Wn t k
 r n Xy d d l }  Wn t k
 r n Xy d d l }  Wn t k
 r n Xd S(   sr   Import modules for related namespaces so they are available to
    create binding instances from the WSDL sources.iN(   t   pyxb.bundles.wssplat.soapbind11t   ImportErrort   pyxb.bundles.wssplat.soapbind12t   pyxb.bundles.wssplat.soap11t   pyxb.bundles.wssplat.soap12t   pyxb.bundles.wssplat.soapenvt   pyxb.bundles.wssplat.httpbindt   pyxb.bundles.wssplat.mimebind(   t   pyxb(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   ImportRelatedNamespaces   s8    t   _WSDL_binding_mixinc           B  s   e  Z d  Z RS(   ss   Mix-in class to mark element Python bindings that are expected
    to be wildcard matches in WSDL binding elements.(   t   __name__t
   __module__t   __doc__(    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR   8   s   t   _WSDL_port_mixinc           B  s   e  Z d  Z RS(   sp   Mix-in class to mark element Python bindings that are expected
    to be wildcard matches in WSDL port elements.(   R   R   R   (    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR   =   s   t   _WSDL_operation_mixinc           B  s   e  Z d  Z RS(   s   Mix-in class to mark element Python bindings that are expected
    to be wildcard matches in WSDL (binding) operation elements.(   R   R   R   (    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR   B   s   t   tPortc           B  sP   e  Z d    Z d   Z d Z e e  Z d   Z d   Z	 d Z
 e e  Z RS(   c         C  s   |  j  S(   N(   t   _tPort__bindingReference(   t   self(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   __getBindingReferenceH   s    c         C  s   | |  _  d  S(   N(   R   (   R   t   binding_reference(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   _setBindingReferenceJ   s    c         C  s   |  j  S(   N(   t   _tPort__addressReference(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   __getAddressReferenceO   s    c         C  s   | |  _  d  S(   N(   R   (   R   t   address_reference(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   _setAddressReferenceQ   s    N(   R   R   t   _tPort__getBindingReferenceR   t   NoneR   t   propertyt   bindingReferencet   _tPort__getAddressReferenceR   R   t   addressReference(    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR   G   s   				t   tBindingc           B  sh   e  Z d    Z d   Z d Z e e  Z d   Z d   Z	 d Z
 e e  Z d   Z d Z d   Z RS(   c         C  s   |  j  S(   N(   t   _tBinding__portTypeReference(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   __getPortTypeReferenceY   s    c         C  s   | |  _  d  S(   N(   R%   (   R   t   port_type_reference(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   setPortTypeReference[   s    c         C  s   |  j  S(   s1   Return the protocol-specific binding information.(   t   _tBinding__protocolBinding(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   __getProtocolBinding`   s    c         C  s   | |  _  d  S(   N(   R)   (   R   t   protocol_binding(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   _setProtocolBindingc   s    c         C  s   |  j  S(   N(   t   _tBinding__operationMap(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   operationMaph   s    c         O  s&   t  t |   j | |   i  |  _ d  S(   N(   t   superR$   t   __init__R-   (   R   t   argst   kw(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR0   l   s    N(   R   R   t   _tBinding__getPortTypeReferenceR(   R   R%   R    t   portTypeReferencet   _tBinding__getProtocolBindingR,   R)   t   protocolBindingR.   R-   R0   (    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR$   X   s   					t	   tPortTypec           B  s    e  Z d    Z d Z d   Z RS(   c         C  s   |  j  S(   N(   t   _tPortType__operationMap(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR.   r   s    c         O  s&   t  t |   j | |   i  |  _ d  S(   N(   R/   R7   R0   R8   (   R   R1   R2   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR0   v   s    N(   R   R   R.   R   R8   R0   (    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR7   q   s   	t   tParamc           B  s,   e  Z d    Z d   Z d Z e e  Z RS(   c         C  s   |  j  S(   N(   t   _tParam__messageReference(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   __getMessageReference|   s    c         C  s   | |  _  d  S(   N(   R:   (   R   t   message_reference(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   _setMessageReference~   s    N(   R   R   t   _tParam__getMessageReferenceR=   R   R:   R    t   messageReference(    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR9   {   s   		t   tFaultc           B  s,   e  Z d    Z d   Z d Z e e  Z RS(   c         C  s   |  j  S(   N(   t   _tFault__messageReference(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR;      s    c         C  s   | |  _  d  S(   N(   RA   (   R   R<   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR=      s    N(   R   R   t   _tFault__getMessageReferenceR=   R   RA   R    R?   (    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyR@      s   		t   tPartc           B  sP   e  Z d    Z d   Z d Z e e  Z d   Z d   Z	 d Z
 e e  Z RS(   c         C  s   |  j  S(   N(   t   _tPart__elementReference(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   __getElementReference   s    c         C  s   | |  _  d  S(   N(   RD   (   R   t   element_reference(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   _setElementReference   s    c         C  s   |  j  S(   N(   t   _tPart__typeReference(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   __getTypeReference   s    c         C  s   | |  _  d  S(   N(   RH   (   R   t   type_reference(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   _setTypeReference   s    N(   R   R   t   _tPart__getElementReferenceRG   R   RD   R    t   elementReferencet   _tPart__getTypeReferenceRK   RH   t   typeReference(    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyRC      s   				t   tBindingOperationc           B  s,   e  Z d    Z d   Z d Z e e  Z RS(   c         C  s   |  j  S(   N(   t&   _tBindingOperation__operationReference(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   __getOperationReference   s    c         C  s   | |  _  d  S(   N(   RQ   (   R   t   operation_reference(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   _setOperationReference   s    N(   R   R   t)   _tBindingOperation__getOperationReferenceRT   R   RQ   R    t   operationReference(    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyRP      s   		t   tDefinitionsc           B  s   e  Z d    Z d   Z d Z d   Z d Z d   Z d   Z	 d Z
 d   Z d   Z d Z e d    Z d   Z d Z d   Z d   Z d   Z RS(   c         C  s   |  j    j   S(   N(   t   targetNamespacet   messages(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt
   messageMap   s    c         C  s   |  j  S(   N(   t   _tDefinitions__namespaceContext(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   namespaceContext   s    c         C  s   |  j  S(   N(   t   _tDefinitions__bindingMap(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt
   bindingMap   s    c         C  s   |  j    j   S(   N(   R\   RX   (   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyRX      s    c         C  s   |  j  S(   N(   t   _tDefinitions__namespace(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt	   namespace   s    c         C  sd   | | | <| \ } } | |  j    k r; | | d  | f <n% | d  k r` | | |  j    | f <n  | S(   N(   RX   R   (   R   t   mapt   qnamet   valuet   nst   ln(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt	   _addToMap   s    
c         C  s   |  j  S(   N(   t   _tDefinitions__schema(   R   (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   schema   s    c         C  sx   d d  l  } d d  l } d d  l } | j j j j   t j j	   | j
 d t  | j
 d d   | j d  f } | S(   Nit   process_schemat   generation_uidt	   _dom_node(   R   R   R
   R`   t   archivet   NamespaceArchivet   PreLoadArchivest
   raw_wsdl11t	   Namespacet   validateComponentModelt   popt   FalseR   t   get(   R   R1   R2   R   t   state(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   _PreFactory_vx   s    c         C  s   | \ } } } t  | t j j  s* t  t j j |  } t j j j	 |  |  _
 |  j   | rt |  j |  n  |  j   |  S(   N(   t
   isinstancet   xmlt   domt   Nodet   AssertionErrorR   R`   t   ExpandedNamet   NamespaceContextt   GetNodeContextR[   t   _tDefinitions__buildMapst   _tDefinitions__processSchemat!   _tDefinitions__finalizeReferences(   R   Ru   Ri   Rj   t   dom_nodet   node_en(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   _postFactory_vx   s    

t   servicet   portt   messaget   bindingt   portTypec         C  s  |  j    j   } | j |  j  x$ |  j D] } | | j   | j <q, Wx |  j D] } | | j   | j <x | j	 D] } | | j
   | j <| j } | j d  k	 r | j | j  n  | j d  k	 r | j | j  n  x- | D]% } | j } | j | j j    q Wqv WqS Wx |  j D] } | | j   | j <| j }	 | j |	 j    x4 | j   D]& }
 t |
 t  ra| j |
  PqaqaWx[ | j	 D]P } | | j
   | j <x4 | j   D]& }
 t |
 t  r| j |
  PqqWqWqWx |  j D] } | | j   | j <xd | j D]Y } | j } | j | j    x4 | j   D]& }
 t |
 t  rI| j  |
  PqIqIWqWqWd  S(   N(!   R\   RX   t   configureCategoriest   _tDefinitions__WSDLCategoriesR   RY   t   nameR   t	   portTypest	   operationR.   t   faultt   inputR   t   appendt   outputR=   R   t   bindingst   typeR(   t   wildcardElementsRw   R   R,   R   RT   R   t   servicesR   R   R   R   (   R   t   tnst   mt   ptt   opt   paramst   pt   msg_ent   bt   port_type_ent   wct   st
   binding_en(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   __buildMaps   sN    
	"		c      	   C  s{  d d  l  a t d | f  |  j d  k	 r= t d  |  j Sx7|  j D],} x#| j   D]} t | t j	 j
  rt j j j | d  rxa t j |  j   j    D]D } y | j   Wq t k
 r } t d | j   | f  q Xq Wt j j j | d |  j   d | |  _ n; t | t j j  r?| |  _ n t d | j t j f  |  j d  k	 rZ |  j SqZ WqG Wd  S(	   Nis   PS %ss   Already have schemaRh   s+   Error validating component model for %s: %st   namespace_contextRj   s   No match: %s %s(   t   pyxb.xmlschemaR   t   printRg   R   t   typesR   Rw   Rx   Ry   Rz   R`   t	   XMLSchemat   nodeIsNamedR   t
   itervaluesR\   t   inScopeNamespacesRq   t	   Exceptiont   urit	   xmlschemaRh   t   CreateFromDOMt   namespaceURIt	   localName(   R   Rj   t   tR   Rd   t   e(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   __processSchema  s(    
-""-c         C  s   |  j    j   } x t j | j    D] } x | j D] } | j d  k	 r{ | j d  k r{ | j } | j	 | j
    n  | j d  k	 r8 | j d  k r8 | j } | j | j    q8 q8 Wq( Wd  S(   N(   R\   RX   R   R   RY   t   partt   elementR   RM   RG   t   elementDeclarationR   RO   RK   t   typeDefinition(   R   R   R   R   t   elt_ent   type_en(    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   __finalizeReferences*  s    		N(   s   services   ports   messages   bindings   portType(   R   R   RZ   R\   R   R[   R^   R]   RX   R`   R_   Rf   Rh   Rg   t   classmethodRv   R   R   R   R   R   (    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyRW      s"   										)	t   definitionsRX   (#   t
   __future__R    t   pyxb.bundles.wssplat.raw.wsdl11t   bundlest   wssplatt   rawt   wsdl11Ro   t   pyxb.namespaceR   t
   pyxb.utilsR   R   t   xml.domRx   R   t   objectR   R   R   R   t   _SetSupersedingClassR$   R7   R9   R@   RC   RP   RW   R`   R}   t   _AddTargetNamespaceAttributeRp   t   createExpandedNameR|   (    (    (    sP   /data/av2000/b2b/venv/lib/python2.7/site-packages/pyxb/bundles/wssplat/wsdl11.pyt   <module>   s4   
	!