Giter VIP home page Giter VIP logo

Comments (8)

mvantellingen avatar mvantellingen commented on May 10, 2024

Can you try:

with open("test.xml") as f:
    c = client.service.MyMethod(f.read())
    print(c)

?

from python-zeep.

Kozubi avatar Kozubi commented on May 10, 2024

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.

mvantellingen avatar mvantellingen commented on May 10, 2024

It seems that the endpoint expects an integer and you might be sending a string?

from python-zeep.

Kozubi avatar Kozubi commented on May 10, 2024

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.

mvantellingen avatar mvantellingen commented on May 10, 2024

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.

Kozubi avatar Kozubi commented on May 10, 2024

Well i try to pass xml document and send it to webservice. Just checking if this is possible

from python-zeep.

mvantellingen avatar mvantellingen commented on May 10, 2024

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.

mvantellingen avatar mvantellingen commented on May 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.