OK n00b here with SOAP,
Would like some clarification on how to use SOAP.
Question:
I have a Java JSP that posts a WSDL (Looks like XML format) to my PHP script, but how do I get this in the PHP script? The URL for the WSDL will be different every time.
I’m sure it’s very simple but just don’t see how or am I not understanding this correctly?
You can try something like this:
try { if (!($xml = file_get_contents('php://input'))) { throw new Exception('Could not read POST data.'); } } catch (Exception $e) { print('Did not successfully process HTTP request: '.$e->getMessage()); exit; }This will read the body of the POST request to the $xml variable and print an error if there is one.