SOAP 1.2 python client

前端 未结 4 850
别跟我提以往
别跟我提以往 2020-12-31 06:40

I am looking for a python SOAP 1.2 client but it seems that it does not exist . All of the existing clients are either not maintainted or only compatible with SOAP 1.1:

4条回答
  •  半阙折子戏
    2020-12-31 07:13

    If you are really wanting to use SOAP 1.2 even though it is not used as a standard as yet, I reckon I can post an answer that requires some work (all for the greater good :)).

    I recommend that you use gSOAP:

    gSOAP - a easy-use, cross-platform toolkit for C/C++ lovers to develop XML-based Web services and XML parsers. Although it is well-known as a Web service development toolkit and has been proved its good performance, it can also be used to create high-performance XML parsers, serializers and deserializers from XML schemas or C/C++ structs/classes. My experimental results demonstrate that the XML parsers generated using gSOAP toolkit run several times faster than xerces-c parsers in either DOM or SAX mode.

    Now, I wish it were that easy. Due to gSOAP being a C++ library, you are going to have to wrap it to be able to use it in Python.

    One way of wrapping the library is to use a tool by the name of SWIG (Simplified Wrapper and Interface Generator). This tool automatically wraps C/C++ libraries for use in high level languages, for example (you guessed it) Python.

    I also recommend you read this PDF file (from page 14) on implementing gSOAP with C++. It is very helpful.

    Using this solution, you can utilize a well looked after library, SOAP 1.2 and a very nice performance ratio. I think you will be quite happy with the results.

提交回复
热议问题