Professional Documents
Culture Documents
on successsful start of the admin server the following message will be displayed at the comand prompt:
2.
Now if we refresh in the admin console the status of the soa_server will be changed to running as shown below:
Now select application server and say new server as shown below:
Now you will be prompted for type of server you want to create:
Now click on Ok
Now provide the application name as shown below:
Click on Next>
Now here we need to select the type of composite we want to develop
We are going to develop composite which will have one bpel process. So select
composite with BPEL process and click on finish.
Once you click on finish our application and project will be created and prompted for
creation of our bpel component as shown below:
By default two complex elements will be created . each of these two will be having one
simple type elements. For our case we need two elements(int type) for input and one
element for output(int type). So we will be editing the complex elements and create the
required. After editing our final xsd will be having the below structure. Click on save all
as shown below
Now double click on SynchAddprocessor.bpel file. Its contents will be displayed under
editing area.
The bpel will be used for implementing business functionality. Here the functionality is
nothing but get the request(consisting of two numbers), perform the addition of those
two numbers and return the result.
Now we have to build an arithmetic expression (sum = number1+number2).
For this drag and drop the assign activity from component palette as shown below:
Now double click on the assign activity. Now the assign activity will be opened. Select
copy operation available under copy operation tab.
E
Now the create copy operation window will be displayed as shown below:
The left hand side variables are the ones based on which we want to build our
expression(number1+number2)
Right hand side variable are the ones to whom we want to assign the result. In our case
we have to assign to sum available under out put variable :
Now expand input variable till number1 and number 2 as shown below:
Now select number 1 and click on insert in to expression. this will inser the number1 in
to the expression area as shown below
Now place the operator + at the end of the expression and insert the number2 as we
did for number1.
The final expression will looks like blelow:
Now click on ok
Now you can see expression in from area as shown below:
Now the result has to be assigned to sum available under output variable. For this
expand the output variable till sum and select the sum.
Now click on ok. This will completes our copy operation and will return to assign
window as shown below:
Next we need to deploy our application to soa server. For this right click on SynchADD
and say deploy as shown below:
Click on next>
Click on Next>
Select the application server connection(murali_appserver) and click on next
Click on finish>
This will start the deployment process
If everything went well we can see our component got deployed successfully under
deployment log.
Just click on our synchAdd this will load the default test environment on right side as
shown below: here click on test
Now come down and provide the input as shown below and click on test webservice:
Now if you want to test the web service again repeat the process.