<s> WSDL_NS = '<STR_LIT>' <EOL> SOAP_NS = '<STR_LIT>' <EOL> SOAP_ENV_NS = '<STR_LIT>' <EOL> XSD_NS = '<STR_LIT>' <EOL> def qname ( name , ns = None , namespaces = None ) : <EOL> if not ns : <EOL> return name <EOL> if not namespaces : <EOL> return '<STR_LIT>' % ( ns , name ) <EOL> prefix = filter ( lambda x : x [ <NUM_LIT:1> ] == ns , namespaces . iteritems ( ) ) [ <NUM_LIT:0> ] [ <NUM_LIT:0> ] <EOL> return '<STR_LIT>' % ( prefix , name ) <EOL> def wsdl_name ( name ) : <EOL> return qname ( name , WSDL_NS ) <EOL> def soap_name ( name ) : <EOL> return qname ( name , SOAP_NS ) <EOL> def soap_env_name ( name ) : <EOL> return qname ( name , SOAP_ENV_NS ) <EOL> def xsd_name ( name ) : <EOL> return qname ( name , XSD_NS ) <EOL> def types_ns ( prefix ) : <EOL> return prefix + '<STR_LIT>' </s>
