On Tue, Feb 25, 2014 at 10:51 AM, nono <[email protected]> wrote:
> Thanks for the hints. I tried to define list as below.but it does not work
> what namespace should I use for blueprint for using List ? where could I
> find such information?
>

Check the blueprint project
http://aries.apache.org/modules/blueprint.html

which unfortunately hasnt documented with examples to well.

The XSD has some pointers
http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd



>     <list id="secureStartList">
>         <value>userid</value>
>         <value>password</value>
>         <value>command</value>
>     </list>
>
>
>     <setBody>
>       <simple>${ref:secureStartList}</simple>
>     </setBody>
>
> I got the exception
> Caused by: org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid
> content was found starting with element 'list'. One of
> '{"http://www.osgi.org/xml
>         at
> org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown
> Source)[:]
>         at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown
> Source)[:]
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)[:]
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)[:]
>         at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown
> Source)[:]
>         at
> org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown
> Source)[:]
>         at
> org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown
> Source)[:]
>         at
> org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown
> Source)[:]
>         at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown
> Source)[:]
>         at
> org.apache.xerces.jaxp.validation.DOMValidatorHelper.beginNode(Unknown
> Source)[:]
>         at
> org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown
> Source)[:]
>         at
> org.apache.xerces.jaxp.validation.DOMValidatorHelper.validate(Unknown
> Source)[:]
>         at org.apache.xerces.jaxp.validation.ValidatorImpl.validate(Unknown
> Source)[:]
>
>
> My blueprint header is as below
>
> <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0";
>            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:camel="http://camel.apache.org/schema/blueprint";
>
> xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0";
>            xmlns:cxf="http://cxf.apache.org/blueprint/core";
> xmlns:prop="http://camel.apache.org/schema/placeholder";
>            xmlns:sec="http://cxf.apache.org/configuration/security";
> xmlns:http="http://cxf.apache.org/transports/http/configuration";
>            xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws";
> xmlns:camelcxf="http://camel.apache.org/schema/blueprint/cxf";
>            xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>         http://www.osgi.org/xmlns/blueprint/v1.0.0
> http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
>         http://cxf.apache.org/configuration/security
> http://cxf.apache.org/schemas/configuration/security.xsd
>         http://cxf.apache.org/blueprint/jaxws
> http://cxf.apache.org/schemas/blueprint/jaxws.xsd
>         http://cxf.apache.org/blueprint/core
> http://cxf.apache.org/schemas/blueprint/core.xsd";>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/How-to-set-List-in-setBody-Blueprint-DSL-tp5747851p5747926.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: [email protected]
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Reply via email to