2014-05-13 4 views
0

IphoneAndroid에 대한 새 사용자의 인증을위한 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> 

답변

0

시도 SoapUI를 사용하여 서비스를 테스트하기 위해, 그것은 그것 SoapUI에 적절한 결과 나 다른 비누 테스트 도구를 제공합니다 다음은 당신의 아이폰 클라이언트 개발이다 클라이언트 측에서 문제가 대지.

다음 url에서 무료 비누를 가져올 수 있습니다. http://www.soapui.org/

감사합니다,
Gaurav