LoggingOutInterceptor

2017-05-11 Thread miri eyni
i define routing for example : Creates policies

RestContext

2016-07-19 Thread miri eyni
while i define the route under restContext and body request contain empty string ,when i take the body from the exchange , i got the body only with the name but value is null for example : { "id": 836, "gender":"", "smoker":0, "dateOfBirth":"1980-01-01", "occupation":2 } i

query param

2016-06-08 Thread miri eyni
hi i try to routing url with query param but i got the 400 server code . http://{{fromUrl}}/billing/{paymentMethod}/{product}/{frequency}?matchOnUriPrefix=true"/>

Re: placeHolder

2016-05-31 Thread miri eyni
thanks working :) -- View this message in context: http://camel.465427.n5.nabble.com/placeHolder-tp5783268p5783286.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Routing question

2016-05-31 Thread miri eyni
thanks for your answer. in this case i am lose the orig request? -- View this message in context: http://camel.465427.n5.nabble.com/Routing-question-tp5782945p5783285.html Sent from the Camel - Users mailing list archive at Nabble.com.

placeHolder

2016-05-30 Thread miri eyni
hi, i configure the routing with place holder , the context up correctly but when i invoke the url i got "This site can’t be reached" http://properties:{{fromUrl}}/occupations?matchOnUriPrefix=true; />

restConfiguration problem

2016-05-26 Thread miri eyni
hi , i try to expose rest API , i attach my code, but when i try to invoke it http://localhost:8085/metadata/occupation i got "The connection can't be made" restConfiguration().component("netty4-http").bindingMode(RestBindingMode.json) .dataFormatProperty("prettyPrint", "true")

process failed

2016-05-25 Thread miri eyni
hi i am try in process method call to another API for get metadata that should be part of the request for the target endpoint public void process(Exchange exchange) throws Exception { ProducerTemplate template = exchange.getContext().createProducerTemplate();

Re: Routing question

2016-05-25 Thread miri eyni
i didn't try it. where can i store the responses values? i need call to different APIs to get metadata before i call to target request ? thanks -- View this message in context: http://camel.465427.n5.nabble.com/Routing-question-tp5782945p5783058.html Sent from the Camel - Users mailing

Routing with logic

2016-05-23 Thread miri eyni
hi i need to implement routing with processing. processing the request should read from different APIs (external API ) for create a new request to the endpoint. how is the best way to implements it? -- View this message in context:

Routing question

2016-05-23 Thread miri eyni
hi , i need to implements routing with logic. i will get the request , processing the request should read from different APIs (external API) to make a new request for the endpoint. for example : process (){ S1 = consume API1 s2 = consume API2 s3= consume API3 newRequest.setS1(s1)

Re: dataFormats error

2016-05-22 Thread miri eyni
i solved my problem: http://localhost:8080/json?matchOnUriPrefix=true"/> -- View this message in context: http://camel.465427.n5.nabble.com/dataFormats-error-tp5782885p5782892.html Sent from the Camel - Users mailing list archive at

dataFormats error

2016-05-22 Thread miri eyni
this is my xml : http://www.springframework.org/schema/beans; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance; xmlns:cxf="http://camel.apache.org/schema/cxf; xsi:schemaLocation=" http://www.springframework.org/schema/beans

marshel

2016-05-22 Thread miri eyni
hi i routing from rest to soap : from("jetty:http://localhost:8080/json?matchOnUriPrefix=true;). process(new Processor() { @Override public void process(Exchange exchange) throws Exception {

Re: rest to soap

2016-05-16 Thread miri eyni
i converted the json to xml i try to send soap request from rest , on the process method i converted the body to xml but i think i am missing somethings , from - is rest url to - is webService url (soap) from("jetty:http://localhost:8080/json?matchOnUriPrefix=true;) public void

Re: rest to soap

2016-05-16 Thread miri eyni
thanks, i fixed the url but now i got status code :500 i check the server.log and its look like the request is a rest request instead of soap.request Content-Type: application/soap+xml Headers: {alis-datasource-key=[1], breadcrumbId=[ID-HLLT-PC0A4F7B-53348-1463390080537-0-2],

Re: rest to soap

2016-05-16 Thread miri eyni
the same error. i am also tested : from("jetty:http://localhost:8080/json?matchOnUriPrefix=true;). process(new Processor() { @Override public void process(Exchange exchange) throws Exception {

Re: rest to soap

2016-05-16 Thread miri eyni
now i process the request : public void process(Exchange exchange) throws Exception { * String payload = exchange.getIn().getBody(String.class); JSONObject jsonObj = JSONObject.fromObject(payload);*

rest to soap

2016-05-16 Thread miri eyni
public void configure() throws Exception { from("jetty:http://localhost:8080/json?matchOnUriPrefix=true;).process(new Processor() { @Override public void process(Exchange exchange) throws

Re: routing from rest to soap

2016-05-11 Thread miri eyni
did yo add org.apache.camel camel-spring-ws -- View this message in context: http://camel.465427.n5.nabble.com/routing-from-rest-to-soap-tp5782352p5782368.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: routing from rest to soap

2016-05-11 Thread miri eyni
thanks for your answer my code is : JaxbDataFormat jaxb = new JaxbDataFormat(false); jaxb.setSchemaLocation("C:\\Users\\m\\Desktop\\wsdl\\p.xsd"); getContext().getProperties().put("CamelJacksonEnableTypeConverter", "true"); // allow Jackson json to convert to pojo types

Re: routing from rest to soap

2016-05-09 Thread miri eyni
2016-05-09 11:23:31.805 ERROR 9036 --- [qtp860455612-19] o.a.camel.processor.DefaultErrorHandler : Failed delivery for (MessageId: ID-HLLT-PC0A4F7B-58710-1462776374921-0-6 on ExchangeId: ID-HLLT-PC0A4F7B-58710-1462776374921-0-5). Exhausted after delivery attempt: 1 caught:

routing from rest to soap

2016-05-09 Thread miri eyni
hello I need to build REST-SOAP gateaway JaxbDataFormat jaxb = new JaxbDataFormat(false); jaxb.setSchemaLocation("C:\\Users\\miri.eyni\\Desktop\\wsdl\\a.xsd");