Skip to content

Instantly share code, notes, and snippets.

@GauravSahu
Last active February 8, 2021 01:06
Show Gist options
  • Save GauravSahu/ee97c6e856457353e4e48e81958d56c0 to your computer and use it in GitHub Desktop.
Save GauravSahu/ee97c6e856457353e4e48e81958d56c0 to your computer and use it in GitHub Desktop.
Consume a JD Edwards BSSV with python zeep
`from requests import Session
from zeep import Client
from zeep.transports import Transport
from zeep.wsse.username import UsernameToken
session = Session()
url ="https://HOST:PORT/DV920/AddressBookManager?WSDL"
username="username"
password="password"
session.verify =False
transport = Transport(session=session)
client = Client(url,transport=transport,wsse=UsernameToken(username,password))
entity={
'entityId': '500'
}
addressBookResult = client.service.getAddressBook(entity=entity)
print (addressBookResult)`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment