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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:57:31+00:00 2026-05-24T04:57:31+00:00

I wan’t to consume a web service inside a WPF app. I can add

  • 0

I wan’t to consume a web service inside a WPF app.

I can add the Service Reference and all the objects show up in the object browser except for the ServiceClient itself.

I tried adding the service to a console application and it all worked out there.

Is there some limit on WPF apps using web services.

I noticed that in the console app he added a ServiceModel node into the app.config file but not in the WPF app.config file.

Is there anything I can do to make it work?

  • 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-05-24T04:57:31+00:00Added an answer on May 24, 2026 at 4:57 am

    To answer your question specifically, no, there is nothing in WPF that would prevent you from using WCF to create a web service reference.

    I have, however, run into issues (in general) with using the “Add Service Reference” for generating the proxy and service class.

    I would start by using the WCF Test Client to test that your web service operates correctly and a generic proxy can be generated.

    Once the WCF Test Client works, I would clean out the existing service reference. Make sure everything is deleted. Then add the service reference again.

    If you have a complex web service, or the interface contains complex structures, you may want to look into using svcutil.exe to generate your proxy.

    This is the best answer I can give with the information you’ve provided. I believe your issue is with the WCF proxy generation, however, not WPF. When learning about WPF, it is best to keep your service as simple as possible and verify that the communication works before adding anything that could break WPF (like passing a dataset or class structure).

    P.S. Your executable app.config MUST have a system.serviceModel section to communicate, but its absence will not affect the reference and proxy generation.

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

Sidebar

Related Questions

I wan't to hide/show menuitems in a contextmenu using some propery of databound object.
I wan't to post a CSV file to a web service using the Jersey
i wan't to remove all sales according to predict expression IQueryable<Sale> sales = entites.Sales.Where<Sale>(s
Lets say I wan't to add 1 to an integer. This will only be
I wan't to add a subclass of UIViewController to a NSMutableDictionary which should be
I wan't to build SMS triggered app in my android. I know there's a
I wan't to compare two strings in a SQL request so I can retrieve
I wan a regex to alidate all types of possible DN's I create one
I wan't to manage the different timezones of my users in my web application,
I wan't to use this controll in my app but cant find which it

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.