How to send this XML to the webservice via PHP

1

Good morning, I have the following problem:

I need to remove from the site of the city hall which companies issued a note this month.

I did the processes to install the city hall certificate, and I need the response of this xml:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <BuscarUsuario xmlns="http://www.e-governeapps2.com.br/">
      <imu>string</imu>
      <cnpj>string</cnpj>
    </BuscarUsuario>
  </soap:Body>
</soap:Envelope>

I stopped here, I can not send, let alone pass the certificate, any tips on where to search for this?

    
asked by anonymous 17.04.2017 / 14:42

1 answer

1

Good morning, a tip is to search the NFePHP project, "Tools" class, it makes use of cURL and also digital certificate, see link

Already on link you find examples of using Digital Certificate. For example, I think you'll need functions like openssl_pkcs12_read .

    
17.04.2017 / 15:18