Hi,
I have worked on a WCF Service hosted in IIS and a workflow in SP2010.
We deployed the WCF Service in the integration server, and the workflow too its SharePoint server too. However, the workflow from the integration server is unable to consume the WCF in the integration server:
System.ServiceModel.Security.MessageSecurityException: An unsecured or incorrectly secured fault was received from the other party. See the inner FaultException for the fault code and detail. ---> System.ServiceModel.FaultException: The message could not be processed because the action 'http://taskmanagement-service.../GetService...' is invalid or unrecognized. --- End of inner exception stack trace ---
I dont know what is the problem, but my local workflow is able to consumes the service from the integration server (I edited the address of the service in the web.config). However, it returns this exception when I try to edit the address to bind to the default address... what may be the problem? Consuming the service through an application console or WCF Test Client works.
web.config of service:
<system.serviceModel><services><service behaviorConfiguration="Service.TaskManagementService.TaskMgmtBehavior" name="Service.TaskManagementService.TaskMgmtService"><endpoint address="" binding="wsHttpBinding" contract="Service.TaskManagementService.ITaskMgmtService"></endpoint></service></services><behaviors><serviceBehaviors><behavior name="Service.TaskManagementService.TaskMgmtBehavior"><serviceMetadata httpGetEnabled="true"/><serviceDebug includeExceptionDetailInFaults="true"/></behavior></serviceBehaviors></behaviors></system.serviceModel>
web.config for the workflow
<system.serviceModel><serviceHostingEnvironment aspNetCompatibilityEnabled="true" /><bindings><wsHttpBinding><binding name="WSHttpBinding_ITaskMgmtService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"><readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /><reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false" /><security mode="Message"><transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /><message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" /></security></binding></wsHttpBinding></bindings><client><endpoint address="http://blabla-dev/TaskService/TaskMgmtService.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_ITaskMgmtService" contract="TaskMgmtService.ITaskMgmtService" name="WSHttpBinding_ITaskMgmtService"></endpoint></client></system.serviceModel>