문제

My task is to setup a server in PHP (5.3) and respond to client with already prepared message.

Is there's any method to post/respond with raw data with SoapServer, NusoapServer or Zend?

도움이 되었습니까?

해결책

If you want to retrieve the raw XML request document, process it and then send the raw XML response document, then none of the aforementioned libraries are probably going to help you, because they are all specifically intended to shield you from that complexity.

In order to receive the raw XML data you will need to read the raw POST data, which is best done like this:

$requestDocument = file_get_contents('php://input');

Then you'll need to process it, construct your response document and transmit it using print or echo.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top