Last active
February 8, 2021 01:06
-
-
Save GauravSahu/ee97c6e856457353e4e48e81958d56c0 to your computer and use it in GitHub Desktop.
Consume a JD Edwards BSSV with python zeep
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`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