I need to create one esb flow.
first use http inbound to post json.
on basis of post json I get filename.
fetch that file from ftp server.
drop that file to another ftp server
call external api
is we can do this using esb?
I am using first http-inbound to post json then
ftp-inbound to fetch file but I am getting error?
You cannot use http inbound and ftp inbound or any other inbound together in same flow directly..
Multiple inbound endpoints can be called in a same flow by using Mule Requester.
Using this Mule Requester, you can call any inbound endpoints in the same flow. Please check this for your reference :- http://blogs.mulesoft.org/introducing-the-mule-requester-module/ and examples to use it :- https://github.com/mulesoft/mule-module-requester/blob/master/mulerequesterdemo/src/main/app/MuleRequesterDemo.xml
Related
I am fairly new to the IoT. I have created a thing on Aws and I have created a client .Everything works fine when I test the set up. I am unable to parse the message sent from the client to the Aws IoT.
Any Suggestion would be helpful
You can create a Rule and use SQL statements to parse or filter messages sent by your things.
.
For example: You can insert those messages into dynamodb or s3, or call a lambda function to process further.
Check this link for more information.
I'm new to Apache NiFi, and I developed an application to send JSON data to a NiFi endpoint via HTTP POST request.
In Apache NiFi, I have a HandleHTTPRequest processor connected to a PutFile processor then a HandleHTTPResponse processor. I've also tried using a LogAttribute processor. The response code and HTTP message from the NiFi web service is working properly, but I'm trying to make sure my JSON payload is being sent properly. Post is enabled in the HTTPRequest handler. Yet, the only files it's generating are blank and 0kb in size. Any ideas?
Based on the comments above the conclusion is that there was no problem on the side of Nifi.
It's definitely an issue with the Java code, I used postman again after changing some local firewall configurations and it successfully logs any POST requests that are sent to it and puts it in a file
The key step towards resolving the issue was trying to connect with something like Postman as #Binary Nerd and #Brian Bende suggested.
I'm sending JSON data from my Java application to my local webserver with my PHP script that is receiving this message. Now as far as I know I can only view what has been received by for example inserting the data in a database. Is there a way/application to view the live POST requests sent to my PHP webserver?
I like to use fiddler for these kinds of tasks if the java HTTP library has support for proxies. Fiddler will list all information about the HTTP requests that is available. It will by default log all HTTP requests across your system, but can be told to limit to one application.
You can try setting your httpd logging level to verbose or (depending on what httpd it is) try to use extension that would do log all the data send in requests
For debugging purposes why not just write the POST data to a file?
i.e.
file_put_contents(<some filename>, $HTTP_RAW_POST_DATA);
I'm programming a chat but i have troubles on finding informations and/or examples regarding the HTTP tunneling. The chat, when initialized, starts his own server thread that manages the incoming messages. That said i need to send strings of data to another client's server via http tunneling. Is that possible ? how can i do that ?
HTTP Tunelling is an encapsulation of other protocols that use the TCP stack.
For example you could define the messages exchanged for chat among the various endpoints e.g. in XML and then put the XML in the HTTP POST body.
There are plenty of examples of this in the internet.
Just search for REST or Web services (this includes SOAP which is also tunnelled in HTTP)
There is a chat example demo web application bundled in activeMQ. You can find it here.
I am developing a java console client using a third party web service. After I point to their WSDL, I am able to get their code and send SOAP request and response. I want to log those transactions in a log file. Any idea on how to log a SOAP message at the client side.
Thanks in advance,
Praveen G.
Webservice Stacks provide convenient out and in interceptors for intercepting outgoing requests and incoming responses both on the client and server side. You should be able to use this feature to log outgoing requests from your client and incoming responses, here is a sample using Apache CXF and using Spring-WS