Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ken 2 posts 22 karma points
    Nov 24, 2009 @ 11:40
    Ken
    0

    How to use web service as datasource of contour

    Hi All,

    How to use web service as  datasource of contour

    below is my setting

    ==

    Url:http://mysite/umbraco/webservices/api/MemberService.asmx

    Service Name: MemberService

    Method: create

     

    error message:

    • Webservice does not exist
    • No services found at url

    Thanks!

    Ken

  • Comment author was deleted

    Nov 24, 2009 @ 11:52

    Hi Ken,

    The Service name needs to be memberService, not MemberService.

    And make sure that you can request the webservice from the webserver the site is running on.

    Cheers,
    Tim

  • Ken 2 posts 22 karma points
    Nov 24, 2009 @ 15:02
    Ken
    0

    Hi Tim,

    that can work,but I find some issues.

    When I create one data source and then create second ,it will fail unless iis reset

    error message is

    Service Not Available

     

    Another issue is that  web service  over use https protocol will throw exception:

    umbracoForms: System.Net.WebException: The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid according to the validation procedure.

     

    I try add below code at Application_Start event,but cant not work 

    ServicePointManager.ServerCertificateValidationCallback += delegate ( object

    sender ,
          System.Security.Cryptography.X509Certificates.X509Certificate
    pCertificate ,
          System.Security.Cryptography.X509Certificates.X509Chain pChain ,
          System.Net.Security.SslPolicyErrors pSSLPolicyErrors )
          {
           return true;
          };

     

    Thanks for quickly answer ^ ^

Please Sign in or register to post replies

Write your reply to:

Draft