Syntax
C#
[OperationContractAttribute()] SBT.API.DataContracts.Common.WSGeneralResponse DeleteMMS( string securityToken, string orgCode, string fileName )
WSDL
Production: https://ui.solutionsbytext.com/Sbt.App.SetUp/WSServices/GeneralWSService.svc?singleWsdl
Staging: https://test.solutionsbytext.com/Sbt.App.SetUp/WSServices/GeneralWSService.svc?singleWsdl
Parameters
securityToken
– String[1000] (Required) – SecurityToken to authenticate the user.
orgCode
– String[20] (Required) – Organization Code of the group.
fileName
– The filename of the MMS image to be deleted.
Return Value
WSTemplateResponse
| Name | Type | Description |
|---|---|---|
ErrorCode | int | For Success/Failure, it returns an error number. |
Message | string | Message related to the Error code. |
Examples
C#
var requestdata = new
{
securityToken = "validsecurityToken",
orgCode = "orgCode",
fileName = "sampleImage.jpg"
};
string data2 = JsonConvert.SerializeObject(requestdata).ToString();
txtRequestFormat.Text = data2;
System.Net.WebClient webClient = new System.Net.WebClient();
webClient.Headers["Content-type"] = "application/json";
webClient.Encoding = Encoding.UTF8;
var strDelResponse = webClient.UploadString("https://ui.solutionsbytext.com/SBT.App.SetUp/RSServices/GeneralRSService.svc/DeleteMMS", "DELETE", data2);
//Note: “strDelResponse” contains the response which is in JSON format.
SOAP
Soap Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://SBTService/ServiceContracts/">
<soapenv:Header/>
<soapenv:Body>
<ser:DeleteMMS>
<!--Required:-->
<ser:securityToken>Valid Security Token</ser:securityToken>
<!--Required:-->
<ser:orgCode>Group Org Code</ser:orgCode>
<!--Required:-->
<ser:fileName>MMS File Name</ser:fileName>
</ser:DeleteMMS>
</soapenv:Body>
</soapenv:Envelope>
Soap Response
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<DeleteMMSResponse xmlns="http://SBTService/ServiceContracts/">
<DeleteMMSResult xmlns:a="http://SBTAPIService/DataContract/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<a:ErrorCode>1568</a:ErrorCode>
<a:Message>File successfully deleted</a:Message>
</DeleteMMSResult>
</DeleteMMSResponse>
</s:Body>
</s:Envelope>
REST
Method: DELETE
URL: https://ui.solutionsbytext.com/SBT.App.SetUp/RSServices/GeneralRSService.svc/DeleteMMS
Sample JSON Request:
{
"securityToken": "validSecurityToken",
"orgCode": "orgCode",
"fileName" : "sampleImage.jpg"
}
Sample JSON Response:
{
"DeleteMMSResult": {
"ErrorCode": 1568,
"Message": "File successfully deleted"
}
}