This page walks you through the development of a complete sample application. It includes the following sections:
...
Now we want to enable JMS transport, since this service will communicate via JMS transport. To enable this, we need to add following block to services.xml under /src/main/resources/META-INF.
< transports > < transport >jms</ transport > </ transports >
Now your services.xml will look like below.
...
As displayed in the console log, you can see that the MainframePojoService and CardAxis2Service have been deployed to WSO2 Application Server. Go to management console in the browser and check for Deployed Services.
If you click on the MainframePojoService and check for Endpoints section, you will see a JMS endpoint. This is because we have specified transport for this service as JMS.
If you check on other service CardAxis2Service, you will see both HTTP and JMS transport endpoints are available.
Now we are going to create proxy services to abstract the above two services.
Create Proxy Services to abstract the Mainframe
...
We will assume the mock services are already being deployed in to WSO2 App Server. Deploy the CAR file to WSO2 DSS, then to WSO2 ESB, and finally to WSO2 BPS. You can deploy Carbon Application from the management console of each server. Go to Manage -> Applications -> Add.
Once you click this link, you will be prompted to select the CAR file you have saved to your file system. Upload it, then watch the console for messages that the CAR file has been deployed and the appropriate services have also been deployed.
...
On the right hand side of the screen, under WSDL details, you will find a Create Instance link.
Click this link. A new tab will open up displaying two windows for the request and response messages. The request message has been formatted for you and you only have to enter values into the appropriate placeholders.
1. Test the account opening process with a new customer
Enter a random integer value for nid and a string for name. Also enter the string CURRENT for accountType. Click Send. The response should be displayed in the other window with four fields including a card number.
2. Test the account opening process with an existing customer
Click Send again without changing any of the values in the request. The response displayed in the other window now only has two fields. One of them is a new account number. Significantly, there should be no field for card number because existing customers already have debit cards.