public override operationalInfos get_operationalInfo(get_operationalInfo get_operationalInfo1) { Init(); operationalInfos ret = new operationalInfos(); List <operationalInfo> r = new List <operationalInfo>(); for (int i = 0; i < get_operationalInfo1.entityKey.Length; i++) { operationalInfo oi = new operationalInfo(); oi.entityKey = (get_operationalInfo1.entityKey[i]); try { org.uddi.apiv2.get_businessDetail businessDetail = new org.uddi.apiv2.get_businessDetail(); businessDetail.generic = (VERSION); businessDetail.businessKey = new string[] { get_operationalInfo1.entityKey[i] }; org.uddi.apiv2.businessDetail z = inquiry.get_businessDetail(businessDetail); oi.nodeID = (z.@operator); oi.authorizedName = (z.businessEntity[0].authorizedName); } catch (Exception ex) { } if (oi.authorizedName != null) { r.Add(oi); continue; } try { org.uddi.apiv2.get_tModelDetail tModelDetail = new org.uddi.apiv2.get_tModelDetail(); tModelDetail.generic = (VERSION); tModelDetail.tModelKey = new string[] { get_operationalInfo1.entityKey[i] }; org.uddi.apiv2.tModelDetail z = inquiry.get_tModelDetail(tModelDetail); oi.nodeID = (z.@operator); oi.authorizedName = (z.tModel[0].authorizedName); } catch (Exception ex) { } if (oi.authorizedName != null) { r.Add(oi); continue; } try { //get the service org.uddi.apiv2.get_serviceDetail serviceDetail = new org.uddi.apiv2.get_serviceDetail(); serviceDetail.generic = (VERSION); serviceDetail.serviceKey = new string[] { get_operationalInfo1.entityKey[i] }; org.uddi.apiv2.serviceDetail z = inquiry.get_serviceDetail(serviceDetail); oi.nodeID = (z.@operator); org.uddi.apiv2.get_businessDetail businessDetail = new org.uddi.apiv2.get_businessDetail(); businessDetail.generic = (VERSION); //its owning business businessDetail.businessKey = new string[] { z.businessService[0].businessKey }; org.uddi.apiv2.businessDetail z2 = inquiry.get_businessDetail(businessDetail); oi.nodeID = (z2.@operator); oi.authorizedName = (z2.businessEntity[0].authorizedName); r.Add(oi); } catch (Exception ex) { } } ret.truncated = (false); ret.operationalInfo = r.ToArray(); return(ret); }
/// <remarks/> public void get_serviceDetailAsync(get_serviceDetail get_serviceDetail1, object userState) { if ((this.get_serviceDetailOperationCompleted == null)) { this.get_serviceDetailOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_serviceDetailOperationCompleted); } this.InvokeAsync("get_serviceDetail", new object[] { get_serviceDetail1}, this.get_serviceDetailOperationCompleted, userState); }
/// <remarks/> public System.IAsyncResult Beginget_serviceDetail(get_serviceDetail get_serviceDetail1, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("get_serviceDetail", new object[] { get_serviceDetail1}, callback, asyncState); }
/// <remarks/> public void get_serviceDetailAsync(get_serviceDetail get_serviceDetail1) { this.get_serviceDetailAsync(get_serviceDetail1, null); }
public override operationalInfos get_operationalInfo(get_operationalInfo get_operationalInfo1) { Init(); operationalInfos ret = new operationalInfos(); List<operationalInfo> r = new List<operationalInfo>(); for (int i = 0; i < get_operationalInfo1.entityKey.Length; i++) { operationalInfo oi = new operationalInfo(); oi.entityKey=(get_operationalInfo1.entityKey[i]); try { org.uddi.apiv2.get_businessDetail businessDetail = new org.uddi.apiv2.get_businessDetail(); businessDetail.generic=(VERSION); businessDetail.businessKey = new string[]{get_operationalInfo1.entityKey[i]}; org.uddi.apiv2.businessDetail z = inquiry.get_businessDetail(businessDetail); oi.nodeID=(z.@operator); oi.authorizedName=(z.businessEntity[0].authorizedName); } catch (Exception ex) { } if (oi.authorizedName != null) { r.Add(oi); continue; } try { org.uddi.apiv2.get_tModelDetail tModelDetail = new org.uddi.apiv2.get_tModelDetail(); tModelDetail.generic=(VERSION); tModelDetail.tModelKey = new string[] { get_operationalInfo1.entityKey[i] }; org.uddi.apiv2.tModelDetail z = inquiry.get_tModelDetail(tModelDetail); oi.nodeID=(z.@operator); oi.authorizedName=(z.tModel[0].authorizedName); } catch (Exception ex) { } if (oi.authorizedName != null) { r.Add(oi); continue; } try { //get the service org.uddi.apiv2.get_serviceDetail serviceDetail = new org.uddi.apiv2.get_serviceDetail(); serviceDetail.generic=(VERSION); serviceDetail.serviceKey = new string[] { get_operationalInfo1.entityKey[i] }; org.uddi.apiv2.serviceDetail z = inquiry.get_serviceDetail(serviceDetail); oi.nodeID=(z.@operator); org.uddi.apiv2.get_businessDetail businessDetail = new org.uddi.apiv2.get_businessDetail(); businessDetail.generic=(VERSION); //its owning business businessDetail.businessKey = new string[] { z.businessService[0].businessKey }; org.uddi.apiv2.businessDetail z2 = inquiry.get_businessDetail(businessDetail); oi.nodeID = (z2.@operator); oi.authorizedName=(z2.businessEntity[0].authorizedName); r.Add(oi); } catch (Exception ex) { } } ret.truncated = (false); ret.operationalInfo = r.ToArray(); return ret; }