[Dev] How to Store Log Message in a Registry File in EI

2019-01-15 Thread Aman Singh
Hi Devs, In WSO2 ESB , I am using a Class Mediator which returns me a "string" as a message which I store say in a Log Mediator. Is there any way possible that I can store this Log message in a Registry File in my EI. Sample Code:- http://ws.apache.org/ns/synapse;>

[Dev] WSDL based proxy for SOAP Calculator

2018-12-20 Thread Aman Singh
Hi Devs, I have a sample WSDL(url below) SOAP service for Calculator, which performs simple operations like Add, Subtract, Multiply, Divide. I want to implement and perform say ADD operation. I have created a WSDL based proxy with required WSDl endpoint, service and port. Can someone please

[Dev] WSO2 small task/ project to practice

2018-12-18 Thread Aman Singh
Hi Devs, I am learning WSO2 ESB and API manager by myself. Basically I am a beginner with understanding of different mediators. Can someone help me with like daily small tasks or some small project to work on. As I believe that working on some projects helps in better understanding of concepts.

Re: [Dev] WSO2 registry query

2018-12-07 Thread Aman Singh
15/invoke-wso2-admin-services-via-soapui-or-postman-d0f6a17fbedf > > > Cheers! > > On Fri, Dec 7, 2018 at 4:05 PM Aman Singh wrote: > >> Hi Devs, >> >> In WSO2 ESB we can get the data that we have stored in registry. Is it >> also possible that we can uplo

[Dev] WSO2 registry query

2018-12-07 Thread Aman Singh
Hi Devs, In WSO2 ESB we can get the data that we have stored in registry. Is it also possible that we can upload some data in registry with the help of WSO2 ESB? or we have to manually upload the data in registry like we usually do? Thank you, Aman.

[Dev] Setting up MySQL in WSO2

2018-11-19 Thread Aman Singh
Hi Devs, I am trying to setup MySQL in WSO2 so that I can use MySQL instead if H2. The steps which I followed is below:- 1) In MySQL workbench I created a database called "sampledatabase". Then I granted permission to it using "GRANT ALL PRIVILEGES ON sampledatabase TO username@localhost;". The I

[Dev] SMTP unable to send simple mail

2018-10-26 Thread Aman Singh
Hi, I have made a sample proxy service which sends mail to any mail ID using SMTP, below is my proxy config code:- http://ws.apache.org/ns/synapse;>

Re: [Dev] Unzip not working WSO2

2018-10-16 Thread Aman Singh
Hi, Basically I don't know the name of the file that will be unzipped, so for that I am using regex in source path. Is something wrong there. Cause if I give specific file name with .zip extension it is successfully able to unzip it. Thanks On Tue, 16 Oct 2018, 15:41 Aman Singh, wrote: >

Re: [Dev] Unzip not working WSO2

2018-10-16 Thread Aman Singh
e mar. 16 oct. 2018 à 09:56, Aman Singh a > écrit : > >> Hi All, >> >> I have created an inbound-endpoint which copies a "zip" file with any >> name from server to local. Below is the code for my inbounf-endpoint:- >> >> &g

[Dev] Unzip not working WSO2

2018-10-16 Thread Aman Singh
Hi All, I have created an inbound-endpoint which copies a "zip" file with any name from server to local. Below is the code for my inbounf-endpoint:- http://ws.apache.org/ns/synapse "> 1000 true true application/octet-stream false true

[Dev] How to Log the file location path

2018-10-15 Thread Aman Singh
Hi, Can someone please explain how to Log the location of a specific file. Suppose I copy a file from server to a local (say D;/folder1/folder2/file.txt). How can I get the file location i.e. D:/folder1/folder2, and show that as a log? I searched on web but not able to find how to do this. Help

[Dev] Using VFS SFTP to copy file from folder to local

2018-10-12 Thread Aman Singh
Hi, I am using VFS SFTP to copy file from server to local, below is my proxy code:- http://ws.apache.org/ns/synapse;> :- "" 300 vfs:sftp://username:password@hostname :22/home/folder1?sftpPathFromRoot=true text/xml MOVE file:///D:/Fail MOVE .*.*

[Dev] Error while copying file from Server to Local WSO2

