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. Header files included in Web Services?

Header files included in Web Services?

Scheduled Pinned Locked Moved C#
csharpc++helpquestion
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
    joeller
    wrote on last edited by
    #1

    I have a question that I am sure has been answered many times but I have been unable to find any references on the internet and my attempts to program the situation keep failing and I am running out of time. In designing ASP.Net Web Applications with c# and VB.net I have been able to deploy these applications with only the contents of the bin directory. When I have included third party or in-house class library in the Web app I only needed to include the assembly file (dll) of the class library I am referencing. Now I am trying to analyze alternative designs for a Web service which references a C++ DLL. We want to redesign the DLL as a Visual C++ 2005 DLL, and to reference that assembly in the Web service project. One of the alternatives is to create a visual C++ 2005 ASP.Net web service that references the DLL. I want to report in my evaluation of this alternative that creating a refereence to this Managed assembly of the class library eliminates the need for including the header files in your Web service project. I also want to say that deployment would only require copying the Web service's assembly and the class library's assembly into the bin. (In addtion to the disco, the web config, the asmx, the asax, etc.) But it occured to me I had never actually tested that. Nor had I seen anything written on that. So I tested it first for a c# web service which of course verified my second point. However, when I tested a C++ Web Service I was either unable to successfully compile the Web service, (Error kept reporting the DLL had no copy constructor (which it didn't) when attempting to instantiate object using gcnew: TestDLL::clsPerson^ Me = gcnew TestDLL::clsPerson; or else it would compile successfully but error in the invoke method of the debug when I declared it with out instantiating it. TestDLL::clsPerson^ Me; (note I did not use it at all in the return from the Web service.) At this time I really do not care why it failed I just want an answer to my question. Is it necessary to include the header files from a Managed class library in the Web service when the assembly is referenced using VS 2005 "add reference"? Please help me as this is VERY time sensitive. I need to have this information by Friday 1/12/2007 3:00 PM EST. After that I will have failed in my mandate and it will be of no importance to me as I will be looking for work. Thanks in advance. Edward R. Joell MCSD MCDBA

    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