我该如何制作&在窗口应用程序中使用Web服务 [英] how can i make & use web service in window application

查看:79
本文介绍了我该如何制作&在窗口应用程序中使用Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个窗口应用程序,用于扫描图像并将图像存储在数据库中并从目录中删除该图像.
如何制作用于扫描图像的Web服务并将图像存储在数据库中?如何在窗口应用程序中使用Web服务?
请尽快回复.

i made a window application for scanning image & store image in database & remove that image from directory.
how can i make a web service for scanning image & store a image in database? how can i use web service in window application?
pls reply as fast as possible.

推荐答案

好像您不太清楚什么是Web服务?在此处阅读 [ 要使用Web服务,请制作一个,将其公开,然后在Windows应用程序中引用该Web服务,以便您可以与之交谈.扫描完图像后,请使用网络服务来存储图像.您将需要创建一个Web服务对象,然后在其中使用公开的Web方法之一.
Looks like you are not very clear on what a Webservice is? Have a read here[^] just to be more clear.(Just picked the first link of Google! If you want, pick any other.)

Using a webservice you can surely do the storing part of the image in database but not ''scanning''.
For using a Webservice, make one, expose it, then reference the same in your windows application such that you can talk to it. Once you have scanned image with you, use the webservice to store that. You will need to create an object of webservice and then uese one of the exposed Webmethods in it.


这篇关于我该如何制作&在窗口应用程序中使用Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