/// <remarks/> public System.IAsyncResult BeginretrieveCVSubtree(WSUserInfo wSUserInfo, WSCVSubtreeRequest wSCVSubtreeRequest, System.AsyncCallback callback, object asyncState) { return(this.BeginInvoke("retrieveCVSubtree", new object[] { wSUserInfo, wSCVSubtreeRequest }, callback, asyncState)); }
/// <remarks/> public System.IAsyncResult BeginpmSearch(WSUserInfo wSUserInfo, WSPMSearchRequest wSPMSearchRequest, System.AsyncCallback callback, object asyncState) { return(this.BeginInvoke("pmSearch", new object[] { wSUserInfo, wSPMSearchRequest }, callback, asyncState)); }
public WSPMNode[] pmSearch(WSUserInfo wSUserInfo, WSPMSearchRequest wSPMSearchRequest) { object[] results = this.Invoke("pmSearch", new object[] { wSUserInfo, wSPMSearchRequest }); return((WSPMNode[])(results[0])); }
public WSCVNode[] retrieveCVSubtree(WSUserInfo wSUserInfo, WSCVSubtreeRequest wSCVSubtreeRequest) { object[] results = this.Invoke("retrieveCVSubtree", new object[] { wSUserInfo, wSCVSubtreeRequest }); return((WSCVNode[])(results[0])); }
public bool CheckKMTaxonomyService(int oid, ref int count, ref string errorMsg) { count = -1; WSPMNode[] nodes = null; try { TaxonomyService taxonomyService = new TaxonomyService(); taxonomyService.SetConnectionInfo(base.taxonomyUrl, base.userId, base.userPassword, base.timeOut); HP.Csn.Business.KM.Services.TaxonomyService.WSUserInfo wsUserInfo = new HP.Csn.Business.KM.Services.TaxonomyService.WSUserInfo(); wsUserInfo.userId = base.userId; wsUserInfo.portalId = base.portalId; //wsUserInfo.protalId = base.portalId; WSPMRequest pmRequest = new WSPMRequest(); pmRequest.oid = oid; pmRequest.locale = DEFAULT_LANGUAGECODE; nodes = taxonomyService.retrievePMSubtree(wsUserInfo, pmRequest); } catch (SoapException ex) { errorMsg = "Error While Retrieving Taxonomy : (" + ex.Message + ")"; return(false); } catch (System.Net.WebException ex) { errorMsg = "Error Connecting To Webservices : (" + ex.Message + ")"; return(false); } catch (Exception ex) { errorMsg = "Unexpected Error While Accessing Webservices. ERROR : (" + ex.Message + ")"; return(false); } count = 0; if (nodes != null && nodes.Length != 0) { count = nodes.Length; } else { errorMsg = "Taxonomy Not Available For Given OID :" + oid; } return(true); }