Questions tagged [zeep]

Zeep: Python SOAP client

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

395 questions
2
votes
0 answers

How to iterate through an OrderedDict contained in another object generated by Zeep?

I've used Zeep to call a SOAP API and return an object whose ._dict_ attributes list looks like this: {'__values__': OrderedDict([('Ids', { 'Id': [ { 'Name': 'ID Name One', 'Value': '00192' }, { …
2
votes
1 answer

Zeep vs Requests for SOAP APIs in Python

So I know that Python's requests module can be used to handle REST APIs, and as per this answer here, requests can also handle SOAP APIs as well. I've worked only with REST APIs so far, but of the few people I know who work with SOAP APIs, they…
Aditya Singh
  • 332
  • 2
  • 12
2
votes
0 answers

Zeep : Prevalidate with type checking

Is there way to validate payload with type-checking with zeep? Zeep checks for missing elements but sends payload even when type is incorrect. Example, I have element: When I…
Adam
  • 459
  • 2
  • 17
2
votes
1 answer

How to send multiple values under single tag of SOAP Request in zeep python

I need to send request like this: 324007
AWS_Developer
  • 508
  • 11
  • 32
2
votes
1 answer

Writing blank values from soap retrieved using SimplifiedDoc using python

I am retrieving a SOAP envelope from an endpoint and then attempting to pull the data from the fields. I'm using simplified_scrapy and this has worked correctly but for empty values, it throws an error. The SOAP/xml string is loaded into a variable…
Stephen Yorke
  • 197
  • 1
  • 3
  • 13
2
votes
1 answer

Can't Move PTZ Camera using ONVIF Protocol -Python Client

I am trying to move a ptz camera using the onvif client wrote in python from github I can connect to the camera Bosh 7000 Autodome. I am using the example to test move operation Here is my object to use like argument for the ContinuousMove…
snake678
  • 21
  • 1
  • 2
2
votes
2 answers

Python Zeep WSDL Unexpected Elements Traceback

I can't handle this below. XMLParseError: Unexpected element 'metadata', expected 'id' error. I also try strict=False settings but that time zeep returned as none. from zeep import Client import zeep wsdl =…
tugrulv
  • 31
  • 5
2
votes
1 answer

How to generate complete XML template for a SOAP web service using Zeep

You know how SOAPUI can generate a complete XML template for a SOAP web service? I want to do that, but using the Python module Zeep. I'm following the first example from here. I'm also referencing the Zeep Documentation. Note: the web service I'm…
ChaserAide
  • 111
  • 1
  • 7
2
votes
1 answer

Zeep python SOAP client sending empty value in the argument

There is an external SOAP server that I'm trying to connect and make requests using the python-django framework with the zeep library. The WSDL dump is as follows: Prefixes: xsd: http://www.w3.org/2001/XMLSchema ns0: http://tempuri.org/ Global…
Emad
  • 346
  • 1
  • 6
  • 17
2
votes
0 answers

Python Zeep library and error (Unable to resolve type {http://xml.apache.org/xml-soap}Map)

In a documentation to connect to an Soap API I have this code in PHP and it works : define('WSDL_SERVER', 'http://api.belboon.com/?wsdl'); // SOAP options (http://de.php.net/manual/de/soapclient.soapclient.php) $config = array( 'login' => '', …
Julien
  • 357
  • 2
  • 11
2
votes
1 answer

How to fix "zeep.exceptions.ValidationError: Missing element Value"

I am integration Endicia SOAP and I got this error: "Missing element %s" % (self.name), path=render_path) zeep.exceptions.ValidationError: Missing element Value (GetPostageLabel.LabelRequest.Value) And here are my code: import xml.etree.ElementTree…
John.L
  • 23
  • 1
  • 5
2
votes
1 answer

How to format xml request from a WSDL with zeep in Python

I have an example of xml request that should go to the SOAP server like so:
Dahider2
  • 21
  • 1
  • 5
2
votes
1 answer

Make zeep use default namespace instead of named namespace in some cases

I'm using Zeep to send requests to a SOAP 1.1 API supplied by a vendor, the API is built on WCF but seems to have some specific peculiarities. Zeep is currently generating XML like this
Elliot Hughes
  • 967
  • 1
  • 9
  • 19
2
votes
1 answer

Escape Reserved Keywords Python

I am using ZEEP to connect to NetSuite. One of the parameters that I need to pass to NS when creating the invoice is 'class'. If I understand correctly, the reason the following line does not compile is because 'class' is a reserved keyword. invoice…
tkansara
  • 534
  • 1
  • 4
  • 21
2
votes
0 answers

Using wssecurity when consuming a webservice with zeep

So I have been trying to consume a webservice that requires the use of wssecurity. I got a .p12 file that I have divided into two .pem files. One that contains the private key and the other that contains the certification file by using openssl.…
Mnemonics
  • 679
  • 1
  • 10
  • 26