Skip to main content

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);