So I need to use the webservices of x.com
something like https://x.com:1443/services/servicex?wsdl
and I have been given a .p12 and .cert file and a passphrase…
I tried looking through the php.net pages for SoapClient but couldn’t find anything…
also if anybody has good tutorials to do this kind of thing, they’re welcome too…
No, you don’t need a SSL certificate on your server to make SOAP requests to https://x.com
But you have been given a .p12 and a .cert file, plus a passphrase. Why? Because this particular web service uses an authentication mechanism based on certificates. That is why you need certificate file(s) – to be able to authenticate and use this web service.
The most common authentication mechanism is “login” and “password”, or “user” and “password” – but this is not the only way to authenticate a user. There are several other authentication methods… “API key”, “policy and signature”, etc… One of these several methods is the usage of a certificate.
So, repeating: you need these files you were given to authenticate and be able to use the web service, but NOT “to make SOAP requests to a HTTPS server.”