Hi, <br>&nbsp; I am using a mechanism to annotate a python script, and at the deployment time I am reading the annotations and mapping the types defined in the python script to xml schema types(This is done inside java).But the problem I am facing is , since python is dynamically typed how should I map the date , time types , complex types?(I have attached below some sample code to give you an idea). The information in [1] gives a bit of an idea but it does not give any detail description.I will be grateful if anyone can give me any direction on mapping python types to xml schema.(either in python or in java)<br>
<br>// my java imports<br>import org.apache.ws.commons.schema.constants.Constants;<br><br>// my java code<br>&nbsp;&nbsp;&nbsp; HashMap simpleTypetoxsd = new HashMap();<br>&nbsp;&nbsp;&nbsp; simpleTypetoxsd.put(&quot;int&quot;, Constants.XSD_INT);&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // i.e. I am mapping my &quot;int&quot; annotation to schema type XSD_INT<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; simpleTypetoxsd.put(&quot;integer&quot;, Constants.XSD_INT);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; simpleTypetoxsd.put(&quot;Integer&quot;, Constants.XSD_INT);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; simpleTypetoxsd.put(&quot;double&quot;, Constants.XSD_DOUBLE);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; simpleTypetoxsd.put(&quot;Double&quot;, Constants.XSD_DOUBLE);<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; simpleTypetoxsd.put(&quot;string&quot;, Constants.XSD_STRING);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; simpleTypetoxsd.put(&quot;String&quot;, Constants.XSD_STRING);<br><br><br>[1] - <a href="http://jython.org/Project/userguide.html#calling-java-methods-and-functions">http://jython.org/Project/userguide.html#calling-java-methods-and-functions</a><br clear="all">
<br><br>Thanx in advance<br><br><br>-- <br>Regards,<br>Heshan Suriyaarachchi