camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kriti <kriti.tan...@ge.com>
Subject Does camel provide a provision to deal with special characters in an address URL?
Date Thu, 27 Oct 2016 05:55:26 GMT
Hi All,

We have a camel route that reads a webservice request url from a properties
file and sends a request to that url. If the url contains a ? in the middle
of the url string, we get the following error from Camel-

Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
resolve endpoint:
xds-iti41://3.204.37.239:8086/CCA/unsecured_web?services%2Frev6%2Fxdsb-provideandregister=
due to: Failed to resolve endpoint:
xds-iti41://3.204.37.239:8086/CCA/unsecured_web?services%2Frev6%2Fxdsb-provideandregister=
due to: There are 1 parameters that couldn't be set on the endpoint. Check
the uri if the parameters are spelt correctly and that they are properties
of the endpoint

The url looks like the one below-

xds-iti41://3.204.37.239:8086/CCA/unsecured_web?services/xdsb-provideandregister

Even if we try to modify the url to have ? in its encoded form (%3F), it
gives the same exception. The url used here looks like this-

xds-iti41://3.204.37.239:8086/CCA/unsecured_web%3Fservices/xdsb-provideandregister

Is there a way Camel can deal with this kind of a situation where we need to
have special characters like ? in the address?

Thanks and Regards,
Kriti 



--
View this message in context: http://camel.465427.n5.nabble.com/Does-camel-provide-a-provision-to-deal-with-special-characters-in-an-address-URL-tp5789316.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message