简体   繁体   English

在Windows Phone 8中使用Wcf服务

[英]Consuming a Wcf service in Windows phone 8

I have already seen this link for connecting local web service in windows phone 8 emulator. 我已经看到了用于在Windows Phone 8仿真器中连接本地Web服务的链接。

http://msdn.microsoft.com/en-in/library/windowsphone/develop/jj684580%28v=vs.105%29.aspx http://msdn.microsoft.com/zh-CN/library/windowsphone/develop/jj684580%28v=vs.105%29.aspx

But this is not enough, i am trying to consume a remote wcf service in my windows phone 8 application; 但这还不够,我正在尝试在Windows Phone 8应用程序中使用远程wcf服务。 but every time i am getting a 407 proxy authentication required error. 但是每次我收到407代理身份验证所需的错误时。

Service is working fine but I am not able to consume the service; 服务工作正常,但我无法使用该服务; in windows store apps i can consume this service without any problems, but in windows phone 8 im not able to consume properly. 在Windows商店应用程序中,我可以使用此服务而没有任何问题,但是在Windows Phone 8中,IM无法正常使用。

Can you try to add it in your web.conf 您可以尝试在web.conf中添加它吗

<system.net>
  <defaultProxy useDefaultCredentials="true" />
</system.net>

Or this ? 或这个 ?

  <system.net>
    <defaultProxy>
      <proxy usesystemdefault="False"/>
    </defaultProxy>
  </system.net>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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