CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    May 2004
    Location
    Pell City, Alabama
    Posts
    126

    Possible for ASP.NET Webservice to consume another Webservice ?

    Hello,

    Can any of you give me guidance on how an ASP.NET C# webservice can make use of another Webservice ? Similar to how a web-reference works in a .NET windows application ?

    I am tasked with using a certain webservice from Delphi 7 and due to the fact that this webservice requires x.509 certificates and I have not been able to make that work with Delphi, I have decided to call the webservice from .NET.

    Well I have a basic windows Application made and installed a snippet of code that uses the certificate to invoke this webservice. Now I need to move that snippet of code into a .NET webservice where it can be invoked from Delphi.

    My problem seems to be that I am unable to add a webreference to the C# ASP.NET webservice.

    Can anyone point me in the right direction to accomplish this ?

    Thanks!

  2. #2
    Join Date
    Dec 2005
    Location
    Waterloo ON
    Posts
    545

    Re: Possible for ASP.NET Webservice to consume another Webservice ?

    I'm not sure what the problem was. But you can add web reference in C# ASP.NET web service project and it works.

  3. #3
    Join Date
    May 2004
    Location
    Pell City, Alabama
    Posts
    126

    Re: Possible for ASP.NET Webservice to consume another Webservice ?

    hmmm - I was sure that there must be a way to do that, but I dont see it.

    perhaps I've got the wrong type of project ?

    When I create a C# webservice I don't really get a "project" I get a single file, with a hello world type class thats attributed as a webserice and webmethod.

    Do I need a complete project ?

    It was my understanding that I could use a single aspx type file

  4. #4
    Join Date
    Dec 2005
    Location
    Waterloo ON
    Posts
    545

    Re: Possible for ASP.NET Webservice to consume another Webservice ?

    Oh, no. The service file type should be asmx.

    Open VS 2005, and create new website, you would see a dialog. Then select "Asp.NET Web Service", select Location and Language, click OK. So, you get the webservice project.

  5. #5
    Join Date
    May 2004
    Location
    Pell City, Alabama
    Posts
    126

    Re: Possible for ASP.NET Webservice to consume another Webservice ?

    Thanks.

    Ok when I do that - instead of getting C# type webservice I get managed C++.

    I'm sure I must be close now, how do I get the C# ASP.NET webservice project type ?

  6. #6
    Join Date
    Dec 2005
    Location
    Waterloo ON
    Posts
    545

    Re: Possible for ASP.NET Webservice to consume another Webservice ?

    R U using VS 2005?
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured