spanout
asked on
ASP.net (c#) Webservice calls fail when using ssl site
I have built an application that uses a webservice to populate information on jquery dialogs. The application worls well in development and also on a deployment server using http. However, when I use https (which is important), the service call fails. I have read a lot of information about security issues and am lost at what to do. The webservice is a aprt of the application and is being accessed from javascript on the asp.net page:
On the asp.net page:
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="../services/Workflow Service.sv c" />
</Services>
</asp:ScriptManager>
I call the service from script using the following:
var service = new WorkflowService();
service.ReportAddApproval( reportguid , data, addapprovalSuccess);
when debugging (ie debugger not Visual Studio) on https I get:
SCRIPT5009: 'WorkflowService' is undefined
I have spent ages trying to resolve this and just cannot see which way to turn. Any help would be greatly appreciated
On the asp.net page:
<asp:ScriptManager ID="ScriptManager1" runat="server">
<Services>
<asp:ServiceReference Path="../services/Workflow
</Services>
</asp:ScriptManager>
I call the service from script using the following:
var service = new WorkflowService();
service.ReportAddApproval(
when debugging (ie debugger not Visual Studio) on https I get:
SCRIPT5009: 'WorkflowService' is undefined
I have spent ages trying to resolve this and just cannot see which way to turn. Any help would be greatly appreciated
ASKER
thanks for this. Do I implement this in the svc file as I am calling it from javascript?
I also not that the document.ready jquery is raining some JS error:
SEC7111: HTTPS security is compromised by (null)
javascript:false;
I cannot see where that is happenning as it is not associated with a script line. All linked js files are references relatively, so should assume the https protocol.
I also not that the document.ready jquery is raining some JS error:
SEC7111: HTTPS security is compromised by (null)
javascript:false;
I cannot see where that is happenning as it is not associated with a script line. All linked js files are references relatively, so should assume the https protocol.
ASKER
also, the browser doesn't report any certificate problems?
hi,
my previous comment is for the client side web service call, at that time you can bypass the ssl error if any thrown. you don't want add any code part in your svc service side.
and i try to post the code for the javascript to bypass the ssl error.
also can you check the "View site Information" in the address bar? That may give more info about the ssl.
my previous comment is for the client side web service call, at that time you can bypass the ssl error if any thrown. you don't want add any code part in your svc service side.
and i try to post the code for the javascript to bypass the ssl error.
also can you check the "View site Information" in the address bar? That may give more info about the ssl.
ASKER
there appears to be no SSL issues with the site. I use the same certificate for a number of sites without issue. But this is the first site using this webservice. Any javascript code would be appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
There was no solution for WCF webservice offered by the experts
if so you may bypass the ssl error and continue the process.
Have a look on the below link
http://blog.jameshiggs.com/2008/05/01/c-how-to-accept-an-invalid-ssl-certificate-programmatically/
Hope this may help you.