I have consumed simple web service for addition of numbers and returns the result in variable which is in the following format
Reshma you have four questions open about this same topic and it's very confusing. Please don't ask any more questions until you have resolved your issue fully. In your case you can use exactly the same method I described in
Inserting Data into SQL Server from variables via SSIS
To generate the string that Raj suggested, then run that in an execute SQL task and capture the result.
The alternative trivial solution is to use string expressions to extract the number from the XML. but that is not 'proper' XML shredding.
Can you clarify, is there a business need behind this or are you just learning about XML? SSIS is not the best tool for shredding and processing XML.