Using a webservice(a dll) in .NET application.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sujitsharma
    New Member
    • Apr 2007
    • 3

    Using a webservice(a dll) in .NET application.

    Hi All,

    I have a webservice dll called abcwebservice.d ll which is being used in a php application. And there is no other information about this dll, I mean what language, etc have been used to develop it.
    Currently this dll is available on the server (application server for which php pages are used) and has IIS installed there.


    I wanted to port the php webpage(applica tion) to ASP.NET. So, I installed Microsoft Visual Studio 5 and created a website. Also, please note that I am creating the project a separate pc and not the server.

    First of all I would like to know whether it is possible to use such a dll (webservice) in .NET application.


    If it is I would like to have some guidance as to how it can be added to the .NET project before created objects for it.


    Thanks in advance!

    Have a wonderful day!
    Warm Regards,
    Sujit.
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    You would add the DLL as a reference in your project. Then you would add it's namespace (optionally) with the 'using' syntax.

    Comment

    • sujitsharma
      New Member
      • Apr 2007
      • 3

      #3
      Thanks for the reply, Motoma!

      Well, I see there are two options in MSVstudio, 'Add Reference' and 'Add Web Reference'.

      Which one shall I use?

      I just tried using the 'Add Web Reference' option. (I am not able to insert an image file(snapshot) here that I have):

      Well, in the 'Webservices found at this url' field the following is displayed:
      " There was an error downloading 'http://192.168.1.91/Scripts/Arenawebservice .dll'.

      The server committed a protocol violation. Section=Respons eHeader Detail=Header name is invalid "

      Regards,
      Sujit.

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        If you are on the same machine as the DLL, you can just add the reference normally.

        Comment

        Working...