Ñò
—ã=Pc           @   sV   d  Z  d d k l Z d d k Td d k l Z e e ƒ Z d e f d „  ƒ  YZ	 d S(   sS   
The service proxy provides access to web services.

Replaced by: L{client.Client}
iÿÿÿÿ(   t	   getLogger(   t   *(   t   Clientt   ServiceProxyc           B   sD   e  Z d  Z d „  Z d „  Z d „  Z d „  Z d „  Z d „  Z RS(   sâ    
    A lightweight soap based web service proxy.
    @ivar __client__: A client.  
        Everything is delegated to the 2nd generation API.
    @type __client__: L{Client}
    @note:  Deprecated, replaced by L{Client}.
    c         K   s   t  | |  } | |  _ d S(   sá  
        @param url: The URL for the WSDL.
        @type url: str
        @param kwargs: keyword arguments.
        @keyword faults: Raise faults raised by server (default:True),
                else return tuple from service method invocation as (http code, object).
        @type faults: boolean
        @keyword proxy: An http proxy to be specified on requests (default:{}).
                           The proxy is defined as {protocol:proxy,}
        @type proxy: dict
        N(   R   t
   __client__(   t   selft   urlt   kwargst   client(    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/serviceproxy.pyt   __init__(   s    c         C   s   |  i  i i | ƒ S(   så   
        Get an instance of a WSDL type by name
        @param name: The name of a type defined in the WSDL.
        @type name: str
        @return: An instance on success, else None
        @rtype: L{sudsobject.Object}
        (   R   t   factoryt   create(   R   t   name(    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/serviceproxy.pyt   get_instance7   s    c         C   s   |  i  i i | ƒ S(   s  
        Get an instance of an enumeration defined in the WSDL by name.
        @param name: The name of a enumeration defined in the WSDL.
        @type name: str
        @return: An instance on success, else None
        @rtype: L{sudsobject.Object}
        (   R   R
   R   (   R   R   (    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/serviceproxy.pyt   get_enumA   s    c         C   s   t  |  i ƒ S(   N(   t   strR   (   R   (    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/serviceproxy.pyt   __str__K   s    c         C   s   t  |  i ƒ S(   N(   t   unicodeR   (   R   (    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/serviceproxy.pyt   __unicode__N   s    c         C   sI   | i  d ƒ o | i d ƒ } | o |  i | St |  i i | ƒ Sd  S(   Nt   __(   t
   startswitht   endswitht   __dict__t   getattrR   t   service(   R   R   t   builtin(    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/serviceproxy.pyt   __getattr__Q   s    (	   t   __name__t
   __module__t   __doc__R	   R   R   R   R   R   (    (    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/serviceproxy.pyR      s   		
	
		N(
   R   t   loggingR    t   sudst   suds.clientR   R   t   logt   objectR   (    (    (    sP   /usr/local/lib/python2.6/dist-packages/suds-0.3.7-py2.6.egg/suds/serviceproxy.pyt   <module>   s
   
