I guess you can use other modules such as http_client to interact with the web service. The jansson module can be used to parse the result.
Also, it should be possible to do it without interacting with the web service, because you can compute the password using the shared secret key. So, in this case, Kamailio doesn't need to interact with the web service.