Questions tagged [zeep]

Zeep: Python SOAP client

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

395 questions
2
votes
1 answer

In Python, how to set _soapheaders for Zeep using Dictionaries?

In working with a SOAP api, the wsdl spec describes the api key passed in the header in a complex namespaced structure as well as additional non-namespaced XML that relates to a paging mechanism for accessing bulk results…
Liquidgenius
  • 639
  • 5
  • 17
  • 32
2
votes
1 answer

How to remove mandatory wsdl field if it's empty in zeep

I'm using zeep to handle some SOAP requests in Python and I've come across a situation for which I couldn't find any documentation (neither here, on SO, or their official docs). First of, I created a factory: factory =…
Grajdeanu Alex
  • 388
  • 6
  • 20
2
votes
1 answer

How to generate a List with zeep?

I'm using the Python library zeep to talk to a SOAP service. One of the required arguments in the documentation is of type List and in the WSDL I found this:
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
2
votes
0 answers

zeep.exceptions.Fault: The message with To '' cannot be processed at the receiver, due to an AddressFilter mismatch at the EndpointDispatcher

I am integrating BSE StarMF (https://github.com/utkarshohm/mf-platform-bse) in Django 2.0.2 and python 3.6. I am registering user through create_user_bse(user_id). While calling getPassword, I am receiving this error: "zeep.exceptions.Fault: The…
Dharm Shah
  • 61
  • 3
2
votes
0 answers

Create a request with zeep that includes AnyObject types

This is basically the same question as here: creating any object with python zeep I am working on a Python script that includes SOAP API calls. Mostly these are working but I am having a problem with one. I have SOAPUI example working, it looks…
geolobrad
  • 21
  • 1
2
votes
0 answers

Couldn't create request xml for the soap client creating using zeep

I am using python-3.7 and zeep to create a soap client for a web service. I am able to hit the endpoint after a long struggle but I am not sure how to create request.xml for the service. from requests import Session from zeep import Client from…
VelNaga
  • 3,593
  • 6
  • 48
  • 82
2
votes
2 answers

Python Zeep - Missing element for Any

I have the follow python code used to consume WS using Zeep. date_ = date.today().strftime('%d-%m-%y %H:%M') # '2016-08-01 00:00:00' destination = {'column': 'destination', 'value': destination, 'type': 'string'} doc_date = {'column': 'doc_date',…
Nathan30
  • 689
  • 2
  • 8
  • 29
2
votes
1 answer

Python - How to Set Custom Fields using NetSuite webservices

I'm trying to be able to set a custom fields in NetSuite using webservices. The WSDL I'm using is: https://webservices.netsuite.com/wsdl/v2017_2_0/netsuite.wsdl Currently I'm testing it on creating a customer. Here's what I have so far: def…
bogus
  • 457
  • 5
  • 16
2
votes
1 answer

Python Zeep - how to set attributes for element

I have request like:
? ?
Piotr W.
  • 31
  • 4
2
votes
0 answers

how to pass nested data in zeep as a parameter {schema: , _value_1: ANY}

I am trying to call service PushConstContractParcels of a wsdl soap service the problem is that I don't know how to send schema parameter in zeep package
Amir Naimi
  • 133
  • 3
  • 13
2
votes
1 answer

python3 zeep url gives 401 client error: unauthorized for url

my command: python3 -mzeep https://pearson:m0bApP5@cms.powerschool.com/pearson-rest/services/PublicPortalServiceJSON?wsdl I get an error: requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url:…
user7903682
  • 199
  • 1
  • 1
  • 18
2
votes
1 answer

How to login to website using soap zeep in python. check the xml of post

My wsdl Login method xml: Host: 127.0.0.1 Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://tempuri.org/Login"
NicK
  • 27
  • 1
  • 9
2
votes
1 answer

how to specify xsi:type zeep python

Im using zeep SOAP client for python, trying to get some data to some wsdl_address. i now have following: ambCase = {'data1':'value1', 'data2':'value2'} client = zeep.Client(wsdl=WSDL_Address) result = client.service.MethodName(GUID,…
2
votes
2 answers

Connection refused when using zeep SSL

I am trying to access a SOAP server using zeep. My server uses SSL with a custom certificate, and connection to that server works, with my cert, or ignoring it: python -mzeep "https:///servicemanager/1?wsdl" --no-verify I get a long list…
nerdoc
  • 1,044
  • 10
  • 28
2
votes
1 answer

How to add timestamp to signature with zeep?

I am trying to create a client that consumes WSDL file and produces a proper SOAP message. This is how I'm creating the client: client = Client( wsdl=wsdl ,transport = transport ,wsse = Signature('key.pem', 'cert.pem') …
ierdna
  • 5,753
  • 7
  • 50
  • 84