Skip to content

Instantly share code, notes, and snippets.

@RokoMijic
Created March 16, 2017 12:03
Show Gist options
  • Save RokoMijic/63f659f00c658ddee3cb53cc8602fd24 to your computer and use it in GitHub Desktop.
Save RokoMijic/63f659f00c658ddee3cb53cc8602fd24 to your computer and use it in GitHub Desktop.
Example zeep script to reproduce "assert name AssertionError line 116"
from zeep import Client
from zeep.wsse.username import UsernameToken
import logging.config
client = Client("http://eur-lex.europa.eu/eurlex-ws?wsdl", wsse=UsernameToken( 'INSERT_USERNAME' , 'INSERT_PASSWORD' ) )
result = client.service.doQuery(expertQuery='SELECT DN WHERE DN=6*', page=1, pageSize=1, searchLanguage='en')
print(result)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment