Manipulating SOAP messages

liunx

Guest
Sorry for crossposting but this one nags on me for quite a while...

I'am trying to alter the SOAP messages while in transit between the soap client and server in order to add encryption to the messages. I've found a way to manipulate the request data going from client to server (by extending the SoapClient method __doRequest and the SoapServer method handle) but am struggeling with the response going from server to client.

So my problem, and thus my question is:
How do I access the SOAP message right before it is sent by the server and right before it is processed by the client?

Marcusif you dont have any control over the message being sent from the server, but yet have a mechanism to intervene it, then you can try using ob_start and other methods (look for php manual under ob_start), with this you can always capture any data being already send to the browser before you come into the process, and the outputed data can be captured and manipulated.
 
Back
Top