Child pages
  • Simple Python webservice client

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.



In real production environment you will automatically modify XML request in runtime (e.g. changing location, period etc.). You can do this by using of XML request templates when only particular data will by replaced (e.g. lat, lng, name, dateFrom). In such case the python native The ElementTree XML API can be helpful for XML manipulation. Creating new requests from scratch can be easier by using some "XML data binding" technology. First you generate python objects from Solargis XSD schema documents. Then you can use the python objects for marshalling (serializing python objects into XML text) and unmarshalling (deserializing XML text into python objects) either for the request or response. The PyXB package can be used (


PvPlanner web service

1. Download this file of sample XML request: pvplanner_demo_request.xml