Anonymous Anonymous - 2 months ago
335 0

No description

Python

soaptest

import requests
from bs4 import BeautifulSoup



querystring = {"wsdl":""}


with requests.Session() as s:
    url = "https://www.passendlezen.nl/iguana/Proxy.UserActivities.cls/"
    headers = {'content-type': 'text/xml', "SOAPAction": 'CheckCredentials', 'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36'}
    body = """<?xml version="1.0" encoding="UTF-8"?>
    
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
    <SOAP-ENV:Body><CheckCredentials><Language>dut</Language><Profile>Iguana</Profile><CspSessionId>DIKmAuvklc</CspSessionId><LogonId>mijn_id</LogonId><Password>mijn_pass</Password>
    </CheckCredentials></SOAP-ENV:Body></SOAP-ENV:Envelope>"""

    r = requests.post(url, data=body, headers=headers, params=querystring)

    print(r.text)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download