Sodium cocoate is produced by hydrolysis of the ester linkages in coconut oil with sodium hydroxide, a strong base.
References
^R. Marc Dahlgren; et al. "Effects of Bar Soap Constituents on Product Mildness". In A. R. Baldwin (ed.). Second World Conference on Detergents. p. 127.