CE设备上的Web服务 [英] Web service on CE device

查看:77
本文介绍了CE设备上的Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在CE设备上公开Web服务.我正在使用仿真器进行测试.我的.dll .wsdl和.wsml文件位于\ Windows \ www \ wwwpub中,并且已注册dll.我的桌面上有一个用C#编写的测试应用程序,但是当我尝试创建Web参考时,它无法发现Web服务.我收到网站无法显示页面".我知道我的网址(http://192.168.1.109/CE6atlws2.wsdl)是正确的.如果我输入"http://192.168.1.109",它将显示默认网页. wsdl和wsml文件是使用Mike Hall的CEWSDLGen实用程序创建的.我正在使用VS2005.我不知道如何调试此问题.如果有人有任何想法,我将很高兴听到他们的想法.我意识到我没有提供太多信息.请让我知道您还想要什么.

I am trying to expose a web service on a CE device. I am using an emulator for testing. My .dll .wsdl and .wsml files are in \Windows\www\wwwpub and the dll is registered. I have a test app on my desktop written in C#, but when I try to create a web reference it cannot discover the web service. I get "The website cannot display the page". I know my URL (http://192.168.1.109/CE6atlws2.wsdl) is correct. If I enter "http://192.168.1.109" it displays the default web page. The wsdl and wsml files were created using Mike Hall''s CEWSDLGen utility. I am using VS2005. I do not know how I can debug this problem. If anyone has any ideas I would be glad to hear them. I realise I have not provided much information. Please let me know what else you would like.

推荐答案

感谢您的答复.是的,注册表项如图2所示. 2.添加Web参考"对话框报告下载CE6atlws2.wsdl时出错",因此听起来好像无法访问该文件,而不是处理该文件时遇到了问题.
Thanks for the reply. Yes, the registry entries are as shown in fig. 2. The Add web reference dialog reports an "error downloading CE6atlws2.wsdl" so it sound as though it can''t access the file rather than a problem processing it.


我不是专家,但是.wsld对我很满意.这里是内容.如果您发现任何问题,请告诉我.

I am no expert, but the .wsld tooks OK to me. Here is the content. Please let me know if you see anything wrong.

 <!-- Generated 06/21/11 by Microsoft SOAP Toolkit WSDL File Generator, Version VER_PRODBUILD_MAJOR.VER_PRODBUILD_MINOR.VER_PRODBUILD_BUILD.VER_PRODBUILD_QFE --> 
<definitions name="CE6atlws2" targetnamespace="http://tempuri.org/wsdl/">
	 xmlns:wsdlns=''http://tempuri.org/wsdl/'' 
	 xmlns:typens=''http://tempuri.org/type'' 
	 xmlns:soap=''http://schemas.xmlsoap.org/wsdl/soap/'' 
	 xmlns:xsd=''http://www.w3.org/2001/XMLSchema'' 
	 xmlns:stk=''http://schemas.microsoft.com/soap-toolkit/wsdl-extension''
	 xmlns=''http://schemas.xmlsoap.org/wsdl/''> 
  <types>
    <schema targetnamespace="http://tempuri.org/type">
      xmlns=''http://www.w3.org/2001/XMLSchema''
      xmlns:SOAP-ENC=''http://schemas.xmlsoap.org/soap/encoding/''
      xmlns:wsdl=''http://schemas.xmlsoap.org/wsdl/''
      elementFormDefault=''qualified''>
    </schema>
  </types>
  <message name="CE6WebService2.GetMemoryLoad">
  </message>
  <message name="CE6WebService2.GetMemoryLoadResponse">
    <part name="Result" type="xsd:int" />
  </message>
  <porttype name="CE6WebService2SoapPort">
    <operation name="GetMemoryLoad" parameterorder="">
      <input message="wsdlns:CE6WebService2.GetMemoryLoad" />
      <output message="wsdlns:CE6WebService2.GetMemoryLoadResponse" />
    </operation>
  </porttype>
  <binding name="CE6WebService2SoapBinding" type="wsdlns:CE6WebService2SoapPort">
    <stk:binding preferredencoding="UTF-8" xmlns:stk="#unknown" />
    <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" xmlns:soap="#unknown" />
    <operation name="GetMemoryLoad">
      <soap:operation soapaction="http://tempuri.org/action/CE6WebService2.GetMemoryLoad" xmlns:soap="#unknown" />
      <input>
        <soap:body use="encoded" namespace="http://tempuri.org/message/" xmlns:soap="#unknown">
		  encodingStyle=''http://schemas.xmlsoap.org/soap/encoding/'' />
      </soap:body></input>
      <output>
        <soap:body use="encoded" namespace="http://tempuri.org/message/" xmlns:soap="#unknown">
		  encodingStyle=''http://schemas.xmlsoap.org/soap/encoding/'' />
      </soap:body></output>
    </operation>
  </binding>
  <service name="CE6atlws2">
    <port name="CE6WebService2SoapPort" binding="wsdlns:CE6WebService2SoapBinding">
      <soap:address location="http://192.168.1.109/CE6atlws2.wsdl" xmlns:soap="#unknown" />
    </port>
  </service>
</definitions>


这篇关于CE设备上的Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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