Iphone
및 Android
에 대한 새 사용자의 인증을위한 WCF 서비스를 설계했습니다. 처음에 나는 basciHttpBinding
을 사용하고 있었고 내 서비스는 Iphone에서 잘 작동했지만 15-20 일 후에 구성이 변경되었으며 이제는 wsHttpBinding
을 사용하고 있습니다. 이제 내 서비스를 Iphone
에서 wsHttpBinding
으로 전화 할 수 없지만 Android
에서 잘 작동합니다. Iphone
에 대해 wsHttpBinding
이 작동하지 않는다고 들었습니다. 누구든지 내 web.config에 어떤 구성을 만들어야 Iphone
도 같이 작동하도록 제안 해 줄 수 있습니까?IFC에서 wsHttpBinding을 사용하여 WCF 서비스를 호출 할 수 없습니다.
의 Web.config
<?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>