Revision history [back]

click to hide/show revision 1
initial version

ajxmlcop and ajcodegen.py contradict one another

What ho;

I made what I believe is the simplest introspection possible.

<node name="/com/test" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.allseenalliance.org/schemas/introspect.xsd"> <interface name="com.Test"> <method name="Beep"> </method> </interface> </node>

And ajxmlcop says this:

WARNING-24: interface 'com.Test' is missing annotation org.alljoyn.Bus.Secure="true" WARNING-29: interface 'com.Test' missing description element WARNING-30: method 'com.Test.Beep' missing description element INFO-43: consider adding a uint16 Version property to interface 'com.Test'

But, if I add the annotation and descriptions

<node name="/com/test" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.allseenalliance.org/schemas/introspect.xsd"> <interface name="com.Test"> <annotation name="org.alljoyn.Bus.Secure" value="true" /> <description>Test</description> <method name="Beep"> <description>Beep</description> </method> </interface> </node>

and then run ajcodegen.py it says this:

`Input XML file = 'testcode.xml'. Object path = '/ignored/not/relevant'. Output path is '.'. Target language option is 'ddcpp'. Well known name = 'com.test'.

Warning! Ignoring interface annotation 'org.alljoyn.Bus.Secure'. Found here: <interface name="com.Test"> <annotation name="org.alljoyn.Bus.Secure" value="true"/> <description>Test</description> <method name="Test"> <description>Test</description> </method> </interface>

Warning! Ignoring interface xml object 'description'. Found here: <interface name="com.Test"> <annotation name="org.alljoyn.Bus.Secure" value="true"/> <description>Test</description> <method name="Test"> <description>Test</description> </method> </interface>

Warning! Ignoring method xml object 'description'. Found here: <method name="Test"> <description>Test</description> </method>

Done.`

The directly contradict each other. Any help would be greatly appreciated.

Tally ho,

Jo3