HTTP + SOAP12
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /xml/syncreply/GetSmsHistory HTTP/1.1
Host: api2.ekomesaj.com
Content-Type: application/xml
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>
<GetSmsHistory xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ekomesaj.Operations">
<Credential xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ekomesaj.Types">
<d2p1:Password>String</d2p1:Password>
<d2p1:ResellerID>0</d2p1:ResellerID>
<d2p1:Username>String</d2p1:Username>
</Credential>
<Filter xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ekomesaj.Types">
<d2p1:BySendingType>ByNumber</d2p1:BySendingType>
<d2p1:EndDate i:nil="true" />
<d2p1:IsCompletedDatas i:nil="true" />
<d2p1:IsProcessingDatas i:nil="true" />
<d2p1:IsWaitingDatas i:nil="true" />
<d2p1:SmsHistoryID i:nil="true" />
<d2p1:StartDate i:nil="true" />
</Filter>
<PageSize i:nil="true" />
<StartPage i:nil="true" />
<UserID i:nil="true" />
</GetSmsHistory>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
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>
<GetSmsHistoryResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ekomesaj.Operations">
<SmsHistories xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ekomesaj.Types">
<d2p1:SmsHistory>
<d2p1:CreateDate>0001-01-01T00:00:00</d2p1:CreateDate>
<d2p1:CreateUserID>0</d2p1:CreateUserID>
<d2p1:DataCoding>0</d2p1:DataCoding>
<d2p1:DeliveredCount>0</d2p1:DeliveredCount>
<d2p1:GwType>0</d2p1:GwType>
<d2p1:ID>0</d2p1:ID>
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:IsApproved>false</d2p1:IsApproved>
<d2p1:IsPeriodic>false</d2p1:IsPeriodic>
<d2p1:IsSchuled>false</d2p1:IsSchuled>
<d2p1:IsStopped>false</d2p1:IsStopped>
<d2p1:IsTemplate>false</d2p1:IsTemplate>
<d2p1:MessageID i:nil="true" />
<d2p1:ReceipentCount>0</d2p1:ReceipentCount>
<d2p1:RequestGuid>String</d2p1:RequestGuid>
<d2p1:ScheduledDeliveryDate i:nil="true" />
<d2p1:Sender>String</d2p1:Sender>
<d2p1:SendingDate i:nil="true" />
<d2p1:SendingType>0</d2p1:SendingType>
<d2p1:SmsContent>String</d2p1:SmsContent>
<d2p1:SmsTitle>String</d2p1:SmsTitle>
<d2p1:Status>0</d2p1:Status>
<d2p1:TimingType>0</d2p1:TimingType>
<d2p1:UndeliveredCount>0</d2p1:UndeliveredCount>
<d2p1:ValidityPeriod>0</d2p1:ValidityPeriod>
</d2p1:SmsHistory>
</SmsHistories>
<Status xmlns:d2p1="http://schemas.datacontract.org/2004/07/Ekomesaj.Types">
<d2p1:Code>0</d2p1:Code>
<d2p1:Description>String</d2p1:Description>
<d2p1:Message>String</d2p1:Message>
</Status>
<TotalCount>0</TotalCount>
</GetSmsHistoryResponse>
</soap12:Body>
</soap12:Envelope>