<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://www.mpgateway.com/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://www.mpgateway.com/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://www.mpgateway.com/">
      <s:element name="MPG_SendSimple_SMS">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="Credencial" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Mobile" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Message" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="MPG_SendSimple_SMSResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="MPG_SendSimple_SMSResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="MPG_Send_SMS">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="Credencial" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Principal_User" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Aux_User" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Mobile" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Send_Project" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Message" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="MPG_Send_SMSResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="MPG_Send_SMSResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="MPG_Query01">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="Credencial" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Principal_User" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Aux_User" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Mobile" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="Status_Code" type="s:int" />
            <s:element minOccurs="0" maxOccurs="1" name="Status" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="MPG_Query01Response">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="MPG_Query01Result">
              <s:complexType>
                <s:sequence>
                  <s:element ref="s:schema" />
                  <s:any />
                </s:sequence>
              </s:complexType>
            </s:element>
            <s:element minOccurs="0" maxOccurs="1" name="Status" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="MPG_Credits">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="Credencial" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Principal_User" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="Status" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="MPG_CreditsResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="MPG_CreditsResult" type="s:decimal" />
            <s:element minOccurs="0" maxOccurs="1" name="Status" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="MPG_SendSimple_SMSSoapIn">
    <wsdl:part name="parameters" element="tns:MPG_SendSimple_SMS" />
  </wsdl:message>
  <wsdl:message name="MPG_SendSimple_SMSSoapOut">
    <wsdl:part name="parameters" element="tns:MPG_SendSimple_SMSResponse" />
  </wsdl:message>
  <wsdl:message name="MPG_Send_SMSSoapIn">
    <wsdl:part name="parameters" element="tns:MPG_Send_SMS" />
  </wsdl:message>
  <wsdl:message name="MPG_Send_SMSSoapOut">
    <wsdl:part name="parameters" element="tns:MPG_Send_SMSResponse" />
  </wsdl:message>
  <wsdl:message name="MPG_Query01SoapIn">
    <wsdl:part name="parameters" element="tns:MPG_Query01" />
  </wsdl:message>
  <wsdl:message name="MPG_Query01SoapOut">
    <wsdl:part name="parameters" element="tns:MPG_Query01Response" />
  </wsdl:message>
  <wsdl:message name="MPG_CreditsSoapIn">
    <wsdl:part name="parameters" element="tns:MPG_Credits" />
  </wsdl:message>
  <wsdl:message name="MPG_CreditsSoapOut">
    <wsdl:part name="parameters" element="tns:MPG_CreditsResponse" />
  </wsdl:message>
  <wsdl:portType name="MPGatewaySoap">
    <wsdl:operation name="MPG_SendSimple_SMS">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Envio Simples de SMS Síncrono.&lt;br&gt;&lt;br&gt;Parâmetros da MPG_SendSimple_SMS: Versão 01r33&lt;br&gt; ----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt; Credencial     - Obrigatório - Chave de 20 posições para acesso ao Mobile Pronto Gateway. Esta chave é única&lt;br&gt; Mobile         - Obrigatório - Celular que receberá o SMS. Formato mundial: +99(999)99999999, sendo pais,ddd e mobile&lt;br&gt; Message        - Obrigatório - Mensagem que será enviada ao mobile. Tamanho máximo de 142 posições.&lt;br&gt;&lt;br&gt;Observação: O Aux_User será sempre igual a MPG_SendSimple_SMS e a Mensagem será enviada sem o Nome do Projeto na frente&lt;br&gt;&lt;br&gt;Tipos de Retorno:&lt;br&gt; ----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt; 000 - Mensagem enviada com Sucesso.&lt;br&gt; ----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt; 001 - Credencial Inválida/ Invalid Credencial.&lt;br&gt; 002 - Cod Usuario Principal Inválido/Principal User Invalid.&lt;br&gt; 003 - Cod Usuario Principal não é da Credencial/Principal User x Credencial Invalid.&lt;br&gt; 004 - Cod Usuario Auxiliar Inválido. É obrigatório para empresa centralizadora/Aux User is necessary.&lt;br&gt; 005 - Mobile Inválido/Invalid Mobile -&gt; Format +999999(999999)9999999999&lt;br&gt; 006 - Pais do Telefone Destino Inválido/Invalid Country&lt;br&gt; 007 - Flag Envia_Projeto tem que ser S ou N/Send Project need to be Y or N&lt;br&gt; 008 - Mensagem ou Nome_Projeto+Mensagem &gt; que 142 posições/ Message plus Send_Project &gt; 142&lt;br&gt; 009 - Sem crédito para envio de SMS. Favor repor/Out of credit&lt;br&gt; 010 - Usuário da Empresa está com Telefone Inválido, impossibilitando o envio de aviso de estoque mínimo/&lt;br&gt; 011 - Pais do Telefone Usuário da Empresa Inválido/&lt;br&gt; 012 - Número de Telefone Celular no formato padrão, mas incorreto&lt;br&gt; 013 - Mensagem Vazia ou Corpo Inválido &lt;br&gt; 014 - Data programada inválida - Formato correto = dd/MM/yyyy hh:mm &gt;&gt;&gt; Somente na Versão 02r00&lt;br&gt; 015 - ID da Mensagem informado ultrapassou 40 posições &gt;&gt;&gt; Somente na Versão 02r00&lt;br&gt; 016 - ID da Mensagem já foi informado &gt;&gt;&gt; Somente na Versão 02r00&lt;br&gt; 017 - Entrega da Mensagem Cancelada&lt;br&gt; 018 - Erro no Envio do SMS de Aviso de Estoque Mínimo&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt; 030 - Usuário_Empresa tem que ser centralizador para usar este método.&lt;br&gt;&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt; De 800 a 899 - Falha no MPGateway. Avise ao Suporte Mobile Pronto&lt;br&gt; 900 - MPGateway indisponível&lt;br&gt; De 990 a 999 - Erro no acesso as operadoras. Contate Equipe Mobile Pronto&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt;</wsdl:documentation>
      <wsdl:input message="tns:MPG_SendSimple_SMSSoapIn" />
      <wsdl:output message="tns:MPG_SendSimple_SMSSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="MPG_Send_SMS">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Envio de SMS Síncrono.&lt;br&gt;&lt;br&gt;Parâmetros da MPG_Send_SMS: Versão 01r33&lt;br&gt; ----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt; Credencial     - Obrigatório - Chave de 20 posições para acesso ao Mobile Pronto Gateway. Esta chave é única&lt;br&gt; Principal_User - Obrigatório - Código do Usuário Principal para autenticar no Gateway. Normalmente o CNPJ ou CPF&lt;br&gt; Aux_User       - Obrigatório - Código do Usuário Auxiliar/Apoio para qualificar a Mensagem&lt;br&gt; Mobile         - Obrigatório - Celular que receberá o SMS. Formato mundial: +99(999)99999999, sendo pais,ddd e mobile&lt;br&gt; Send_Project   - Obrigatório - Se (S)im a sigla da mensagem vem no início.&lt;br&gt;                                Se (N)ão não vem. Tamanho máximo=9 (XXXXXXXX:).&lt;br&gt;                                Exemplo: MPG:&lt;mensagem&gt;&lt;br&gt; Message        - Obrigatório - Mensagem que será enviada ao mobile. Tamanho máximo de 142 posições.&lt;br&gt;&lt;br&gt;Tipos de Retorno:&lt;br&gt; ----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt; 000 - Mensagem enviada com Sucesso.&lt;br&gt; ----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt; 001 - Credencial Inválida/ Invalid Credencial.&lt;br&gt; 002 - Cod Usuario Principal Inválido/Principal User Invalid.&lt;br&gt; 003 - Cod Usuario Principal não é da Credencial/Principal User x Credencial Invalid.&lt;br&gt; 004 - Cod Usuario Auxiliar Inválido. É obrigatório para empresa centralizadora/Aux User is necessary.&lt;br&gt; 005 - Mobile Inválido/Invalid Mobile -&gt; Format +999999(999999)9999999999&lt;br&gt; 006 - Pais do Telefone Destino Inválido/Invalid Country&lt;br&gt; 007 - Flag Envia_Projeto tem que ser S ou N/Send Project need to be Y or N&lt;br&gt; 008 - Mensagem ou Nome_Projeto+Mensagem &gt; que 142 posições/ Message plus Send_Project &gt; 142&lt;br&gt; 009 - Sem crédito para envio de SMS. Favor repor/Out of credit&lt;br&gt; 010 - Usuário da Empresa está com Telefone Inválido, impossibilitando o envio de aviso de estoque mínimo/&lt;br&gt; 011 - Pais do Telefone Usuário da Empresa Inválido/&lt;br&gt; 012 - Número de Telefone Celular no formato padrão, mas incorreto&lt;br&gt; 013 - Mensagem Vazia ou Corpo Inválido &lt;br&gt; 014 - Data programada inválida - Formato correto = dd/MM/yyyy hh:mm &gt;&gt;&gt; Somente na Versão 02r00&lt;br&gt; 015 - ID da Mensagem informado ultrapassou 40 posições &gt;&gt;&gt; Somente na Versão 02r00&lt;br&gt; 016 - ID da Mensagem já foi informado &gt;&gt;&gt; Somente na Versão 02r00&lt;br&gt; 017 - Entrega da Mensagem Cancelada&lt;br&gt; 018 - Erro no Envio do SMS de Aviso de Estoque Mínimo&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt; De 800 a 880 - Falha no MPGateway. Avise ao Suporte Mobile Pronto&lt;br&gt; 900 - MPGateway indisponível&lt;br&gt; De 990 a 999 - Erro no acesso as operadoras. Contate Equipe Mobile Pronto&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt;</wsdl:documentation>
      <wsdl:input message="tns:MPG_Send_SMSSoapIn" />
      <wsdl:output message="tns:MPG_Send_SMSSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="MPG_Query01">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Consulta 01.&lt;br&gt;&lt;br&gt;Parâmetros da MPG_Query01: Versão 01r33&lt;br&gt; ----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt; Credencial     - Obrigatório - Chave de 20 posições para acesso ao Mobile Pronto Gateway. Esta chave é única&lt;br&gt; Principal_User - Obrigatório - Código do Usuário Principal para autenticar no Gateway. Normalmente o CNPJ ou CPF&lt;br&gt; Aux_User       - Opcional - Código do Usuário Auxiliar/Apoio para qualificar a Mensagem&lt;br&gt; Mobile         - Opcional - Celular que receberá o SMS. Formato mundial: +99(999)99999999, sendo pais,ddd e mobile&lt;br&gt; Status_Code    - Opcional, mas serã considerado 1 se nao for passado&lt;br&gt;                  Se 1 - SMS enviado com sucesso.&lt;br&gt;                   Se 0 - SMS enviado com erro&lt;br&gt;                   Se 2 - Ambos&lt;br&gt;  Status         - Obrigatório - Retorna o codigo de erro&lt;br&gt; Serão considerado os registros de 30 dias atras ate a data de hoje.&lt;br&gt;&lt;br&gt;&lt;br&gt;Tipos de Retorno com Erro: XML vazio&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt;Campo Status vem com:&lt;br&gt; 001 - Credencial Inválida/ Invalid Credencial.&lt;br&gt; 002 - Cod Usuario Principal Inválido/Principal User Invalid.&lt;br&gt; 003 - Cod Usuario Principal não é da Credencial/Principal User x Credencial Invalid.&lt;br&gt; De 881 a 890 - Falha no MPGateway. Avise ao Suporte Mobile Pronto&lt;br&gt;&lt;br&gt;Tipos de Retorno OK: XML com o resultado solicitado&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt;</wsdl:documentation>
      <wsdl:input message="tns:MPG_Query01SoapIn" />
      <wsdl:output message="tns:MPG_Query01SoapOut" />
    </wsdl:operation>
    <wsdl:operation name="MPG_Credits">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Consulta de Creditos.&lt;br&gt;&lt;br&gt;Parâmetros da MPG_Credits: Versão 01r33&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt; Credencial     - Obrigatório - Chave de 20 posições para acesso ao Mobile Pronto Gateway. Esta chave é única&lt;br&gt; Principal_User - Obrigatório - Código do Usuário Principal para autenticar no Gateway. Normalmente o CNPJ ou CPF&lt;br&gt; Status         - Obrigatório - Retorna o codigo de erro&lt;br&gt;&lt;br&gt;Tipos de Retorno com Erro: -1&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt;Campo Status vem com:&lt;br&gt; 001 - Credencial Inválida/ Invalid Credencial.&lt;br&gt; 002 - Cod Usuario Principal Inválido/Principal User Invalid.&lt;br&gt; 003 - Cod Usuario Principal não é da Credencial/Principal User x Credencial Invalid.&lt;br&gt; De 891 a 899 - Falha no MPGateway. Avise ao Suporte Mobile Pronto&lt;br&gt;&lt;br&gt;Retorno OK: número de créditos&lt;br&gt;-----------------------------------------------------------------------------------------------------------------------------------&lt;br&gt;</wsdl:documentation>
      <wsdl:input message="tns:MPG_CreditsSoapIn" />
      <wsdl:output message="tns:MPG_CreditsSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="MPGatewaySoap" type="tns:MPGatewaySoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="MPG_SendSimple_SMS">
      <soap:operation soapAction="http://www.mpgateway.com/MPG_SendSimple_SMS" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="MPG_Send_SMS">
      <soap:operation soapAction="http://www.mpgateway.com/MPG_Send_SMS" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="MPG_Query01">
      <soap:operation soapAction="http://www.mpgateway.com/MPG_Query01" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="MPG_Credits">
      <soap:operation soapAction="http://www.mpgateway.com/MPG_Credits" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="MPGatewaySoap12" type="tns:MPGatewaySoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="MPG_SendSimple_SMS">
      <soap12:operation soapAction="http://www.mpgateway.com/MPG_SendSimple_SMS" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="MPG_Send_SMS">
      <soap12:operation soapAction="http://www.mpgateway.com/MPG_Send_SMS" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="MPG_Query01">
      <soap12:operation soapAction="http://www.mpgateway.com/MPG_Query01" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="MPG_Credits">
      <soap12:operation soapAction="http://www.mpgateway.com/MPG_Credits" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="MPGateway">
    <wsdl:port name="MPGatewaySoap" binding="tns:MPGatewaySoap">
      <soap:address location="http://www.mpgateway.com/Service.asmx" />
    </wsdl:port>
    <wsdl:port name="MPGatewaySoap12" binding="tns:MPGatewaySoap12">
      <soap12:address location="http://www.mpgateway.com/Service.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>