We have developed a provider hosted app by pointing to SharePoint online which holds a simple logic in the app installed event.
The remote web component of the app is deployed to an on-permises server's IIS. (With SSL offloading enabled. SSL is offloaded from the load balancer and http requests are recived by the IIS)
When the app is installed in the sites, we are getting an exception with the below message.
"The remote event receiver callout failed. Details: There was no endpoint listening at https://spapps.contoso.com/Services/AppEventReceiver.svc that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details."
From the browser we are able to access the service directly in the browser, its accessible at this url https://spapps.contoso.com/Services/AppEventReceiver.svc. But on accessing the wsdl url "https://spapps.contoso.com/Services/AppEventReceiver.svc?wsdl" we see that the address location of the service is in http mode.
<wsdl:service name="AppEventReceiver">
<wsdl:port name="BasicHttpBinding_IRemoteEventService" binding="tns:BasicHttpBinding_IRemoteEventService">
<soap:address location="http://spapps.contoso.com/services/AppEventReceiver.svc"/>
</wsdl:port>
</wsdl:service>
We do not have any dns entry registered for the http url and its not recommended as per the company policies. Is there any solution to access the remote component of the app event reciever with SSL offloading setup..???