Initial test

This commit is contained in:
Aries Wibowo
2026-04-22 09:19:12 +07:00
parent 9abcfe6bb8
commit 484ba05a65
131 changed files with 65583 additions and 0 deletions

29
infoMesinZeep.py Normal file
View File

@@ -0,0 +1,29 @@
from zeep import Client
from zeep.exceptions import Fault
# Replace with the actual WSDL URL for your service
wsdl = 'http://10.35.7.12/iWsService'
# Initialize the SOAP client
client = Client('http://10.35.7.12/iWsService')
# Set the communication key and other necessary parameters
com_key = "0" # Replace with your actual communication key
pin = "29305" # Replace with the actual user name if required
try:
# Call the GetUserInfo method
response = client.service.GetUserInfo(
ArgComKey=com_key,
PinKey=pin # Adjust according to the service's method signature
)
# Process and print the response
print("User Information:", response)
except Fault as fault:
# Handle specific SOAP faults
print("SOAP Fault:", fault)
except Exception as e:
# Handle other exceptions
print("An error occurred:", e)