[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Web service using in ASP.NET?

Posted on 2011-10-05
9
Medium Priority
?
296 Views
Last Modified: 2012-05-12
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.
0
Comment
Question by:jazzIIIlove
  • 5
  • 4
9 Comments
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36920238
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
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36920351
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
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36920488
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36920541
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
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36920553
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
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36920809
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
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 36920840
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
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 36921002
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
 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 2000 total points
ID: 36921866
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

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task of choosing a web design company to build a website for your business should never be taken in a light manner. Provided the fact that your website will act as a representative to your business and will be responsible for imposing an online …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
Integration Management Part 2
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question