I have never worked with a SOAP XML api before.
I read a couple of similar questions about SO, but I can't get it to work.
Here is a simple request:
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/ soap-envelope"> <soap12:Body> <CheckDomainAvailability xmlns="https://live.domainbox.net/"> <AuthenticationParameters> <Reseller>myreseller</Reseller> <Username>myuser</Username> <Password>mypassword</Password> </AuthenticationParameters> <CommandParameters> <DomainName>checkadomain.co</DomainName> <LaunchPhase>GA</LaunchPhase> </CommandParameters> </CheckDomainAvailability> </soap12:Body> </soap12:Envelope>
I contacted them, but they do not offer a PHP API.
I would like to use the SoapClient class built into PHP.
Question: How to send a request and print the answer?
source share