Questions tagged [zeep]

Zeep: Python SOAP client

Zeep: Python SOAP client http://docs.python-zeep.org

395 questions
2
votes
1 answer

Send VISCA commands to IPcamera using python-onvif-zeep or valkka and sendreceiveserialcommand service from DeviceIO

The problem I have recently acquired an Active Silicon IP-camera and I have been trying to control it using python-onvif-zeep or valkka. The camera implements the ONVIF Profile S standard. I would like to send zoom in / our, focus and other basic…
ekptwtos
  • 101
  • 2
  • 11
2
votes
1 answer

query wsdl with python zeep module

I'm trying to send SOAP request with Python Zeep. Here is my code: from zeep import Client url = 'localhost:8081/ws/?wsdl' def smev_grr(): client = Client(url) itSystem = '00000000' nodeId = 'my_node' factory =…
lomach
  • 53
  • 7
2
votes
1 answer

UsernameToken with Timestamp token || Python || WS-Security (WSSE)

I should recreate this part of the payload using python.
2
votes
1 answer

Using PEM format of JKS key to sign soap with zeep package returns Error: zeep.exceptions.SignatureVerificationFailed

I have to sign a soap request using .JKS key in python but since i couldn't find any way to do that I turned the format into .PEM and then used zeep to send the request: signature = Signature('client.key.pem', 'client.crt.pem') self.client =…
2
votes
0 answers

Zeep got an unexpected keyword argument in operation

I'm trying to send a request to a WSDL WebServices. According to documentation, the requests must be formatted in XML. I'm using Python and Zeep module. The operation a want to use is called 'Consulta' and parameters are called 'Comercio' and…
NaejF
  • 109
  • 1
  • 8
2
votes
0 answers

Server returning 404 error while consuming functions of BSE SOAP Apis

I was integrating bsestar mf soap api's with django. So in order to consume soap apis i have use python package called zeep. but after creating its client on its end point and after that whenever i try to run soap functions it says 404 error. my…
2
votes
0 answers

Create xsd.Element with specific namespace naming in Zeep

I'm trying to create a custom SOAP header element using Zeep which uses several namespaces. When doing so, They are named ns0, ns1 and so on. For example: usernametoken_header =…
Halvor Holsten Strand
  • 19,829
  • 17
  • 83
  • 99
2
votes
0 answers

Add certificate in plain text in requests.Session and Zeep

How can I add certificates (cert) to the requests.Session object in plain text? I am now storing my certificatkey in AWS with Secrets Manager. The problem is that now I do not want to have a file on the server (I am using lambdas), now I want to…
RodriKing
  • 822
  • 2
  • 10
  • 20
2
votes
0 answers

Zeep - invalid security for wsse password type

We are using "BasicHTTPBinding WSS Type - PasswordText" authentication. I can successfully send the request manually using SoapUi tool, but in Zeep below code throws 500 internal server error and the response is An error occurred when verifying…
Vinoth Vasu
  • 53
  • 1
  • 1
  • 6
2
votes
0 answers

Generate webservice server from WSDL file

first of all I know there is similar question but it has more than 11 years so it's not quite new. I am trying to create mock webservice from WSDL (+xsd) file, but I cannot find any solution in python frameworks for it. I was trying to create Zeep…
Misieq
  • 507
  • 2
  • 12
2
votes
2 answers

Problem with validation of SOAP request with Zeep (python)

I have problems to get SOAP request through Zeep, I get a (client) validation error... I have also tested with SoapUI and that does NOT give me the same validation error... The specification below is from the server... Based on that specification,…
Tobias Gårdner
  • 103
  • 1
  • 9
2
votes
1 answer

Soap call using pfx or p12 authentication in Zeep or suds library Python

I want to use SOAP call service using .p12 certificate file. I tried below code. But it throws path error. Is there any solution for this, in suds python3? *TypeError: stat: path should be string, bytes, os.PathLike or integer, not X509* from…
sripandianman
  • 35
  • 1
  • 6
2
votes
0 answers

Soap request works fine in Soapui but not in python - ZEEP - SUDS

I have a request to a soap webservice which is working fine in SoapUi. I'd like to call this webservice in a python script. I tried some modules : zeep, suds,... but I always have an SSL error. Here are the infos…
Albéric
  • 21
  • 2
2
votes
0 answers

ArrayOfArrayOfString in SOAP call with zeep in Python

I'm trying to call a soap webservice. https://api.accounting.twinfield.com//webservices/finder.asmx?wsdl It takes ArrayOfArrayOfString as a parameter. When I do a get_type on it, emptyArrayPlaceholder =…
2
votes
2 answers

Python / Zeep / SOAP proxy problem (I think)

I am trying to get this to work: Practitioner notes -> Python scripts for automation in NA -> Python client to invoke NA SOAP APIs Here is my code (sanitized a bit): #! /usr/bin/env python3 from requests import Session from zeep import Client from…
Linux Dan
  • 21
  • 1
  • 3