Android 无法从Iphone使用wsHttpBinding调用WCF服务
我设计了一个WCF服务,用于对Iphone和Android的新用户进行身份验证。最初我使用的是basciHttpBinding,我的服务在Iphone上运行良好,但15-20天前我更改了配置,现在我使用的是wsHttpBinding。现在我无法使用wsHttpBinding从Iphone调用我的服务,但它在Android上运行良好。我听说wsHttpBinding不适用于Iphone。有谁能建议我在我的web.config中做什么配置才能在Iphone上使用它吗 Web.ConfigAndroid 无法从Iphone使用wsHttpBinding调用WCF服务,android,ios,iphone,wcf,wcf-binding,Android,Ios,Iphone,Wcf,Wcf Binding,我设计了一个WCF服务,用于对Iphone和Android的新用户进行身份验证。最初我使用的是basciHttpBinding,我的服务在Iphone上运行良好,但15-20天前我更改了配置,现在我使用的是wsHttpBinding。现在我无法使用wsHttpBinding从Iphone调用我的服务,但它在Android上运行良好。我听说wsHttpBinding不适用于Iphone。有谁能建议我在我的web.config中做什么配置才能在Iphone上使用它吗 Web.Config 尝试使用S
尝试使用SoapUI测试您的服务,它会在SoapUI或任何其他soap测试工具上给出正确的结果,然后在客户端(您的IPhone客户端开发站点)出现问题 您可以从以下url获得免费的soap ui。 谢谢, 高拉夫
<?xml version="1.0"?>
<configuration>
<configSections>
<sectionGroup name="spring">
<section name="context" type="Spring.Context.Support.ContextHandler, Spring.Core"/>
<!--<section name="context" type="Spring.Context.Support.WebContextHandler, Spring.Web"/>-->
<section name="parsers" type="Spring.Context.Support.NamespaceParsersSectionHandler, Spring.Core"/>
</sectionGroup>
</configSections>
<spring>
<parsers>
<parser type="Spring.Data.Config.DatabaseNamespaceParser, Spring.Data"/>
<parser type="Spring.Transaction.Config.TxNamespaceParser, Spring.Data"/>
</parsers>
<context>
<!--<resource uri="config://spring/objects"/>-->
<!--<resource uri="assembly://TA.Service/TA.Service.Config/DynamicConnection.xml"/>-->
<resource uri="~/DynamicConnection.xml"/>
<resource uri="assembly://TA.Service/TA.Service.Config/Dao.xml"/>
<!--<resource uri="~/Dao.xml"/>-->
<!--<resource uri="~/Config/Web.xml"/>-->
<!--<resource uri="assembly://CB.Service/CB.Service/Services.xml"/>-->
</context>
</spring>
<appSettings>
<add key="Spring.Data.NHibernate.Support.OpenSessionInViewModule.SessionFactoryObjectName" value="NHibernateSessionFactory"/>
</appSettings>
<system.web>
<compilation debug="true" targetFramework="4.0" />
</system.web>
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="myBehavior">
</behavior>
</endpointBehaviors>
<serviceBehaviors>
<behavior name="serviceBehaviour">
<!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true. Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<wsHttpBinding>
<binding name="NewBinding0">
<reliableSession enabled="true" />
<security mode="None" />
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name="TA.Service.Service1" behaviorConfiguration="serviceBehaviour">
<endpoint address="" binding="wsHttpBinding" behaviorConfiguration="myBehavior"
bindingConfiguration="NewBinding0" name="testendpoint" contract="TA.Service.IService1" />
</service>
</services>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>