I m a newbie, learning SSIS. Currently I am trying to get data from webservice and import it to database table. When establishing the connection to the server. Is it possible to send it using variable instead of hardcoding it in HTTP connection manager Editior?
Right-click on the connection manager and select "Parametrize". The rest of it should be self-explanatory.
Related
I have a django application every api hit in django creating one db connection to handle that request and basically this is an overhead as this is creating several connections if there are multiple requests to handle so I want to have db connection pooling or persistent connection for efficient handling.
I have gone through the django doc for this as there is CONN_MAX_AGE parameter but that doesn't solve the problem as that won't be using older connection to handle new request so what should be the best way to manage open db connections.
I want to insert a Json content from android cell phone (as client) into my MySQL database (in server). In order that, at first, I send this Json content from my client to my server which runs a HTTP server using Qt application in C++. Next in C++, I call a MySQL stored procedure to insert the received Json into my database. As we see, there is an interface in C++ (HTTP Server) which I'm going to omit it.
I want to know, is there an approach like running HTTP server in MySQL to handle the above process without a HTTP server in C++? (So I can send the Json content from my client to my MySQL database directly.)
No, the MYSQL server does not expose a JSON interface. You'd have to interact with the MSQL server directly using this. So no JSON, but direct SQL queries to your MYSQL server.
If you don't want to do that, a http webserver is not the only option, but it's probably the most sensible solution.
I'm using wso2-am 2.
I have enabled analytics (from api-manager.xml) and modified DASServerURL to use port 7714 instead of 7712.
But I'm getting theses exception:
org.wso2.carbon.databridge.agent.exception.DataEndpointSecurityException: Error while trying to connect to ssl://localhost:7712
at org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftSecureClientPoolFactory.createClient(ThriftSecureClientPoolFactory.java:61)
It look like it is still using the old port 7712?
A second question, I know that the api manager is persisting the configuration in it's database, so my question is: if i modify for example api-manager.xml, will it update the new setting in the DB or how to force this update?
Thanks
You have to change port settings in two places.
<APIM_HOME>/repository/conf/api-manager.xml
<APIM_HOME>/repository/conf/log4j.properties only if you have added DAS_AGENT to log4j.rootLogger
By default analytics distribution port offset set to 1 in carbon.xml. But it seems you have set it to 3. Make sure to change the port in above two places.
The answer to your second question is, API-M persist API data in the database. There are certain server configurations such as user data, registry data persisted in the database. But above configuration is not persisted and if you changed it, you have to restart the server to effect that.
Hope this would help you.
1.if your DAS offset is 3. You should set the tcp port is 7614 and restart your APIM. your 7612 is configed in apim, cannot change on admin-dashboard.
2.when you change the *.properties or *.xml.I suggest you restart your app.
I have written a client application in C++ using websockets in Unix Environment trying to connect a Node.js/Socket.IO server running in a LAN connectivity. I found the server application is not responding at all. I tried a couple of other options from client side eventually getting no response from the server. Basically, i am trying to send a JSON object to the system running SocketIO server, but the client is not getting connected even if the server listens on to a Port.
Help, is really appreciated. Thank you.
Make sure following has been checked-
Server running and port is open (firewall) - Client is unable to connect the server
Url is correct - Client is unable to connect or url not exist
Listener code or receiving task is running - Client connected but when server send data to client, client didnot receive data
JSON format is correct and json data does not contain invalid character - client send data server but server did not received
Follow -
remove date if exists into msg for test purpose, use " to prepare JSON data, donot put / end of the url if not required. example-
1. Write url as ws://abc.com:8080/wsserver
2. JSON data as {"name":"myname","yourname":"indo","msg":"birthday"}
If I create a web service in Delphi XE as CGI executable, what's the best way for it to return data to a client? Say the server uses ADO to access SQL server and the data is stored in a TADODataSet component - what's the best way to get it back to the client through a web service call? Do I need to convert it to XML and return it as a string and have the client recreate it?
With the DataSnap framework it is possible to send dataset between server and client(s).
See more here : can-delphi-2009-build-web-service-that-returns-a-dataset