MPGateway


Click here for a complete list of operations.

MPG_Query01

Consulta 01.

Parâmetros da MPG_Query01: Versão 01r33
----------------------------------------------------------------------------------------------------------------------------------
Credencial - Obrigatório - Chave de 20 posições para acesso ao Mobile Pronto Gateway. Esta chave é única
Principal_User - Obrigatório - Código do Usuário Principal para autenticar no Gateway. Normalmente o CNPJ ou CPF
Aux_User - Opcional - Código do Usuário Auxiliar/Apoio para qualificar a Mensagem
Mobile - Opcional - Celular que receberá o SMS. Formato mundial: +99(999)99999999, sendo pais,ddd e mobile
Status_Code - Opcional, mas serã considerado 1 se nao for passado
Se 1 - SMS enviado com sucesso.
Se 0 - SMS enviado com erro
Se 2 - Ambos
Status - Obrigatório - Retorna o codigo de erro
Serão considerado os registros de 30 dias atras ate a data de hoje.


Tipos de Retorno com Erro: XML vazio
-----------------------------------------------------------------------------------------------------------------------------------
Campo Status vem com:
001 - Credencial Inválida/ Invalid Credencial.
002 - Cod Usuario Principal Inválido/Principal User Invalid.
003 - Cod Usuario Principal não é da Credencial/Principal User x Credencial Invalid.
De 881 a 890 - Falha no MPGateway. Avise ao Suporte Mobile Pronto

Tipos de Retorno OK: XML com o resultado solicitado
-----------------------------------------------------------------------------------------------------------------------------------

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /Service.asmx HTTP/1.1
Host: www.mpgateway.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.mpgateway.com/MPG_Query01"

<?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>
    <MPG_Query01 xmlns="http://www.mpgateway.com/">
      <Credencial>string</Credencial>
      <Principal_User>string</Principal_User>
      <Aux_User>string</Aux_User>
      <Mobile>string</Mobile>
      <Status_Code>int</Status_Code>
      <Status>string</Status>
    </MPG_Query01>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?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>
    <MPG_Query01Response xmlns="http://www.mpgateway.com/">
      <MPG_Query01Result>
        <xsd:schema>schema</xsd:schema>xml</MPG_Query01Result>
      <Status>string</Status>
    </MPG_Query01Response>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /Service.asmx HTTP/1.1
Host: www.mpgateway.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <MPG_Query01 xmlns="http://www.mpgateway.com/">
      <Credencial>string</Credencial>
      <Principal_User>string</Principal_User>
      <Aux_User>string</Aux_User>
      <Mobile>string</Mobile>
      <Status_Code>int</Status_Code>
      <Status>string</Status>
    </MPG_Query01>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <MPG_Query01Response xmlns="http://www.mpgateway.com/">
      <MPG_Query01Result>
        <xsd:schema>schema</xsd:schema>xml</MPG_Query01Result>
      <Status>string</Status>
    </MPG_Query01Response>
  </soap12:Body>
</soap12:Envelope>