As far as I know, you could begin by:
- Defining where to put the code. Wich model or controller should be responsible for this behavior
- Then, add the dependency to that class:
use SoapClient;
- Create a method that does the job
- Put your code in that method
Saludos,