Prerequisites
----------------------------------------------------------
You should deploy rest service war in App server with port offset=1

Rest Process
----------------------------------------------------------
Process will call the user rest service.

1)First process will put user with given name and id by using put operation.
2)Then it will update the username appending with @wso2.com by using post operation.
3)Then process will get the user for given id by using get operation.
4)Finally user will be deleted by using delete operation.

Sample input
----------------------------------------------------------
<body>
   <p:UserRestProcessRequest xmlns:p="http://wso2.org/bps/sample">
      <!--Exactly 1 occurrence-->
      <id xmlns="http://wso2.org/bps/sample">10</id>
      <!--Exactly 1 occurrence-->
      <name xmlns="http://wso2.org/bps/sample">Waruna</name>
   </p:UserRestProcessRequest>
</body>

Sample output
----------------------------------------------------------
<UserRestProcessResponse xmlns="http://wso2.org/bps/sample">
   <tns:put xmlns:tns="http://wso2.org/bps/sample">
      <result xmlns="">Waruna for id : 10 was added.</result>
   </tns:put>
   <tns:post xmlns:tns="http://wso2.org/bps/sample">
      <result xmlns=""> Name of user id: 10 was changed to Waruna@wso2.com</result>
   </tns:post>
   <tns:get xmlns:tns="http://wso2.org/bps/sample">
      <username xmlns="">Waruna@wso2.com</username>
   </tns:get>
   <tns:delete xmlns:tns="http://wso2.org/bps/sample">
      <result xmlns="">user id: 10 deleted.</result>
   </tns:delete>
</UserRestProcessResponse>