Link to home
Start Free TrialLog in
Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden

asked on

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.
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

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.
Avatar of jazzIIIlove

ASKER

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.
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.
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.
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.
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.
So the client side is a desktop application?  That should work.  You'll still need a host (web server) for the web service though.
Client side is a desktop app. But i am lost how and where to deploy the web service? Client side or server side?

Regards.
ASKER CERTIFIED SOLUTION
Avatar of Paul MacDonald
Paul MacDonald
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial