merged config is not schema valid
---------------------------------
Key: SWITCHYARD-423
URL:
https://issues.jboss.org/browse/SWITCHYARD-423
Project: SwitchYard
Issue Type: Bug
Components: configuration
Reporter: Keith Babo
Assignee: David Ward
Fix For: 0.2
errantepiphany: let's say I have an auto-generated config from a Camel Java DSL route
that produces the following config:
<composite
xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
name="soapcamel"
targetNamespace="urn:switchyard:application:soapcamel">
<service name="MyTest" promote="MyTest">
<binding.soap
xmlns="urn:switchyard-component-soap:config:1.0">
<wsdl>wsdl/Test.wsdl</wsdl>
<serverPort>18000</serverPort>
</binding.soap>
</service>
<component name="MyTestBuilder">
<implementation.camel
xmlns="urn:switchyard-component-camel:config:1.0">
<java class="org.soapcamel.MyTestBuilder"/>
</implementation.camel>
<service name="MyTest">
<interface.java interface="org.soapcamel.MyTest"/>
</service>
</component>
</composite>
errantepiphany: but I want to add a reference to that generated config
1:15
lanceball is now known as lancelunch
1:15
kcbabo
errantepiphany: the user's switchyard.xml just looks like this at first:
<composite
xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
name="soapcamel"
targetNamespace="urn:switchyard:application:soapcamel">
<service name="MyTest" promote="MyTest">
<binding.soap
xmlns="urn:switchyard-component-soap:config:1.0">
<wsdl>wsdl/Test.wsdl</wsdl>
<serverPort>18000</serverPort>
</binding.soap>
</service>
</composite>
errantepiphany: so I add this:
<component name="MyTestBuilder">
<reference name="AnotherEndpoint"/>
</component>
1:16
jgraham_ left the room (quit: Remote host closed the connection).
1:16
kcbabo
errantepiphany: the merged config picks up the reference correctly, along with the other
stufff
errantepiphany: so that's all good
errantepiphany: but the merged config is not schema valid
1:17
errantepiphany
kcbabo: what does the merged config look like?
1:17
kcbabo
<component name="MyTestBuilder">
<reference name="AnotherEndpoint"/>
<implementation.camel
xmlns="urn:switchyard-component-camel:config:1.0">
<java class="org.soapcamel.MyTestBuilder"/>
</implementation.camel>
<service name="MyTest">
<interface.java interface="org.soapcamel.MyTest"/>
</service>
</component>
1:17
errantepiphany: so reference is in the wrong spot
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira