cxf:myCXFBean?address=${in.headers.addressToSendTo}

Is not working.

I have deployed same service one or more places, Service is same only
address is defferent.
I want to provide service address at runtime.

when i get value from header which is i have set get following exception

Caused by: java.net.URISyntaxException: Illegal character in path at index
1: ${in.headers.ServiceUri}
        at java.net.URI$Parser.fail(URI.java:2848)[:1.8.0_45]
        at java.net.URI$Parser.checkChars(URI.java:3021)[:1.8.0_45]
        at java.net.URI$Parser.parseHierarchical(URI.java:3105)[:1.8.0_45]
        at java.net.URI$Parser.parse(URI.java:3063)[:1.8.0_45]
        at java.net.URI.<init>(URI.java:588)[:1.8.0_45]
        at
org.apache.cxf.transport.http.HTTPConduit.getURI(HTTPConduit.java:734)[123:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-620133]
        at
org.apache.cxf.transport.http.HTTPConduit.getURI(HTTPConduit.java:722)[123:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-620133]
        at
org.apache.cxf.transport.http.HTTPConduit.setupAddress(HTTPConduit.java:678)[123:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-620133]
        at
org.apache.cxf.transport.http.HTTPConduit.prepare(HTTPConduit.java:487)[123:org.apache.cxf.cxf-rt-transports-http:3.0.4.redhat-620133]
        ... 85 more

In my camel route

<to pattern="InOut"
uri="cxf:bean:SpWebService?address=${in.headers.ServiceUri}"/>










--
View this message in context: 
http://camel.465427.n5.nabble.com/CXF-endpoint-s-address-dynamically-modified-tp3349431p5774808.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to