Open GoogleCodeExporter opened 9 years ago
Could you test:
client = SoapClient(wsdl="issue138.wsdl", trace=True, ns="ns")
ns="ns" should generate the following xml:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:ns="http://geocodegateway"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<ns:geocodeAddressRequest>
<appId>blah</appId><address><streetLine xmlns="http://geocodegateway">1 Some St</streetLine><suburb xmlns="http://geocodegateway">Some Suburb</suburb><state xmlns="http://geocodegateway">SS</state><postcode xmlns="http://geocodegateway">1234</postcode></address></ns:geocodeAddressRequest>
</soapenv:Body>
</soapenv:Envelope
It seems that is not honoring the qualified attribute value in
elementFormDefault, so that topic needs some debugging
I don't have free time right now to review this (if this is urgent, please
contact me via email), but you can check in client.py and simplexml.py if it is
handled ok and/or trying to tweak it
Original comment by reingart@gmail.com
on 27 Feb 2014 at 5:50
Yes, passing an ns parameter results in the xml format as per your comment.
The server still throws the NullPointerException as the string elements
(<suburb> etc...) of the address type have xmlns="http://geocodegateway".
Thanks
Original comment by lukepinn...@gmail.com
on 27 Feb 2014 at 10:40
Original issue reported on code.google.com by
lukepinn...@gmail.com
on 27 Feb 2014 at 2:46Attachments: