Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. WebServices and classes

WebServices and classes

Scheduled Pinned Locked Moved C#
wcfcsharphelpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JHubSharp
    wrote on last edited by
    #1

    I'll preface this by saying that I'm a Webservice novice. I get the concept, but I know next to nothing about the details. It's something I need to remedy, especially with SOA/WCF/etc. That being said... I have two Web Site Projects. One is exposed to the other as different webservices. I have a class in the service project that I'd like to consume in the other project. This class contains properties and methods. I've noticed a few things:

    • The class won't be exposed in the wsdl unless it's used by the asmx.cs file. Simply having the class in the same assembly doesn't mean anything.Is that correct?
    • When I use the class as a return type of one of the service's web methods, it's defined in the wsdl as a compex type bt with no fields or methods. Is this because the service will only expose the fields of the class (i.e. not the properties or the methods)?
    • Assuming the above to be true, is there any way for my consumer project to consume this class and use its methods without exposing the methods in the web service? Or am i going about this the wrng way entirely?

    Thanks for your help.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups