PWGatewaySMS
Click here for a complete list of operations.
MPG_SendandFollowUp_SMS
ATENÇÃO: Este método será descontinuado na próxima versão.
Envio de SMS Síncrono.
Parâmetros da MPG_SendandFollowUp_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 se 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
Send_Project - Obrigatório - Se (S)im a sigla da mensagem vem no início.
Se (N)ão não vem. Tamanho máximo=9 (XXXXXXXX:).
Exemplo: MPG:
Message - Obrigatório - Mensagem que será enviada ao mobile. Tamanho máximo de 160 posições.
Tipos de Retorno:
Em caso de Sucesso o retorno é: XXX:IDMPG, sendo XXX sempre igual a 000Em caso de Erro o retorno pode ser: XXX ou XXX:IDERR, sendo XXX o código de erro ----------------------------------------------------------------------------------------------------------------------------------
000 - Mensagem enviada com Sucesso/Message sent successfully.
----------------------------------------------------------------------------------------------------------------------------------
001 - Credencial Inválida/Invalid Credencial
005 - Mobile fora do formato-Formato +999(9999)99999999/Invalid phone number - non-standard
007 - Flag Send_Project tem que ser S,s or Y,y or N,n/Flag Send_Project must be S,s or Y,y or N,n
008 - Mensagem ou Nome_Projeto+Msg maior que máximo no Pais/Message or Project+Msg higher maximun in Country
009 - Sem crédito para envio de SMS. Favor repor/Account without funds. Please purchase more credits
010 - Gateway Bloqueado/Gateway locked for use
012 - Mobile no formato padrão, mas incorreto/Invalid mobile
013 - Mensagem Vazia ou Corpo Inválido/Message Body Blank or Invalid
015 - Pais sem operação/Country without operation
016 - Mobile com tamanho do código de área inválido/Size of area code invalid
017 - Operadora não autorizada para esta Credencial/Operator not allowed for this Credential
018 - Mobile está na Lista Negra/Mobile is in the Black List
019 - Token Inválido/Invalid Token
-----------------------------------------------------------------------------------------------------------------------------------
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_SendandFollowUp_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_SendandFollowUp_SMS xmlns="PWGateway"> <Credencial>string</Credencial> <Token>string</Token> <Principal_User>string</Principal_User> <Aux_User>string</Aux_User> <Mobile>string</Mobile> <Send_Project>string</Send_Project> <Message>string</Message> </MPG_SendandFollowUp_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_SendandFollowUp_SMSResponse xmlns="PWGateway"> <MPG_SendandFollowUp_SMSResult>string</MPG_SendandFollowUp_SMSResult> </MPG_SendandFollowUp_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_SendandFollowUp_SMS xmlns="PWGateway"> <Credencial>string</Credencial> <Token>string</Token> <Principal_User>string</Principal_User> <Aux_User>string</Aux_User> <Mobile>string</Mobile> <Send_Project>string</Send_Project> <Message>string</Message> </MPG_SendandFollowUp_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_SendandFollowUp_SMSResponse xmlns="PWGateway"> <MPG_SendandFollowUp_SMSResult>string</MPG_SendandFollowUp_SMSResult> </MPG_SendandFollowUp_SMSResponse> </soap12:Body> </soap12:Envelope>