2018-10-11 Thread Aman Singh
Hi, I am trying to copy files of any format(xml,json etc) placed in my server. I want to copy all files from my server to local machine. The code for copying the file I am using is :- http://ws.apache.org/ns/synapse;> sftp://username:password@hostname

[Dev] Encryption Decryption of a File in WSO2

2018-10-09 Thread Aman Singh
Hi guys, Actually I am trying to do encryption decryption of a file in WSO2. I am successfully able to do it with help of a Java program that uses RSA algorithm and calling it via class mediator. I want to know is there any other way to do this without using Java program? Is there some concept

Re: [Dev] Encrypting and decrypting files in WSO2

2018-10-08 Thread Aman Singh
tor, you can follow the *Basic approach* in the > documentation [1] to deploy the mediator. > > [1] *https://docs.wso2.com/display/EI620/Writing+an+ESB+Mediator > <https://docs.wso2.com/display/EI620/Writing+an+ESB+Mediator>* > > Thanks > > On Mon, Oct 8, 2018 at 11:22 AM Am

[Dev] Encryption and decryption in file transfer

2018-10-03 Thread Aman Singh
Hi All, I am using SFTP to transfer a file placed on my server to my local machine. I am successfully able to transfer it. I want to use encryption and decryption to transfer my securely, like using some public/private key to do that. Is this possible? How can I achieve this? Thank you, Aman.

[Dev] Running Multiple flows one by one WSO2

2018-09-19 Thread Aman Singh
Hi All, I have a simple local-entry file, where I can store 2 inputs as an XML and depending on the input I can parse that XML to route to one condition or the other. Below are the 2 input I can insert in same local-entry file:- *Input 1:-* http://ws.apache.org/ns/synapse;>

[Dev] Parse XML stored as local entry and get value of particular tag

2018-09-17 Thread Aman Singh
Hi All, I have a local Entry File XML named "LocalEntry1". I have also stored it in registry. My Local Entry File Looks like below:- http://ws.apache.org/ns/synapse;> value value value value value value When I am trying to fetch the whole local entry file via below code, I am able to get

[Dev] Printing payload of Payload Factory using Log Mediator

2018-09-15 Thread Aman Singh
Hi Guys, I am very new to WSO2. I Have used a Payload Factory and I have inserted a simple XML as payload in it. How do I print the payload of Payload Factory and view it in console using Log Mediator? My sample code is below:- http://ws.apache.org/ns/synapse;>

[Dev] Transforming message and choice in WSO2

2018-09-14 Thread Aman Singh
Hi all, I am very new to transformation in WSO2. Actually I want to perform a transformation, suppose there are 2 XML messages. I can pass any one of them by keeping them inside Payload Factory. The format of both are as below:- *Message 1:-* value value value *Message 2:-* value value

[Dev] Storing logs in a File

2018-07-30 Thread Aman Singh
Hi Team, Can someone explain me how we can store all the logs which LOG mediator holds in a file?? Any help would be appreciated. Thank you, Aman. ___ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev

[Dev] calling Event Hub with WSO2

2018-07-26 Thread Aman Singh
Hi team, I have created an Event Hub in Azure. To call the Event Hub we use simple GET request as mentioned in Event Hub docs. We also need an "Bearer Token" {authentication key}, to call the request with POSTMAN. If I am calling that Event Hub via WSO2 ESB, using proxy service and attaching a

[Dev] WSO2 ESB and Event Hub (Azure) Connection

2018-07-22 Thread Aman Singh
Hi, I have created some "Event Hub" in Microsoft Azure Portal, can I connect my WSO2 ESB with Event Hub and exchange any kind of information between them? If yes, then what all connector shall I require? Any detailed explanation would be appreciated. Thank you, Aman.

[Dev] Microsoft Azure Event hub Connection with WSO2

2018-07-20 Thread Aman Singh
Hi Team, Can someone please explain me how to connect WSO2 ESB to send and receive nay kind of information to an "Event Hub" created in Microsoft Azure? Would be grateful for your help. Thank you, Aman. ___ Dev mailing list Dev@wso2.org

[Dev] FTP to local file transfer

2018-07-16 Thread Aman Singh
Hi Team, I am trying to copya file from FTP server to local machine, below is my code: - http://ws.apache.org/ns/synapse;> {proxyhost name} {proxyhost port} {proxy username} {proxy pass}