Webservice credential storage [duplicate]

Try looking at this: How to store username and password to API in wordpress option DB?

tl;dr:

  • use OAuth, if the web service supports it, or if the web server is run by yoursefl
  • Store the data encrypted in the database, using as encryption wordpress installation-wide unique keys, ad you can see in the link.