如何在查询字符串中传递WCF Web服务中的电子邮件ID [英] How to pass email id in WCF web service in query string
问题描述
http:// localhost:51346/Summary.svc/GetEmployeeId/abc@gmail.com [ ^ ]
我尝试了什么:
当我在网络服务中传递电子邮件ID时它给了我一个错误,说资源无法找到,虽然我谷歌为此,我的问题是'。'在电子邮件地址。所以我做了url编码,但它没有解决我的问题。我没有找到任何适当的解决方案。请帮助这个
http://localhost:51346/Summary.svc/GetEmployeeId/abc@gmail.com[^]
What I have tried:
When i'm passing email id in web service its giving me an error saying that "Resource could not be found",though i did google for that and my issue is '.' in the email address.also i did url encode but it does not solved my problem.i did not find any proper solution.please help for this
推荐答案
如果服务在Visual Studio开发服务器(也称为Cassini)上托管,当URI包含多个点字符时可能会出现问题。这是开发服务器的已知限制。要解决此问题,请使用IIS Express或完整的IIS。
If the service is hosted on Visual Studio Development Server (so called Cassini), it might have problems when the URI contains multiple dot characters. This is a known limitation of the development server. To overcome this issue use IIS Express, or full blown IIS.
c# - 作为WCF数据服务查询字符串的一部分的电子邮件地址 - Stack Overflow [ ^ ]
更多信息,请参阅以下主题 -
http ://www.codeproject.com/Questions/399585/how-to-pass-email-address-in-wcf-service-url [ ^ ]
使用IIS Express轻松实现Web开发 [ ^ ]
希望,它有助于:)
c# - Email address as part of a WCF data service querystring - Stack Overflow[^]
More information in the following thread-
http://www.codeproject.com/Questions/399585/how-to-pass-email-address-in-wcf-service-url[^]
Make Web Development Easier with IIS Express[^]
Hope, it helps :)
这篇关于如何在查询字符串中传递WCF Web服务中的电子邮件ID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!