[snip]
Florian Rosenberg wrote:
That is exactly what I did but for my case it does not seem to work, there
is no XML validation, at least I don't get any error even if I omit
required attributes etc. have to investigate what could be the reason. Even
though, the validation does not seem to work for me, e.g.:
<service name="AddPostSpliceService"
promote="AddPostSpliceComponent">
<interface.java
interfaceERROR="com.ibm.sca.implementation.splice.SpliceService" />
</service>
<component name="AddPostSpliceComponent">
<tuscany:implementation.splice flow="tns:AddPost"
contentType="application/x-www-form-urlencoded" />
</component>
The interface attribute is wrong here but Tuscany throw the following error
instead of giving me a validation error:
Are you seeing this problem only after adding your schema to
tuscany-sca.xsd? or already with the unchanged tuscany-sca.xsd?
If you're seeing the problem with the unchanged tuscany-sca.xsd, which
revision of the trunk or 1.0 branch are you using?
I just tried to add the following to the sample-calculator
Calculator.composite:
<service name="CalculatorService" promote="CalculatorServiceComponent">
<interface.java interfaceERROR="calculator.CalculatorService"/>
</service>
and when I run it I see:
WARNING: XMLSchema validation problem in:
file:/home/delfinoj/Tuscany/apache-repos/java/sca/samples/calculator/target/classes/Calculator.composite,
line: 26, column: 3
cvc-complex-type.4: Attribute 'interface' must appear on element
'interface.java'.
The XMLschema validator will not complain about the interfaceERROR
attribute as the schema allows for <anyAttribute>. However it seems to
correctly report the missing interface attribute.
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]