通过C#在Windows CE 6.0中调用XML Web服务 [英] Calling a XML webservice in windows CE 6.0 by C#

查看:86
本文介绍了通过C#在Windows CE 6.0中调用XML Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试将Web服务添加到Win CE项目中.
我成功添加了Web服务并在模拟的win mobile 5.0中对其进行了测试,并且可以正常工作.但是,当我在Win CE设备中对其进行测试时,它遇到了内存不足的错误.这是我的代码:

MobileService s = new MobileService();
字符串a = s.HelloWorld();

button1.Text = a;

我只是尝试使用世界Hello Web服务进行测试.我的互联网连接正常.

Hi,
I am trying to add a web service to my win CE project.
I added the webservice successfully and test it in win mobile 5.0 emulated and it worked properly.but when i test it in a win CE device it encountered a low memory Error.this is my code:

MobileService s = new MobileService();
string a = s.HelloWorld();

button1.Text = a;

I just try to test with a hello world webservice.My internet connection is OK.
what can i do to solve my problem.

推荐答案

似乎您的代码不是问题,而是设备.它可能会使用一些内存升级.由于这是您的要求,这是很正常的事情.但是,如果这不可能,那么您可以通过与底层肥皂中的Web服务进行对话来解决较低的问题.

但这就像时光倒流..

http://msdn.microsoft.com/en-us/library/ms862702.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/ms897379.aspx [ ^ ]
It seems like your code is not the problem but the device. It could use some memory upgrade. Since it is a normal thing you''re asking of it.. But if that''s not possible, maybe you could solve it at a lower level by talking to the webservice in the underlying soap.

But it would be like going back in time..

http://msdn.microsoft.com/en-us/library/ms862702.aspx[^]

http://msdn.microsoft.com/en-us/library/ms897379.aspx[^]


但是我的系统上有512MB的ram,对于Web服务中的这么小的请求来说似乎并不低.我认为我的Internet连接有问题.我设置了我的适配器设置Windows CE就像我的计算机一样.但是我的映像中没有IE可以对其进行测试.
But I have 512MB of ram on my system, and it is not seems to be low for such a small request in web service.I think there is a problem in my internet connection.I set up the adapter setting of my windows CE just like my computer.but I don''t have IE in my image to test it.


这篇关于通过C#在Windows CE 6.0中调用XML Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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