On 12/05/11 17:44, Frank Millman wrote:
> I have started to look at this, but I am battling a bit. I did not have suds
> installed, and when I did install it I battled to convert it to python3. It
> now imports ok, but I don't know if it is 100%.

Hi Frank,

I've also made a comment on github because it'd be easier to read than
an email.

https://github.com/arskom/rpclib/issues/113#issuecomment-3018892

Here's it is:

Put this in a file named request.xml:

<SOAP-ENV:Envelope xmlns:ns0="rpclib.examples.binary"
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
   <SOAP-ENV:Header/>
   <ns1:Body>
      <ns0:get>
         <ns0:file_path>/tmp/test.dat</ns0:file_path>
      </ns0:get>
   </ns1:Body>
</SOAP-ENV:Envelope>


and run this in your shell:

python -c 'print "".join(map(chr, xrange(256)))' > /tmp/test.dat
python binary_soap.py &
sleep 2
curl -d @request.xml http://locahost:7789

using curl, you don't have to have suds installed.


best,
burak


_______________________________________________
Soap mailing list
[email protected]
http://mail.python.org/mailman/listinfo/soap

Reply via email to