i define routing for example :
Creates policies
htt
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 g
hi
i try to routing url with query param but i got the 400 server code .
http://{{fromUrl}}/billing/{paymentMethod}/{product}/{frequency}?matchOnUriPrefix=true"/>
http://{{toUrl}}/metadata/billing/{paymentMethod}/{product}/{frequ
i found the solution:
i need to change the contectType to json and removing the marshal
--
View this message in context:
http://camel.465427.n5.nabble.com/rest-to-soap-tp5783547p5783570.html
Sent from the Camel - Users mailing list archive at Nabble.com.
how can i change the Content-Type to appliation/json
my response contain the json object but Content-Type=text/xml
response example :
HTTP/{0} {1} {2} Content-Type: text/xml; charset=UTF-8
Accept-Encoding: gzip,deflate breadcrumbId:
ID-PortalBus-64186-1465288361638-0-80 Expires: -1 matchOnU
when i routing from soap to rest and than i marshal the response , i didn't
get the response as a json format.
http://{{fromUrl}}/bankValidation?matchOnUriPrefix=true"/>
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.
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.
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";
/>
http://loclahost:8081/met
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")
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();
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 l
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:
http://camel.465427.n5.nabble.com/Routing-with-logic-tp578
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)
newReque
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 Nabbl
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
http://www.springframework.org/sche
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
{
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 process(Exc
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],
Content-Length=
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
{
now i process the request :
public void process(Exchange exchange) throws Exception {
* String payload =
exchange.getIn().getBody(String.class);
JSONObject jsonObj =
JSONObject.fromObject(payload);*
public void configure() throws Exception {
from("jetty:http://localhost:8080/json?matchOnUriPrefix=true";).process(new
Processor() {
@Override
public void process(Exchange exchange) throws Excepti
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.
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 als
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: org.apache.camel.http.co
hello
I need to build REST-SOAP gateaway
JaxbDataFormat jaxb = new JaxbDataFormat(false);
jaxb.setSchemaLocation("C:\\Users\\miri.eyni\\Desktop\\wsdl\\a.xsd");
from("jetty:http://localhost:8080/json?matchOnUriPrefix=true";).marshal(jaxb).to("http://localhost:
26 matches
Mail list logo