Are there any tutorials or good examples of how I can utilize (consume?) an external web service via SOAP from within Magento? (Magento is a PHP based software system)
I see TONS of tutorials on accessing Magento data externally using SOAP and Magento's API, but I want to access an external web service from within Magento.
I've done a bit of research and I have to imagine I can use the SoapClient class to do this, but I'm not sure how the required keys and method calls translate to setting up/using the SoapClient class. If someone can point me in the right direction I'd greatly appreciate it!
Here's an example
Let's say I need to send the following SOAP request to http://someurl.somewhere.com:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://api.channeladvisor.com/webservices/">
<soapenv:Header>
<web:APICredentials>
<web:DeveloperKey>DeveloperKey</web:DeveloperKey>
<web:Password>Password</web:Password>
</web:APICredentials>
</soapenv:Header>
<soapenv:Body>
<web:RequestAccess>
<web:localID>99999999</web:localID>
</web:RequestAccess>
</soapenv:Body>
</soapenv:Envelope>
How would I go about doing this in Magento?