1. Create a SOA Project.
2. Create a schema with input and output.
3. Create a DVM. Right click on SOA folder>Click New>Domain Value Map. Give DVM Entries as below. Click OK.
After clicking OK, you'll see the DVM design view as below.
Click on plus(+) icon to add more values and save it.
4. Now, drag and drop a BPEL with Synchronous interaction type. Select the input and output values from the schema that is created.
Double click on BPEL. Drag and drop an assign activity between Receive and Reply.
Edit the Assign activity to assign input to output variable. As I used two input variables, I concatenated them in output. Give the dvm lookup value as below.
Click OK.
Now Save all and deploy your project.
5. Test the web service by giving input values.
DVM converts the city code to city name.
Happy Learning!!
No comments:
Post a Comment