Web service using in ASP.NET?

Hi there;

A little urgent, though, i have a web service in my project, and i want to use in my ASP.NET web application.

I have no idea how to use this service in my web application?

Am i going to deploy it to the client machine? If so, how? And how can i call this in ASP.NET page? I mean am i going to deploy that web service to client machine or server machine?

Could you provide me a sample, explanation, better to be illustrated?

Kind regards.
LVL 12
jazzIIIloveAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Paul MacDonaldDirector, Information SystemsCommented:
In the Solution for your web site you should be able to right-click on the project and Add Service Reference.  This should give you access to the events exposed by the service.
jazzIIIloveAuthor Commented:
And how can i invoke the web service in my server side in my ASP.NET webpage? Moreover, where should i put the service dll? In my client app? Or in my server app.?

Regards and thanks for the swift reply.
Paul MacDonaldDirector, Information SystemsCommented:
I'm not sure how to answer this.  You "invoke" the web service - once you have a reference to it -  by dimming up a variable to represent it or one of its methods:

  DIM oServiceObject AS NEW Service
  oServiceObject.DoSomething

The service will have to be served up, just like a web site.  Not knowing anything about how your service is configured I can't really answer that for you.  Not knowing what you're calling a client app or a server app, I still can't answer that for you.
Exploring SQL Server 2016: Fundamentals

Learn the fundamentals of Microsoft SQL Server, a relational database management system that stores and retrieves data when requested by other software applications.

jazzIIIloveAuthor Commented:
It's in C# and the service has a request of the client which will go to server. So, should web service reside in the client side?

Regards.
Paul MacDonaldDirector, Information SystemsCommented:
Well, it doesn't make any sense to me that a web service would be deployed to a client, but you'd know more about your product than I do.  Typcially a web service is served up just like a web site -  you just don't interact with a web service using a browser.
jazzIIIloveAuthor Commented:
It's a .NET remoting application sending client requests via web server, i did the client side as standalone solution having a web service project.

Kind regards.
Paul MacDonaldDirector, Information SystemsCommented:
So the client side is a desktop application?  That should work.  You'll still need a host (web server) for the web service though.
jazzIIIloveAuthor Commented:
Client side is a desktop app. But i am lost how and where to deploy the web service? Client side or server side?

Regards.
Paul MacDonaldDirector, Information SystemsCommented:
The web service is a WEB service.  You can deploy it anywhere you have a web server.  I cabor authoritatively answer the question because I don't know how your product works, but I'm guessing you'll want to deploy it on the server side.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Services

From novice to tech pro — start learning today.