As I mentioned earlier, I have used Resttemplate directly for debugging. When I invoke using RestTemplate.exchange, it returned the client request html page. I have tried with all kind of...
Type: Posts; User: Mission; Keyword(s):
As I mentioned earlier, I have used Resttemplate directly for debugging. When I invoke using RestTemplate.exchange, it returned the client request html page. I have tried with all kind of...
It is the same java.lang.String only
Yes. This is the method that I invoked from RestTemplate class
public <T> T getForObject(String url, Class<T> responseType, Object... urlVariables)
Below is my gateway configuration:
<int-http:outbound-gateway id="example" request-channel="requests" url="http://localhost/test" http-method="GET" expected-response-type="java.lang.String"
...
I am trying to invoke a rest service from SI using http:outbound-gateway. When I look at the source code of SI, I believe that it in turn using RestTemplate.exchange method in...
Thanks for the reply.
I tried to do the same with Spring without using spring integration. I tried with this class "org.springframework.ws.client.core.WebServiceTemplate". Here also, it was not...
I want to invoke a soap web service, which I have done it successfully. I will explain the flow as :
GATEWAY --> HEADER ROUTER --> TRANSFORMER --> WEBSERVICE HEADER ENRICHER --> WEBSERVICE...
Hi,
I have tried with "MQQueueConnectionFactory" by providing the following information:
1. Host Name
2. Port
3. Queue Manager
4. User credential
5. Queue Name
It is able to listen to the...
I have configured my spring integration with http-gatway. Depending on the a header value "Request-type", I will route to either JSON-to-object or xml marshaller. This work perfectly if the...
Hi,
I am able to listen to an Active MQ using "int-jms:message-driven-channel-adapter" and
"org.springframework.jms.connection.CachingConnectionFactory" by providing the conection factory for...
Thanks. I am able to use "destination-expression" in <jms:outbound-channel-adapter/> and change the destination dynamically. However, it would have been really good if we could do this functionality...
I dont find "destination-expression" in <jms:outbound-channel-adapter/> . I am using spring integration 2.1 version.
Hi,
As I have informed you before, the above configuration is working fine.
I have a requirement where depending on the result from the service activator, I need to forward to different queue. As...
Hi,
I have a JMS inbound gateway which listens to JMS message and then I need to invoke a third party web service. After receiving the response from the web service, I will be replying the reponse...
Thanks you all for your help. It worked perfectly for me.
As you have suggested to use "jms:inbound-gateway" for request and reply JMS message. I can mentioned the request queue name inside "request-destination-name". However, I do not find a way to...
Thank for the reply. My below question may be very silly but wanted to clarify. I want to send JMS message as java object from my spring integration application. In my other application, I wanted to...
Can you please provide "jms:inbound-gateway" configuration where I need to mention the listening queue name and the reply queue name or direct me to any sample code for the same?
Also I am...
Thanks for the reply.
I am able to configure my spring integration to listen to ActiveMQ JMS message using "<int-jms:message-driven-channel-adapter" and then forward the message to an service...
I have a requirement where I need Spring Integration to be a listener for the JMS message. After receiving the message, it needs to process and it will act as a JMS producer.
Can you please...
I have a small problem, when I used
payload-expression="T(String).valueOf(#requestParams.userId)", it convert the LinkedList to a String. However the string contain this character [].
Suppose...
Thanks. It solved my problem.
Thanks for the reply.
I am able to pass the value as parameter to my service activator method. However, the payload that I received is of the type Map<String, List<String>>.
Can it be possible to...
Hi,
I want to develop a spring integration "GET" method which accept my user id as a query string like:
http://localhost:8080/test/services/getUserService?userId=12
Can you let me know, how...
The xml payload that I develop using Spring integration with JIBX marshaller/unmarshaller is as follow:
1. Create a default [http:inbound-gateway] for all the requests with request and reply...