Questions tagged [zeep]

Zeep: Python SOAP client

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

395 questions
2
votes
2 answers

How to add wsu:Id attribute using zeep?

I have the following python code to set up header for a SOAP request: ebsheader = xsd.Element( '{http://ebs.health.ontario.ca/}EBS', xsd.ComplexType([ xsd.Attribute( 'Id',xsd.String() ), xsd.Element( …
ierdna
  • 5,753
  • 7
  • 50
  • 84
2
votes
1 answer

Zeep Soap Python, trying to create headers

I am using zeep to connect to api. this api wants authentication in headers. I have api key and i have secret key, now my question is how to use this with zeep? I somehow just don't understand the logic in Zeep documentation, would anyone please be…
Testing man
  • 677
  • 1
  • 12
  • 28
2
votes
1 answer

Python zeep overview of the services available

I have been working with python zeep to inspect the WSDL document and generates the corresponding code to use the services and types in the wsdl document. The code below is a short example. It partially works. The problem is: These parameters is not…
2
votes
0 answers

How to construct xml element with attribute using python zeep?

I'm trying to contact SOAP api with xml defined as: http://www.etrzby.cz/assets/cs/prilohy/EETXMLSchema.xsd . I've used this question ( How to construct SOAP message with pysimplesoap? ) and created following code in python : import zeep import…
Ardos
  • 21
  • 1
2
votes
1 answer

Python Zeep Client request throws error in xml exception

When I run the following code, I keep getting the following error: here is an error in XML document (113, 25). ---> The string '' is not a valid Boolean value. I do not understand why this is happening. Here is the documentation and according to it…
rishran
  • 596
  • 2
  • 7
  • 26
1
vote
0 answers

Zeep request leaves out attributes

I've been trying to find an answer to this question, but with no luck so far. I have a very specific problem. I'm using Zeep to do a Soap request. And it seems like Zeep leaves out attributes that are required for the SOAP client. Below is the XML…
Frej
  • 11
  • 2
1
vote
0 answers

How to fix error 500 Soap With python Zeep?

i having this error when i make the request to the Soap Server, i check all the parameter requested but give me the same error i need help! Request from server: `message = { 'channel': { 'type': 'f12', 'name':…
1
vote
1 answer

Creating a soap mock server in flask

I've been using zeep as a client in my application to request data from SOAP APIs and I now want to build a simple mock server that returns some XML data. I thought I wouldn't need to build a true soap server and rather I'd just respond to requests…
1
vote
0 answers

How can I sign the wsa:To, wsa:Action and wsa:MessageID elements in WS-Security header in SOAP request with python zeep

I am trying to connect to a SOAP dataservice that requires both WS-Addressing and WS-Security. So far, I have managed to get a request with a signed body and a signed timestamp. But I also need to add signatures for the wsa:To, wsa:MessageID and…
KSchouten
  • 11
  • 2
1
vote
0 answers

zeep's AsyncClient does not seem to be working as intended

I'm trying to use zeep's AsyncClient to do asynchronous pulls and I don't seem to be getting the asynchronous aspect of it as intended. I understand on some level that the AsyncClient is synchronous due to the WSDL load but I don't think that…
1
vote
0 answers

How to pass multiple parameters for SOAP function using Zeep?

I am accessing a Web Service using Zeep. From the wsdl of the web service, there are multiple functions/operations. All of them they take "strings" as inputs. I was able to access and get outputs from all the functions using the code below: from…
Mohammed
  • 23
  • 3
1
vote
1 answer

WSDL: How to define operation/message which accepts any XML document as input and output (for python zeep client)

I have to communicate with some kind of proxy service which gets an XML document in-lined inside and passes it further. The problem is that this service provides broken WSDL with operation defined as operation() -> None but it actually needs…
Seweryn Niemiec
  • 1,123
  • 2
  • 13
  • 19
1
vote
0 answers

Zeep AWS lambda

Thanks in advance for helping me. I tried multiple times to upload zeep library in AWS lambda but it never works. I tried this one: http://bedrosovayulia.blogspot.com/2019/...-zeep.html https://github.com/JFox/aws-lambda-lxml Even downloaded the…
celeborn
  • 308
  • 2
  • 13
1
vote
1 answer

Signed payload is not valid when using signxml but xmlsec one is valid

Could you help me to find out why the two libraries (signxml and xmlsec) do not sign the same. The signature accepted by the server is xmlsec. Code sign signxml: signer = XMLSigner( method=methods.enveloped, signature_algorithm="rsa-sha1", …
Krish V
  • 486
  • 1
  • 5
  • 19
1
vote
1 answer

Python: xmlsec.VerificationError: Signature is invalid Error, even after receiving HTTP 200 and successful response

I have the following code - import os import requests import urllib3 from zeep import Client, Settings from zeep.transports import Transport from requests import Session from requests_pkcs12 import Pkcs12Adapter from zeep.wsse.signature import…
Sugata Bagchi
  • 123
  • 11