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

  • SEARCH
  • Home
  • 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 7729529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T05:59:27+00:00 2026-06-01T05:59:27+00:00

I am invoking a web service function which is reading a users credentials from

  • 0

I am invoking a web service function which is reading a users credentials from a database,

when invoked straight from the web service based on entering a ‘search’ integer, the response is –

<firstName>john</firstName>
<lastName>smith</lastName>
<sex>male</sex>
<age>23</age>
<search>100</search>

I am trying to get the results back to the client in a richTextBox I thought by doing this-

        WebService.Service1SoapClient client = new WebService.Service1SoapClient();
        int search= System.Convert.ToInt16(textBox1.Text);
        string result = client.searchUser(search);
        richTextBox1.AppendText(result);

However this is not working.

  • 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-01T05:59:28+00:00Added an answer on June 1, 2026 at 5:59 am

    From your comments,

    string result = client.searchUser(search);
    

    you are trying to assign at structure to a string. That’s the error and compiler is telling you that you can’t do this.

    You should override ToString() method in your structure like,

    public override string ToString()
    {
       // construct the string here which you want to assign
    }
    

    and at your client side

    string result = client.searchUser(search).ToString();
    

    Hopefully it will help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Background: I'm invoking a web service method which returns a JSON string. This string
I have a WCF client proxy which reads from a SOAP web service. I
I'm invoking a Java-based web-service with KSOAP2 for Android, and I would like to
I m invoking a web service and they stop my service calls after an
I'm invoking one of SharePoint's web service APIs that returns a CAML fragment. I've
We have created a .NET 4 web service, which runs fine on a Windows
I am invoking HTTPS SOAP web service through java code. I have already imported
I am invoking a web service for my web application. It runs slow on
I have a web service created in .Net and I am interested in invoking
i have local WSDL file. i tried to create JAX-WS Web service client which

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.