[Soap-Python] Client sending nil="true"

Mariano Reingart reingart at gmail.com
Mon Oct 27 18:29:03 CET 2014


Hello Paul:

There was a pending pull request in the pysimplesoap library with a patch
to send this kind of nil values in responses:

https://github.com/pysimplesoap/pysimplesoap/pull/24

It is merged now, you could download the latest development version from
the github repo:

https://github.com/pysimplesoap/pysimplesoap

https://github.com/pysimplesoap/pysimplesoap/archive/master.zip

If you can test it and report if that solves your issue, that would be very
helpful.

Let us know if we could further help you

Best regards

Mariano Reingart
http://www.sistemasagiles.com.ar
http://reingart.blogspot.com

On Fri, Oct 24, 2014 at 3:58 PM, Paul Thach <paul.thach at weather.com> wrote:

> I was looking for a way to send nil="true" from the client code.
> Something like this:
>
> <sch:targetName xsi:nil="true" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"/>
>
>
>
> Here my Connection:
>
> client = SoapClient(
>      wsdl="https://localhost/wsdl",
>      trace=True,
>      soap_ns='soapenv',
>      namespace='http://localhost/schema',
>      location='https://localhost/HttpSoap11Endpoint',
>      ns = 'sch')
>
> Client Request (need to send an element with attribute and set to nil
>
> client.RequestCmd(
>
> user=user,
> password=pasword,
> # Need to send  <sch:clientOSUser xsi:nil="true" xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"/>
> )
>
> Thanks,
>
> *Paul Thach | *System Engineer
> O: 770.226.0000 ext 4343
> M: 404.259.4573
>
>
> _______________________________________________
> Soap mailing list
> Soap at python.org
> https://mail.python.org/mailman/listinfo/soap
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/soap/attachments/20141027/210901f1/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: E4599955-6065-4367-A664-C1C226E2D3FE[4].png
Type: image/png
Size: 35884 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/soap/attachments/20141027/210901f1/attachment-0001.png>


More information about the Soap mailing list