예제 #1
0
 /// <remarks/>
 public void get_operationalInfoAsync(get_operationalInfo get_operationalInfo1, object userState)
 {
     if ((this.get_operationalInfoOperationCompleted == null))
     {
         this.get_operationalInfoOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_operationalInfoOperationCompleted);
     }
     this.InvokeAsync("get_operationalInfo", new object[] {
             get_operationalInfo1}, this.get_operationalInfoOperationCompleted, userState);
 }
예제 #2
0
 /// <remarks/>
 public System.IAsyncResult Beginget_operationalInfo(get_operationalInfo get_operationalInfo1, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("get_operationalInfo", new object[] {
             get_operationalInfo1}, callback, asyncState);
 }
예제 #3
0
 /// <remarks/>
 public void get_operationalInfoAsync(get_operationalInfo get_operationalInfo1)
 {
     this.get_operationalInfoAsync(get_operationalInfo1, null);
 }
예제 #4
0
        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;
        }