我需要帮助使用wcf + windows phone + sql server做一个项目 [英] i need help to do a project using wcf+windows phone +sql server

查看:92
本文介绍了我需要帮助使用wcf + windows phone + sql server做一个项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过这个链接 http:// www。 c-sharpcorner.com/uploadfile/rohatash/inserting-data-into-database-using-wcf-service/ [ ^ ]创建wcf服务但是我在Windows中添加服务引用时收到错误phone

i tried this link http://www.c-sharpcorner.com/uploadfile/rohatash/inserting-data-into-database-using-wcf-service/[^] to create wcf service but i am getting error when i am adding service reference in windows phone

推荐答案

要使您的WCF服务运行,请按照以下步骤操作



1)创建WCF后服务应用程序,如果你点击f5,服务将在浏览器中运行。

2)点击浏览器中显示的项目列表中的服务名称(默认情况下,你将能够看到Service1 .svc;

3)点击该链接导航到一个页面,其中显示了一些名为& quot的文本。您已创建了一项服务。 bla bla bla& quot;在此复制浏览器网址。它将是这样的



例如 http:// localhost:16679 / Service1 .svc [ ^ ]现在离开这个项目(在运行状态下)



移动到您的手机应用程序并添加服务参考到正在运行的服务< / pre>



您将能够访问该服务
To make your WCF service running , follow these steps

1) After creating a WCF Service application, if you hit f5, the service will run in browser.
2)Click on the service name in the list of items displayed in the browser(by default you will be able to see "Service1.svc";
3)Clicking on that link navigates to a page where it shows some text called &quot;You have created a service. bla bla bla&quot;. Copy the browser url here. It will be something like this

e.g http://localhost:16679/Service1.svc[^]Now leave this project as it is(in running state)

Move to your phone app and add service reference to the running service</pre>

You will be able to access the service


这篇关于我需要帮助使用wcf + windows phone + sql server做一个项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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