I have a .Net web application that is front-ending the ESB in order to create Proxies programmatically.
I am trying to push a xml proxy into the ESB path: repository/deployment/server/synapse-configs/default/proxy-services/ via FTP but it seems not to work.
I was trying this connection: ftp://admin:admin#localhost:9443/repository/deployment/server/synapse-configs/default/proxy-services/
There is any other way to upload my XML in the ESB? many thanks
EDIT: I know that one answer could be "yes, you can do that by using admin services", but that didn't work for me due to lack of documentation regarding adding proxies via admin services. So I am looking at alternatives like FTP, because I know that placing the xml directly in the Repo folder will work, the problem is accessing the folder.
As I understand, you are trying to use FTP to upload a file to a path. This doesn't involve invoking WSO2 ESB, does it?
Based on above understanding, it seems your port specified in FTP address is incorrect. I think you should use the port of the FTP server you are running in your machine. Unless you haven't edit its config, it should be 21. After this change, you need to provide absolute path instead of relative path /repository/...
Think about it as just another FTP upload. ESB automatically deploy any file that comes to /repository/deployment/server/synapse-configs/default/proxy-services/ regardless of how it came there.
Hope this helps!
I was looking for a proper way to add a proxy to the ESB, possibly using ws-admin services, but that wasn't really straightforward: problem with repositories, libraries etc...
I ended up with a quick a dirty solution: secure java ftp to the server (with jsch )in the proper folder of the proxies.
Thanks for your help anyway
You could create your proxy within the Web Interface of WSO2 (use a Web Browser):
localhost:9443/carbon/admin/login.jsp
Or add the proxy by just copying the file
mv myProxy.xml MY_WSO2/repository/deployment/server/synapse-configs/default/proxy-services/myProxy.xml
An FTP connection to localhost:9443 will not work. Otherwise explain why you need to use FTP?
Related
I have a service bus project (on 12.2.1.0.0) in JDeveloper which polls file via SFTP transport (proxy service) and depending on file extension process should place it in directory1 or directory2. I have actually now configured SFTP transport also as business service however I am unable to find in documentation or in OSB a configuration for passing this dynamically changing output directory. I know I could use FTP adapter on weblogic, but that's "not" an option here due to the fact I do not have access to that weblogic and can not create it.
Any ideas?
Thanks a lot
Since the target directory is hardcoded in the URL, your only option, as far as I can tell, is to have 2 Biz services - each with its own directory in URL - and dynamically route to one or another based on your criteria.
I'm developing an app which downloads the files from ftp server. However the ftp folder may differ during each run. The ftp folder to be polled is provided by the user.
I noticed the spring documentation mentions remote-directory-expression use but I'm not sure how can I use this for the parameters supplied by a user.
Inputs please.
The expression can reference any bean via #someBean.someMethod().
You might find it easier, however, to use the FTP outbound gateway to get specific files.
Is omnisharp server similar to IIS express? Let's say I have a project folder which has only html files, I start the ominisharp server through atom text editor. It gets started and says listening at port xxxx
If I browse localhost://xxxx/index.html will it serve that file?
I am newbie please clarify
No, the point of the Omnisharp server is not to be a general purpose web server - it's to act as a service. Think of it as an "IDE service" that just happens to exposed itself over HTTP, as that's the easiest way for many clients to talk to a service.
Unless you need to integrate something with Omnisharp yourself (i.e. writing code to be a client), you can probably just think of it as a plugin for whatever you're using. (In most cases there will be an actual plugin, which then talks to Omnisharp.)
I tried searching on net for hours but couldn't get any useful answer. It would be of great help if I could be provided with a code accomplishing this.
I have IP address of a remote server which is password protected (it needs user name and password to login)
I need to write a code in VB.NET that creates a folder in this remote server and copies a file from local server (in which the code is executing) to the remote server.
thanks in advance
This is not technically possible, its a way of hacking.
Thats why we have other technology to do it i.e. FTP, SFTP, Webdav.
I would suggest you to do same, use either of above technologies and do your stuff.
We are trying to setup a chain of proxy server in our development system. We wanted to connect to a service through these proxies. The reason why we thought about proxy chaining is that there is no connectivity to the service from all the systems. So we thought we will run a proxy on one system, which will connect to a proxy on another system and so on.
Client ---> A (Proxy)--->B(proxy)---->Final destination
Could you please suggest some tools to achieve this? The service that we have is a SOAP based secured web service.
There is an open source application called ProxyChain for this, here is readme file for this project:
http://proxychains.sourceforge.net/howto.html
You can install as more as proxy chains you want using this open source software, you can configure it per your requirements. Also you can somehow use some port-forwarding. What is the client for SOAP requests? Is it a web or desktop application?