Comments (8)
Can you try:
with open("test.xml") as f:
c = client.service.MyMethod(f.read())
print(c)
?
from python-zeep.
Still the same error appear for same parameter
The InnerException message was 'There was an error deserializing the object of type System.Int32. The value '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
+my_xml_file
cannot be parsed as the type 'Int32'.'. Please see InnerException for more details.
from python-zeep.
It seems that the endpoint expects an integer and you might be sending a string?
from python-zeep.
Yes this is true but is there possibility to put Integrer in file?
its look like this:
<tem:parameter>18039</tem:parameter>
from python-zeep.
Sorry, i'm not sure i'm following you. What is it you want to achieve? If the method argument is supposed to be an integer you should pass an integer, not a string.
from python-zeep.
Well i try to pass xml document and send it to webservice. Just checking if this is possible
from python-zeep.
Ah, yeah you can't pass pre-generated soap documents into zeep currently. Not sure what the exact use-case would be for that. Is the document generated by zeep incorrect?
from python-zeep.
Closing for now. Sending pre-generated soap documents isn't supported (generating the documents is what this lib is for).
from python-zeep.
Related Issues (20)
- Certificate verify failed: self signed certificate HOT 2
- Can't insert any type into SOAP envelope
- not connected to PTZ camera HOT 1
- zeep.exceptions.Fault: The action requested requires authorization and the sender is not authorized -> profile = media.GetProfiles()[0]
- The nginx/openresty SOAP to REST library based on zeep.
- Ensure that CompondValue class as a __values__ attribute in __init__
- zeep.exceptions.XMLParseError: Unexpected element HOT 1
- UNSAFE_LEGACY_RENEGOTIATION_DISABLED due to OpenSSL 3.0 HOT 1
- DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13 HOT 5
- RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection
- Wrongs Namespace
- while requestHeader method generates header based on operation name soaptype returns request header
- passing a composite element to a service operation HOT 1
- does it support multiple return values? HOT 1
- Access to HTTP request? HOT 1
- NS0
- [4.2.1] Validation Error Exception
- Cloudflare and <soap:Header>
- Zeep fails to parse `24:00:00` as `xsd:time` (ValueError: hour must be in 0..23)
- Add a network pytest mark for tests that use the network
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-zeep.