예제 #1
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);
        }
예제 #2
0
 /// <remarks/>
 public void get_businessDetailAsync(get_businessDetail get_businessDetail1, object userState)
 {
     if ((this.get_businessDetailOperationCompleted == null))
     {
         this.get_businessDetailOperationCompleted = new System.Threading.SendOrPostCallback(this.Onget_businessDetailOperationCompleted);
     }
     this.InvokeAsync("get_businessDetail", new object[] {
             get_businessDetail1}, this.get_businessDetailOperationCompleted, userState);
 }
예제 #3
0
 /// <remarks/>
 public System.IAsyncResult Beginget_businessDetail(get_businessDetail get_businessDetail1, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("get_businessDetail", new object[] {
             get_businessDetail1}, callback, asyncState);
 }
예제 #4
0
 /// <remarks/>
 public void get_businessDetailAsync(get_businessDetail get_businessDetail1)
 {
     this.get_businessDetailAsync(get_businessDetail1, null);
 }
예제 #5
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;
        }