简体   繁体   中英

I can't add WCF reference to windows mobile project?

I create a smart-phone project(Windows mobile pocket pc 5.0 sdk and CF3.5) and the WCF created on the same solution in visual studio 2008.When i choose "add web reference" and then choose " Web services in this solution" i get this error None - No Web services were found in the current solution. If i put its URL and click Go I get this error This program cannot display the web page. Can any one help me in this problem??

I think the problem in the URL i put it on the web reference.I replace the "localhost" with my computer IP but also doesn't work???

Try adding a Service Reference instead of a Web Service Reference. Web References are for the old XML Web Services functionality not for most WCF services.

EDIT: This question is for Windows Mobile Pocket PC 5.0 which apparently doesn't support WCF service references but this blog post shows how to add a WCF service reference to Windows Mobile 6.0 using Web References. It outlines the basic process which should work for Windows Mobile 5.0 projects.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM