Informix server with SQLI protocol and DRDA Protocol at same time - informix

In order to make IBM Data Server client to connect to my Informix server, I need to configure it to use the DRDA protocol.
My question is: will I be able to keep the old SQLI protocol too after configuring the DRDA protocol?

Yes. You need to make sure both SQLI and DRDA protocols are configured in the ONCONFIG file and the SQLHOSTS file. You'll also need to make sure that you are using different port numbers for each of the protocol listeners.

Related

Which transport protocol does IdHTTP use

I have been asked by a company to document that our client only communicates to our server over the TCP protocol on a software level. I have always assumed that IdHTTP utilizes TCP but I am not sure how to prove it. I have not been able to find it in the documentation.
TIdHTTP is ultimately derived from TIdTCPConnection, so it uses TCP by default 1.
1. Though this can be changed by assigning a non-TCP based TIdIOHandler-derived component to the TIdHTTP.IOHandler property.

Spring-AMQP RPC container

Exist a container on the spring-amqp that support a reply-to feature?
I want make RPCs like https://www.rabbitmq.com/tutorials/tutorial-six-java.html, but using spring-amqp.
Yes. Documentation here.
On the server side, the message listener container, when used with a message listener adapter will automatically handle the replies. You can also use the template's ...receiveAndReply methods on the server side.
EDIT
Note that we now have Spring Boot implementations of all 6 tutorials.

how to address a soapinterface on localhost?

I have to consume a webservice with delphi-XE3 to retrieve information from a distant webserver on base of a unique number that I must send with my xml request.
I have the linkadress of the WSDL file that I can import into my project, but I have not a URL for sending my request to.
Instead according to the administrator of the remote webservice I have to address the SOAP interface on localhost and in the WSDL file the defurl is defined as:
<<<http://localhost:8080/.....>>>>>>
So my question is: how to do that ?
All the examples that I found of consuming a website with Delphi are with an external URL to send the request to, but I found none that retrieves distant information by means of listening to localhost.
Do I have to install an additional program or where do I find a tutorial to manage this.
Thank you for any help
You know, it is not really a Delphi question, aren't you?
This question is more of the protocol, IDE or test environment kind.
Anyway:
If you want to test your application on your local host, you have to have an instance of the server software to provide the service you wish to use. If you don't have it and still want to test locally (and you are totally aware of the answers the server should send), you can fake it by setting up an RPC or (at least) a HTTP server on your computer, but I would not recommend it, since it will only test your application against your expectations instead of a real life scenario.

Monitor the Custom Url Protocol Messages - Delphi

As you know the custom url protocol is a feature that allow us to make a communication between a web page and our application. For example, Y! Messenger uses this protocol when you want to send a pm to another person through a web page:
Click to send pm
Now, the question is how can I monitor(hook) all custom url protocol messages in the windows? Is it possible to catch them?
Iterate over the contents of the registry, looking for registered custom protocols. Those will be children of the HKey_Classes_Root key that have a value named URL Protocol. Each time you find one, record the default value of the shell\open\command key, and then replace it with a command line pointing to your program.
When your program is invoked, do whatever you need to do, and then invoke the original program using the command line you recorded earlier.
You can register your own protocol: Can Delphi be used to create and handle a custom protocol handler? Just add few keys in user's registry (protocol name and application to launch). It is similar to register file extension. Simple example is here.
I'm not sure that you can catch every request. Antivirus programs can do that, but at driver-level.
You might want to take a look at Fiddler HTTP Web Debugger, which intercepts all HTTP traffic by being a temporary proxy.
It is not written in Delphi, but should give you a good idea on how to approach your problem.

Connect with TTcpClient through a http proxy

How can i connect to a server through a http proxy server in delphi?
What about SOCKS5 proxy?
Google doesn't have any suggestion!
If you're using Indy (highly recommended), then try using a TIdConnectThroughHttpProxy object from the IdConnectThroughHttpProxy unit. It's a descendant of TIdIOHandler, so connect an instance of that class to your client object's IOHandler property. To connect through a Socks server instead, use TIdSocksInfo, in IdSocks.
If you're set on doing it manually, without the aid of a protocol library like Indy, then connect your TTcpClient object to the proxy server's address instead of the real destination, and then send your commands there. The proxy server knows where to send the request either because you issue a CONNECT command to it, or because you specify a full URL (instead of just the path portion) in the GET request. (The HTTP spec demonstrates the latter.) The response you'll get should be forwarded from the destination server, unless the proxy server has an error itself.
I think you can do it using Indy. You may find information in the Indy in Depth ebook.
Hope this helps.

Resources