private void GetLoginToken(Dictionary <String, Object> config) { if (invoker == null) { Uri serverUri = new Uri(config["server_uri"].ToString()); //Calcula a URI do jira this.jiraUri = new Uri(serverUri.Scheme + "://" + serverUri.Host + ":" + serverUri.Port + "/rpc/soap/jirasoapservice-v2"); invoker = new WebServiceInvoker(jiraUri); } this.loginToken = invoker.InvokeMethod <string>("JiraSoapServiceService", "login", new String[] { config["username"].ToString(), config["password"].ToString() }); }
public WebServiceObjectInterface(WebServiceInvoker invoker, string serviceName, string methodName, params object[] args) { this.invoker = invoker; baseObject = this.invoker.InvokeMethod <Object>(serviceName, methodName, args); }