Executando métodos de webservice SOAP usando cURL

..e ativando o xdebug:

curl -X POST http://webservices.localhost/webservice.php?XDEBUG_SESSION_START=netbeans-xdebug -d 'request.xml content'

Para montar o conteúdo em xml que será enviado para o webservice, dá pra fazer assim (no arquivo que recebe a requisição):

$requisicao = file_get_contents("php://input");
file_put_contents('/request.xml', $requisicao);


Revision #1
Created 11 May 2023 15:08:25 by Everton
Updated 11 May 2023 15:08:49 by Everton