如何使智能设备使用C#/VB中的XML服务 [英] How to get Smart Device to consume XML Services in C#/VB

查看:68
本文介绍了如何使智能设备使用C#/VB中的XML服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在开发智能设备应用程序.该应用程序应通过Web Web服务与我的sqlserver数据库进行交互.

我的问题是,Web参考没有被添加到我的智能设备应用程序中.我可以在解决方案资源管理器中看到它,但是无法在我的智能设备代码文件中访问它.这是一个代码示例:


1. Service webSevice = new Service(); ******** ????? ********

<罢工> 2. webSevice.Url ="http://localhost/ServiceVDir/Service.asmx";

3. txtMsg.Text = webSevice.HelloWorld();

在上面的代码示例中,我无法越过第1行...未找到服务.一整天都在工作,如果我能得到任何人的帮助,那就太好了...

VS 2008(Visual Basic)
SQLServer 2008年

Hi
I am developing a smart device application. The application should interact with my sqlserver database through a Web webservice.

My problem is, the web reference is not being added to my smart device application. I can see it on solution explorer, but cannot access it on my smart device code file. Here is a code sample:


1. Service webSevice = new Service(); ********?????*******

2. webSevice.Url = "http://localhost/ServiceVDir/Service.asmx";

3. txtMsg.Text = webSevice.HelloWorld();

In the code sample above, I cannot get past line 1... Service is not found. Been working on this the whole day and it would be great if I got assistance from anyone...

VS 2008 (Visual Basic)
SQLServer 2008

What could the problem be?

推荐答案

您必须提供完整的异常详细信息和完整的服务代码块以获取答案...
You have to provide full exception details and full code block of service call for answer...


这篇关于如何使智能设备使用C#/VB中的XML服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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