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?
 
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.
0
 
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.
0
 
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.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
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.
0
 
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.
0
 
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.
0
 
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.
0
 
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.
0
 
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.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.