PWGatewaySMS


Click here for a complete list of operations.

MPG_Send_Long_SMS



ATENÇÃO: Este método será descontinuado na próxima versão.

Parâmetros da MPG_Send_Long_SMS: Versão: v_3_00
----------------------------------------------------------------------------------------------------------------------------------
Credencial - Obrigatório - 40 posições para acesso ao Mobile Pronto Gateway.
Token - Obrigatório - 06 posições para acesso ao Mobile Pronto Gateway.
Principal_User - Obrigatório - Código do Usuário Principal para autenticar no Gateway. Normalmente o CNPJ ou CPF. Pode ser Vazio.
Aux_User - Obrigatório - Código do Usuário Auxiliar/Qualificar da Mensagem. Máx.=20 posições. Se > 20 será truncado.
Mobile - Obrigatório - Celular que receberá o SMS. Formato mundial: +99(999)99999999, sendo pais,ddd e mobile
Message - Obrigatório - Mensagem que será enviada ao mobile. Tamanho máximo de 15.300 posições.
Iremos enviar várias mensagens de 160 caracteres em SMS separados.

Tipos de Retorno:
----------------------------------------------------------------------------------------------------------------------------------
000:000:000: - Mensagem Longa enviada com Sucesso.
----------------------------------------------------------------------------------------------------------------------------------
001 - Credencial Inválida/Invalid Credencial.
005 - Mobile fora do formato-Formato +999(9999)99999999.Valido somente no Brasil.
008 - Mensagem maior que máximo (15.300).
009 - Sem crédito para envio de SMS. Favor repor.
010 - Gateway Bloqueado.
012 - Mobile no formato padrão, mas incorreto.
013 - Mensagem Vazia ou Corpo Inválido.
015 - Pais sem operação.País não aceita LMS.
016 - Mobile com tamanho do código de área inválido.
017 - Operadora não autorizada para esta Credencial.
018 - Mobile está na Lista Negra.
019 - Token Inválido.
------------------------------------------------------------------------------------------------------------------
De 800 a 899 - Falha no MPGateway.Contate Mobile Pronto/Failure MPGateway.Call MobilePronto
900 - Erro de autenticação ou Limite de Segurança excedido/Authentication Error or Security Limitation
De 901 a 999 - Erro no acesso as operadoras.Contate Equipe MobilePronto/Contact customer center
------------------------------------------------------------------------------------------------------------------

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 /sms/v_3_00/service.asmx HTTP/1.1
Host: pw-api.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "PWGateway/MPG_Send_Long_SMS"

<?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_Send_Long_SMS xmlns="PWGateway">
      <Credencial>string</Credencial>
      <Token>string</Token>
      <Principal_User>string</Principal_User>
      <Aux_User>string</Aux_User>
      <Mobile>string</Mobile>
      <Message>string</Message>
    </MPG_Send_Long_SMS>
  </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_Send_Long_SMSResponse xmlns="PWGateway">
      <MPG_Send_Long_SMSResult>string</MPG_Send_Long_SMSResult>
    </MPG_Send_Long_SMSResponse>
  </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 /sms/v_3_00/service.asmx HTTP/1.1
Host: pw-api.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_Send_Long_SMS xmlns="PWGateway">
      <Credencial>string</Credencial>
      <Token>string</Token>
      <Principal_User>string</Principal_User>
      <Aux_User>string</Aux_User>
      <Mobile>string</Mobile>
      <Message>string</Message>
    </MPG_Send_Long_SMS>
  </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_Send_Long_SMSResponse xmlns="PWGateway">
      <MPG_Send_Long_SMSResult>string</MPG_Send_Long_SMSResult>
    </MPG_Send_Long_SMSResponse>
  </soap12:Body>
</soap12:Envelope>