Web Services:

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • splendid9
    New Member
    • Mar 2008
    • 56

    Web Services:

    Web Services:

    i hav a very basic question. i hav written a web service creating a new webservice proj along in my existing soloution... there r errors in the main proj,but the webservicer proj is perfect with no errors. i built it and did 'View in browser'.. i cud see the methods ..web methods...but how to add the reference(url) to my project. and i dont find any invoke button nywhere...is there any problem with my webservice or am i trying to use it in a wrong way ??? pleasse reply me ASAp.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    I am not sure I understand what you are asking.
    If your webserver works fine, just use it?

    Comment

    • Curtis Rutland
      Recognized Expert Specialist
      • Apr 2008
      • 3264

      #3
      If you are doing an ASP.NET project, right click the project and chooose "Add Web Reference." If you are using a forms/console app, right click the References folder and click "Add Web Reference." Then put in your URL.

      That's how you add a web reference. Then you can instantiate your class and use the WebMethods.

      Comment

      • splendid9
        New Member
        • Mar 2008
        • 56

        #4
        i dont hav an option to add web reference when i do a right click,.,.,.i hav add Service reference & add reference.

        Also, wht shud be the url that i need to add as web reference, is it the url where on a page i can see the methods or the url , when i click on the methods..and my ques is y am i not able to see INVOKE under methods.cud u pls let me know.plss

        Comment

        • Plater
          Recognized Expert Expert
          • Apr 2007
          • 7872

          #5
          Originally posted by splendid9
          i dont hav an option to add web reference when i do a right click,.,.,.i hav add Service reference & add reference.
          What version of .NET are you using and what version of visual studio do you have? Also, what kind of project are you trying to use the web service with?

          Comment

          • splendid9
            New Member
            • Mar 2008
            • 56

            #6
            3.5, Vs 2008...it Is A Web App

            Comment

            • Plater
              Recognized Expert Expert
              • Apr 2007
              • 7872

              #7
              That's strange that a web application does not have the "add a web reference" option. I have it in vs2005. I don't think you can add a web reference to a web service though, maybe you have to make sure you're on the correct project for it to allow you to add the reference?

              Comment

              Working...