Welcome Guest, Not a member yet? Register   Sign In
Saving XML from SOAP?
#1

[eluser]Kyle Johnson[/eluser]
Hey guys,

I'm attempting to log the XML from my SOAP web services, but don't see a way to capture outgoing messages.

I am able to capture incoming messages to our SOAP Server class by using:
Code:
file_get_contents("php://input")

Would there be an equivalent option for outgoing data as a SOAP Client? Or even capturing the outgoing response from my SOAP Server?
#2

[eluser]parifuture[/eluser]
Code:
$p = xml_parser_create();
xml_parser_set_option($p, XML_OPTION_CASE_FOLDING, 0);
xml_parser_set_option($p, XML_OPTION_SKIP_WHITE, 1);
xml_parse_into_struct($p, file_get_contents("php://input"), $vals, $index);
xml_parser_free($p);

both $vals, $index are array type.




Theme © iAndrew 2016 - Forum software by © MyBB