Click here to Skip to main content
15,901,368 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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.
Posted
Comments
[no name] 21-Jun-11 15:31pm    
You mention that you registered the dll, but did you also register .wsdl and .wsml? Take a look at figure 2:
http://msdn.microsoft.com/en-us/library/ms836762.aspx

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.
 
Share this answer
 
Comments
[no name] 21-Jun-11 18:52pm    
Did you verify the contents of the .wsdl file?
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>
 
Share this answer
 
Comments
[no name] 22-Jun-11 4:38am    
I am no expert too unfortunately. I didn't expect to see the '#unknown' values. I would remove all attributes that have the '#unknown' value. Take a look here to see a wsdl file with some explanation: http://msdn.microsoft.com/en-us/library/ms862068.aspx
Richard W Allen 22-Jun-11 5:34am    
None of the attributes with the "#unknown" value are in the files on my PC whether I view it in notepad or VS2005. The have somhow been added as I have pasted it into the post. Sorry for the confusion. Thanks for the link. I will study the .wsdl file to see if I can spot any problems, but in the meantime, if you have any more ideas I would like to hear them.
Richard W Allen 22-Jun-11 9:49am    
I have been through the .wsdl file in detail and it seems to be OK.Do you think it is possible that there is a CE component missing from my build which is needed in the web service discovery process?
[no name] 22-Jun-11 15:58pm    
I agree that I don't see anything strange in the .wdsl file. It looks good to me, but it may still be some configuration error. Did you check other configuration settings (also in registry)?
Richard W Allen 23-Jun-11 4:27am    
I have checked the registry entries (and so has my customer) and it all makes sense. I'm not sure what other configurations to check.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900