[Soap-Python] Add namespace to each element

John Aherne jjaherne at gmail.com
Tue Jun 11 21:27:15 CEST 2013


Of course what I  meant to say was that I need to add a prefix to each
element when using pysimplesoap.

Sorry about that.

John Aherne


On Tue, Jun 11, 2013 at 8:00 PM, John Aherne <johnaherne at rocs.co.uk> wrote:

> I have been playing with simplesoap for some soap client tests.
>
> So far no problem although it has been very simple stuff.
>
> Now I need to do some more and since I am not too clued up on Soap I have
> become stuck.
>
> I have got a namespace that I declare as ns='jah' and it gets added to the
> body elements as follows
> <jah:Order xmlns="http://www.jahtest.co.uk/">
>      <VndJah>JJA<VndJah/>
>     <ContCode>123456</ContCode>
> </Order>
>
>
> What I would like but can't seem to work out is how I get the namespace
> 'jah' attached to each element.
>
> If anyone has any clues I would be very pleased.
>
> Thanks for any help
>
> --
> *John Aherne*
> *
> *
> *
> *
> *
> *
> *www.rocs.co.uk
> *
> 020 7223 7567
>
> _______________________________________________
> Soap mailing list
> Soap at python.org
> http://mail.python.org/mailman/listinfo/soap
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/soap/attachments/20130611/c4c5a6cd/attachment.html>


More information about the Soap mailing list