CodeSmith Community
Your Code. Your Way. Faster!

Getting List of Tables from the WebServices

Latest post 07-02-2008 10:09 AM by kalyan. 0 replies.
  • 07-02-2008 10:09 AM

    • kalyan
    • Not Ranked
    • Joined on 10-31-2007
    • Posts 1
    • Points 5

    Getting List of Tables from the WebServices

    Hi,

         I am Using NetTiers in My application.

        I am Using WebServices for Creating Methods and Using those Methods in My Page:

        Below is the Method which i created in asmx Page(WebService).I am not Using NetTiers Services.

        [WebMethod]
            public Tlist<JobPostings> ListOfOrders()
            {

                string blStatus = "True";
                JobPostingsParameterBuilder oJobPostingsParameterBuilder = new JobPostingsParameterBuilder(true, true);
                 oJobPostingsParameterBuilder.AppendEquals(JobPostingsColumn.Status, blStatus);
                TList<JobPostings> tlstJobPostings = DataRepository.JobPostingsProvider.Find(oJobPostingsParameterBuilder.GetParameters());
                DataRepository.JobPostingsProvider.DeepLoad(tlstJobPostings, true, DeepLoadType.IncludeChildren, typeof(Worktypes),                 typeof(Employer), typeof(Account));
                return tlstJobPostings;
            }

         Here in the above code i have a Parent Table(JobPostings).Initially i am retrieving based on the Status after that i am deeploadind with three tables(Worktypes,Employer, Account)

           While Debugging this Method in WebServices application i am able to get the Child Table Columns(ie.WortypeidSource,EmployerIdSource,AccountIdSource).

     The Problem that i am facing is:

          When i am using this WebService Method(Which i hosted in IIS) in My aspx Page for getting the data and Binding to my datagrid  i am not able to get the Child  Table Column Values(i.e WortypeidSource,EmployerIdSource,AccountIdSource)

          So that i am not able to bind the Child Table Column Values.But I am getting Parent Table Columns Values.

           The Only problem is to get the Child Table column Values from WebServices Method(Which i created).

           But If i am debugging explicity in the Webservices(which is in the above code)  i am getting the Child Table Column Values.

     

    Can anybody help me out of this problem Plz it is very urgent.

    With Regards,

    kalyan 

     

     

     

     

     

          
     

     

     

     

     

     

     


     

     

     


     

     

      

     

     

     

     
     

     

       

     

     

     

       
     

     

     

     

     

    • Post Points: 5
Page 1 of 1 (1 items) | RSS
Copyright © 2008 CodeSmith Tools, LLC
Powered by Community Server (Commercial Edition), by Telligent Systems