SMS Api

<back to all web services

Query

HTTP + SOAP11

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /xml/syncreply/Query HTTP/1.1 
Host: barabut.com 
Content-Type: application/xml
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>

<Query xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="SmsApi">
  <Credential>
    <Password>String</Password>
    <Username>String</Username>
  </Credential>
  <MSISDN>String</MSISDN>
  <MessageId>0</MessageId>
</Query>

    </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
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>

<QueryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="SmsApi">
  <Response>
    <ReportDetail>
      <List>
        <ReportDetailItem>
          <Payload>String</Payload>
          <Xser>String</Xser>
          <Cost>0</Cost>
          <ErrorCode>0</ErrorCode>
          <Id>0</Id>
          <LastUpdated>0001-01-01T00:00:00</LastUpdated>
          <MSISDN>String</MSISDN>
          <Network>0</Network>
          <Sequence>0</Sequence>
          <State>Scheduled</State>
          <Submitted>0001-01-01T00:00:00</Submitted>
        </ReportDetailItem>
      </List>
    </ReportDetail>
    <Status>
      <Code>0</Code>
      <Description>String</Description>
    </Status>
  </Response>
</QueryResponse>

    </soap:Body>
</soap:Envelope>