Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7074779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:05:56+00:00 2026-05-28T06:05:56+00:00

I have a service [OperationContract] [WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)]

  • 0

I have a service

[OperationContract]
[WebGet(ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)]
public Customer GetCustomer(string customerNumber)
{
    return _service.GetCustomer(customerNumber);
}

that I call from a web page using jQuery

    var customerNumber = '123456';
    $.getJSON('/JsonServices/B2BServiceJson.svc/GetCustomer', { customerNumber: customerNumber }, customerSelected);

Here is the callback for the getJSON call:

// HELP! result is null when SSL is enabled
function customerSelected(result) { 
    var customer = result.GetCustomerResult;
    var email = customer.Email;
    // other stuff
}

And here is the configuration

  <system.serviceModel>
    <services>
      <service name="B2B.JsonServices.B2BServiceJson">
        <endpoint address="" binding="webHttpBinding" contract="B2B.JsonServices.B2BServiceJson"
                  behaviorConfiguration="ajaxBehavior" />
      </service>
    </services>


<behaviors>
  <endpointBehaviors>
    <behavior name="ajaxBehavior">
      <webHttp />
    </behavior>
  </endpointBehaviors>
</behaviors>

<!-- other stuff -->

This worked fine until I enabled SSL on my servers. Now the getJSON call succeeds but returns null.
Please help me get this working over SSL. Thanks

My environment is .Net 3.5, IIS 7

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T06:05:57+00:00Added an answer on May 28, 2026 at 6:05 am

    This is what I ended up with and it works perfectly.

      <system.serviceModel>
        <services>
          <service name="B2B_lite.JsonServices.B2BLiteServiceJson">
            <!-- SSL -->
            <endpoint address="" binding="webHttpBinding" contract="B2B.JsonServices.B2BServiceJson"
                      bindingConfiguration="webHttpsBinding" behaviorConfiguration="restBehavior"/>
          </service>
        </services>
        <behaviors>
          <endpointBehaviors>
            <behavior name="restBehavior">
              <webHttp />
            </behavior>
          </endpointBehaviors>
        <bindings>
          <webHttpBinding>
            <binding name="webHttpsBinding" closeTimeout="00:00:20">
              <security mode="Transport">
                <transport clientCredentialType="None" />
              </security>
            </binding>
          </webHttpBinding>
        </bindings>
      </system.serviceModel>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.net application with a WCF service like this: [OperationContract] [WebGet] public
I have an AJAX-enabled WCF service with the following signature: [OperationContract] [WebGet] public JQGridContract
as in the title, i have: [ServiceContract] public interface IService { [OperationContract] [WebGet(UriTemplate=abc)] Stream
I have WCF service that return Json. Data contract defined below [DataContract] public class
I currently have service classes that look something like this public class UserService :
I have a WCF service which I would like to product XML and JSON
I have been having some issues retrieving JSON data from a WCF service application
I want to get a service to respond with just JSON. I have written
My current WCF REST Method is defined as: [OperationContract] [WebGet(UriTemplate = {username}/{password}, ResponseFormat =
I have below operation contract with WebGet defined as follows. [OperationContract] [WebGet(UriTemplate = UpdateUserDetails/?configdata={_userConfigData}&configresult={_configResult}&clientip={_clientIP}&adminname={AdminName})]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.