public Workspace CreateWorkspace(Workspace workspace)
        {
            var      invoker = new SoapInvoker(this);
            XElement msg     = invoker.CreateEnvelope("CreateWorkspace");

            msg.Add(workspace.ToXml(MessageNs + "workspace"));
            XElement result = invoker.InvokeResult();

            return(Workspace.FromXml(this, result));
        }
        public Workspace UpdateWorkspace(string oldWorkspaceName, string ownerName,
                                         Workspace newWorkspace)
        {
            var      invoker = new SoapInvoker(this);
            XElement msg     = invoker.CreateEnvelope("UpdateWorkspace");

            msg.Add(new XElement(MessageNs + "oldWorkspaceName", oldWorkspaceName));
            msg.Add(new XElement(MessageNs + "ownerName", ownerName));
            msg.Add(newWorkspace.ToXml(MessageNs + "newWorkspace"));

            XElement result = invoker.InvokeResult();

            return(Workspace.FromXml(this, result));
        }
Пример #3
0
        public Workspace CreateWorkspace(Workspace workspace)
        {
            Message msg = new Message(GetWebRequest(new Uri(Url)), "CreateWorkspace");

            workspace.ToXml(msg.Body, "workspace");

            Workspace newWorkspace;

            using (HttpWebResponse response = Invoke(msg))
            {
                XmlReader results = msg.ResponseReader(response);
                newWorkspace = Workspace.FromXml(this, results);
            }

            return(newWorkspace);
        }
Пример #4
0
        public Workspace UpdateWorkspace(string oldWorkspaceName, string ownerName,
                                         Workspace newWorkspace)
        {
            Message msg = new Message(GetWebRequest(new Uri(Url)), "UpdateWorkspace");

            msg.Body.WriteElementString("oldWorkspaceName", oldWorkspaceName);
            msg.Body.WriteElementString("ownerName", ownerName);
            newWorkspace.ToXml(msg.Body, "newWorkspace");

            Workspace workspace;

            using (HttpWebResponse response = Invoke(msg))
            {
                XmlReader results = msg.ResponseReader(response);
                workspace = Workspace.FromXml(this, results);
            }

            return(workspace);
        }
        public Workspace UpdateWorkspace(string oldWorkspaceName, string ownerName,
                                         Workspace newWorkspace)
        {
            var invoker = new SoapInvoker(this);
            XElement msg = invoker.CreateEnvelope("UpdateWorkspace");

            msg.Add(new XElement(MessageNs + "oldWorkspaceName", oldWorkspaceName));
            msg.Add(new XElement(MessageNs + "ownerName", ownerName));
            msg.Add(newWorkspace.ToXml(MessageNs + "newWorkspace"));

            XElement result = invoker.InvokeResult();
            return Workspace.FromXml(this, result);
        }
 public Workspace CreateWorkspace(Workspace workspace)
 {
     var invoker = new SoapInvoker(this);
     XElement msg = invoker.CreateEnvelope("CreateWorkspace");
     msg.Add(workspace.ToXml(MessageNs + "workspace"));
     XElement result = invoker.InvokeResult();
     return Workspace.FromXml(this, result);
 }
Пример #7
0
        public Workspace UpdateWorkspace(string oldWorkspaceName, string ownerName, 
																		 Workspace newWorkspace)
        {
            Message msg = new Message(GetWebRequest (new Uri(Url)), "UpdateWorkspace");
            msg.Body.WriteElementString("oldWorkspaceName", oldWorkspaceName);
            msg.Body.WriteElementString("ownerName", ownerName);
            newWorkspace.ToXml(msg.Body, "newWorkspace");

            Workspace workspace;
            using (HttpWebResponse response = Invoke(msg))
                {
                    XmlReader results = msg.ResponseReader(response);
                    workspace = Workspace.FromXml(this, results);
                }

            return workspace;
        }
Пример #8
0
        public Workspace CreateWorkspace(Workspace workspace)
        {
            Message msg = new Message(GetWebRequest (new Uri(Url)), "CreateWorkspace");
            workspace.ToXml(msg.Body, "workspace");

            Workspace newWorkspace;
            using (HttpWebResponse response = Invoke(msg))
                {
                    XmlReader results = msg.ResponseReader(response);
                    newWorkspace = Workspace.FromXml(this, results);
                }

            return newWorkspace;
        }