Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7912303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T13:34:04+00:00 2026-06-03T13:34:04+00:00

The below code is a web service response format.This class has two reference variables

  • 0

The below code is a web service response format.This class has two reference variables
to two inner static class.
Please let me know how to read in an efficiant way.

public class DataResponse {
      protected DataResponse.Head head ;
      protected DataResponse.Result result ;

      public static class Result {
         protected List<DataResponse.Result.Record> record;

          public static class Record {
             protected String businesstypec;
             protected String part
             // several other variables

                 public static class PARTR {
                       protected String prefix;
                       protected String suffix;
                 }
          }

         public static class Head {

          // some more variables
         }

      // please assume getter and setters for head,result,record,prefix and suffix variables
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T13:34:05+00:00Added an answer on June 3, 2026 at 1:34 pm

    You get the instance of Record you want to read and call the public variable of the class within to get the instance of that variable and then call the (again, public) variables in that inner class. Seems efficient.

     String firstPrefix = result.record.get(0).partrVariableThatsNotInYourExample.prefix;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting a web service response as below. It has additional XML tag
This code below works in all web browsers except IE: <input type="text" name="passwordLogin" value="Password"
I am getting a response from a web service call in XML format. I
I use the below code to write code to query a web method in
I am using below code for Embed MP3 Audio Files In Web Pages, <embed
The code below extracts links from a web page and shows them in a
I tried accessing web for xml parsing using the code below: System.Uri proxy =
below code is my databasehandler class i got it from a tutorial. Beside that
In ASP.net web service if the above isn't specified , what is the response
I have two identical servers. Both Win2k3. I have a web service that queues

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.