i have a WCF service and using wsHttpBinding in web config.
create a test certificate from IIS7 and use it as https binding with website
Web config of Service as below
<system.serviceModel><behaviors><serviceBehaviors><behavior name="WsBehaviour"><serviceMetadata httpsGetEnabled="true"/><serviceDebug includeExceptionDetailInFaults="false"/></behavior></serviceBehaviors></behaviors><bindings><wsHttpBinding><binding name="WsBinding"><security mode="Transport"><transport clientCredentialType="None" proxyCredentialType="None" realm=""/><message clientCredentialType="None" algorithmSuite="Default" /> </security> </binding></wsHttpBinding> </bindings><services><service name="WsService.Service1" behaviorConfiguration ="WsBehaviour"><endpoint address="https://MachineName.DomainName:8087/WsService/Service1.svc" binding="wsHttpBinding" bindingConfiguration="WsBinding" contract="WsService.IService1" ><identity><dns value="localhost" /></identity></endpoint></service></services> </system.serviceModel>
while open Url in browser it was working perfect, also work perfect in add Service referance to silverlight project . but while call service from application it will gives cross-domain error , i have also include clientaccesspolicy.xml and crossDomain.xml in project, but still face a problem
An error occurred while trying to make a request to URI 'https://MachineName.DomainName:8087/WsService/Service1.svc'. This could be due to attempting to access a service in a cross-domain way without a proper cross-domain policy in place, or a policy that is unsuitable for SOAP services. You may need to contact the owner of the service to publish a cross-domain policy file and to ensure it allows SOAP-related HTTP headers to be sent. This error may also be caused by using internal types in the web service proxy without using the InternalsVisibleToAttribute attribute. Please see the inner exception for more details.
Please guide me for any changes in app , also you can share any sample link for the same
thanks in advance
Chirag Sr. Sw.Developer Ahmedabad