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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:59:49+00:00 2026-05-15T07:59:49+00:00

Originally posted on: http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_21355401.html I have a solution containing two projects: a webservice project

  • 0

Originally posted on:
http://www.experts-exchange.com/Programming/Languages/C_Sharp/Q_21355401.html

I have a solution containing two projects: a webservice project and a web app project which has a web reference to the webservice project (the web app project is simply a test case).

My webservice project includes a class file containing multiple public structs. I can use these just fine from within the webservice project itself. However, I’m not able to see or reference the structs from within the web app project.

Isn’t it true that when you add a web reference to a web service, you essentially get an “object” version of the webservice? In that case I expect to be able to access any public members of the webservice.

I have previously created services that reference associated projects, and when I consume the service, I have access to the referenced projects and their members. Why don’t I have access to a class file that’s in the same project as the service?

The Namespace for the webservice (asmx) and the class file (cs) are the same. In the web app, I have a using statement for the web reference. I DO have access to the webmethods from the asmx, just not the associated class files and their public members…

I’m having the same problem, someone could tell me what’s the solution?
I would like to send a list of parameter struct publicly available on the WebService.

  • 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-15T07:59:50+00:00Added an answer on May 15, 2026 at 7:59 am

    First of all, you should be using WCF instead of ASMX web services for all new development.

    Second, when you add a Web Reference (or, preferably a Service Reference), you get proxy copies of all the types exposed by the web service. If the service returns a class that contains a public property of some struct type, then you will get a proxy copy of the returned class, as well as a proxy copy of the struct type.

    You’ll get a class, BTW, not a struct. The concept of “struct” doesn’t translate across service boundaries.

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

Sidebar

Related Questions

I originally used WebRequest and WebResponse to sent Http Post Messages. Always I got
Originaly posted a while back on a different forum, hope I can find a
Edit: This was accidentally posted twice. Original: VB.NET Importing Classes I've seen some code
Originally there was the DAL object which my BO's called for info and then
Originally I thought to ask if there would be an easy way to provide
Originally I though I'll just take a screenshot of my app on the iPhone
I originally asked this question on RefactorMyCode , but got no responses there... Basically
I originally asked this question , but in finding an answer, discovered that my
Note: Originally this question was asked for PostgreSQL, however, the answer applies to almost
This originally was a problem I ran into at work, but is now something

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.