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 8523499
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T07:25:35+00:00 2026-06-11T07:25:35+00:00

I am working with a windows app form where I want a button to

  • 0

I am working with a windows app form where I want a button to call a web service, MakeANote.
The web service requires information which is returned with the login along with a ticket.
the LogOn call has some input parameters, 1 ref (which i heard is both input and output), and some output parameters. BUT it also RETURNS an array of “Information”. This array is put into my variable, pubinfo as follows:

Webservice.Information[] pubinfo = null; //initialize

pubinfo = myflo.LogOn(username, password, ref ticket, out settings, out users,out terms, out currentUser);

so the type is a custom type: Webservice.Information[]. Each Information element in the array has 3 properties: string ID, string Name, and boolean ReversedRead.

I was thinking that —as this is filled in with the LogOn button and therefore encapsulated within the method calling it and —- as i wanted to pass this info to the other web service, MakeANote, that I might do something like this:

            for (int i = 0; i < pubinfo.Length; i++)
            {
                objInfo = pubinfo[i];
                storePubInfo(objInfo);
                MessageBox.Show("PubInfo stored", "PubInfo");

            }

and store the pubinfo array in another function which the MakeANote function will have to call to collect it separately. This seems very messy to me, but I also want to keep things simple as I’m new to this all.

How would the storing function look like? Something as simple as this doesn’t seem to work.

       public void storePubInfo()
       {
          return storePubInfo;
       }

I’m fine with appending it as well. Is that better? And is returning alright or do i actually have to have something like Webservice.Information storePubInfo(var)

When I click the button, my function to make a note is called with the argument of the ticket.. so the ticket gets passed without a problem. My question is the array that’s being RETURNED with the logon, pubinfo.


I’m open for ideas if I’m trying to do this the wrong way, or there is a better way of doing this.
*Should I do something utterly different and perform the extraction in the buttonclick? Any good examples if so?

  • 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-11T07:25:37+00:00Added an answer on June 11, 2026 at 7:25 am
    class MyClass
    {
        List<Webservice.Information> _webServiceInformation = new List<Webservice.Information>()
    
        public void LogonAndStoreInfo()
        {
            Webservice.Information[] pubinfo = myflo.LogOn(username, password, ref ticket, out settings, out users,out terms, out currentUser);
    
            for (int i=0; i < pubInfo.Length; i++)
            {
                StorePubInfo(pubinfo);
            }
    
            Webservice.Information[] myPubInfo = GetPubInfo();
        }
    
        void StorePubInfo(Webservice.Information info)
        {
            _webServiceInformation.Add(info);
        }
    
        Webservice.Information[] GetPubInfo()
        {
            return _webServiceInformation.ToArray();
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a Windows Phone 7 app and I want to give
I'm trying to add ajax form submission to a PHP web app I'm working
I have my clickonce windows form app working except for the installation of a
We're working on a Windows App that periodically has to launch operations which may
I am working on a windows form app like most development it is usually
I'm working on a windows App in C#, I have a for-loop which update
I'm working on a Windows 8 app. While the app is running, I'm trying
I am working on a Windows 8 app. I need to know how to
I have been working on a Windows Mobile app for a little while now
I'm working with an old windows app in visual studio 2005. A webserviced referenced

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.