예제 #1
0
        public XDocument getList(getPlaceListRequest _objgetPlaceListRequest)
        {
            XDocument doc = null;
            XElement root = null;
            string servicename = "GetPlaceList";

            XmlDocument servicesNames = new XmlDocument();
            try
            {
                XNamespace fc = AppStatic.BusIndiaWebService;
                XNamespace soapenv = AppStatic.XmlSoapSchema;
                doc = new XDocument(new XDeclaration("1.0", "utf-16", "yes"),
                root = new XElement(soapenv + "Envelope",
                    new XAttribute(XNamespace.Xmlns + "com", fc.NamespaceName),
                    new XAttribute(XNamespace.Xmlns + "soapenv", soapenv.NamespaceName),
                    new XElement(soapenv + "Header"),
                    new XElement(soapenv + "Body",
                    new XElement(fc + servicename,
                    new XElement("arg0",
                    new XElement("franchUserID", _objgetPlaceListRequest.franchUserID),
                    new XElement("password", _objgetPlaceListRequest.password),
                    new XElement("userID", _objgetPlaceListRequest.userID),
                    new XElement("userKey", _objgetPlaceListRequest.userKey),
                    new XElement("userName", _objgetPlaceListRequest.userName),
                    new XElement("userRole", _objgetPlaceListRequest.userRole),
                    new XElement("userStatus", _objgetPlaceListRequest.userStatus),
                    new XElement("userType", _objgetPlaceListRequest.userType)
                    )
                    )
                    )
                    )
                );
            }
            catch (Exception ex)
            {
            }
            return doc;
        }
예제 #2
0
 public getPlaceListRequest GetUserRequestParameters()
 {
     getPlaceListRequest _objgetPlaceListRequest = new getPlaceListRequest();
     _objgetPlaceListRequest.franchUserID = AppStatic.franchUserID;
     _objgetPlaceListRequest.password = AppStatic.password;
     _objgetPlaceListRequest.userID = AppStatic.userID;
     _objgetPlaceListRequest.userKey = AppStatic.userKey;
     _objgetPlaceListRequest.userName = AppStatic.userName;
     _objgetPlaceListRequest.userRole = AppStatic.userRole;
     _objgetPlaceListRequest.userStatus = AppStatic.userStatus;
     _objgetPlaceListRequest.userType = AppStatic.userType;
     return _objgetPlaceListRequest;
 }