PWGatewaySMS
Click here for a complete list of operations.
MPG_SendSimple_SMS
Envio Simples de SMS Síncrono.
Parâmetros da MPG_SendSimple_SMS: Versão: v_2_00
----------------------------------------------------------------------------------------------------------------------------------
Credencial - Obrigatório - Chave de 40 posições para acesso ao Mobile Pronto Gateway. Esta chave é única
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 por país.
Observação: O Aux_User será sempre igual a MPG_SendSimple_SMS e a Mensagem será enviada sem o Nome do Projeto na frente
Tipos de Retorno:
----------------------------------------------------------------------------------------------------------------------------------
000 - Mensagem enviada com Sucesso/Message sent successfully.
----------------------------------------------------------------------------------------------------------------------------------
001 - Credencial Inválida/Invalid Credential
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
-----------------------------------------------------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------------------------------------------------
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_2_00/service.asmx HTTP/1.1 Host: pw-api.com Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "PWGateway/MPG_SendSimple_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_SendSimple_SMS xmlns="PWGateway"> <Credencial>string</Credencial> <Mobile>string</Mobile> <Message>string</Message> </MPG_SendSimple_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_SendSimple_SMSResponse xmlns="PWGateway"> <MPG_SendSimple_SMSResult>string</MPG_SendSimple_SMSResult> </MPG_SendSimple_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_2_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_SendSimple_SMS xmlns="PWGateway"> <Credencial>string</Credencial> <Mobile>string</Mobile> <Message>string</Message> </MPG_SendSimple_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_SendSimple_SMSResponse xmlns="PWGateway"> <MPG_SendSimple_SMSResult>string</MPG_SendSimple_SMSResult> </MPG_SendSimple_SMSResponse> </soap12:Body> </soap12:Envelope>