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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T05:33:10+00:00 2026-05-13T05:33:10+00:00

I have an ASMX webservice that returns XElement – (not an .svc WCF service)

  • 0

I have an ASMX webservice that returns XElement – (not an .svc WCF service)

When consuming the service in Silverlight the client that is generated uses XElement as I want.

However in C# .NET 3.5 WCF ‘Service Reference’ it generates this property using XmlDocument.

In C# .NET 4 WCF ‘Service Reference’ it also generates this property using XmlDocument. So it doesn’t seem to be a .NET 4 thing – but a Silverlight thing.

How can I configure the WCF client to use XElement also in the standard 3.5 framework?

  • 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-13T05:33:10+00:00Added an answer on May 13, 2026 at 5:33 am

    I switched the service from an ASMX web service to SVC WCF service. Wasn’t much work at all. Just one more thing I never got round to doing.

    This then without changing anything else allowed the .NET 3.5 client to use XElement instead of XmlElement.

    Looks like Silverlight is just smart enough to always use XElement – come to think of it XmlDocument probably doesn’t even exist in the Silverlight framework in the first place.

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

Sidebar

Related Questions

I have a .NET web service (using asmx...have not upgraded to WCF yet) that
I have a .net ASMX webservice that I'm consuming using the ksoap2 library. In
I have a asmx web-service that returns a list of countries for a continent.
I have an .asmx webservice that returns some XML. A sample bit of XML
I have implemented a web service(.asmx) using .NET framework that returns me a hash
I have an asmx web service that should only be allowed to respond to
I have a web service that contains 2 asmx files (public.asmx and private.asmx). On
we have a public asmx service that is accessed by our clients through SOAP
We have a hybrid WCF and ASMX web service currently being used on a
I have a Web Service(.ASMX) code that takes a String Array as a parameter

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.