public string DoItUsernamePwd(string email, string password, string document) { var wsi = new WSI(); if (!wsi.AuthenticateRequest(email, password)) { throw new ArgumentException("Authentication Failed"); } try { wsi.LoadFromString(document); wsi.DoIt(); return(wsi .GetResults() .InnerXml); } catch (XmlException) { throw new ArgumentException("Invalid Import XmlDocument"); } catch { return(wsi.GetResultsAsString()); } }
public String DoIt(String AuthenticationEMail, String AuthenticationPassword, String XmlInputRequestString) { WSI IPXObject = new WSI(); if (!IPXObject.AuthenticateRequest(AuthenticationEMail, AuthenticationPassword)) { throw new ArgumentException("Authentication Failed"); } return(DoItHelper(IPXObject, ref XmlInputRequestString)); }