private string formXml(string username, string password, string destination, string message){ // create xml stringstring xmlString = “<?xml version=\”1.0\” encoding=\”UTF-8\” ?> ” +“<Request xmlns:xsi=\”http://www.w3.org/2001/XMLSchema-instance\” xsi:noNamespaceSchemaLocation=\”http://schema.2sms.us/1.0/0410_RequestSendMessage.xsd\” Version=\”1.0\”>” +“<Identification>” + “<UserID>”+username+”</UserID>” + “<Password>”+password+”</Password>” +“</Identification>” +“<Service>” + “<ServiceName>SendMessage</ServiceName>” + “<ServiceDetail>” + “<SingleMessage>” + “<Destination>”+destination+”</Destination>” + “<Text>”+message+”</Text>” + “</SingleMessage>” + “</ServiceDetail>” +“</Service>” +“</Request>”; return xmlString;} private string sendXml(string xmlDoc){ string …
C# Read More »