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

  • Home
  • SEARCH
  • 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 3720618
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T05:16:36+00:00 2026-05-19T05:16:36+00:00

I JSONP enabled my WCF ServiceContract. Client is successfully calling the JSONP Service (OperationContract).

  • 0

I JSONP enabled my WCF ServiceContract. Client is successfully calling the JSONP Service (OperationContract). I have a number of other OperationContracts (using the same ServiceContract) that I want to expose using basicHttpBinding (SOAP) endpoint – using the same URI. I think my Service WebConfig is set up correctly. When doing such a thing, should I be able to Add the Service Reference (proxy) using the VS “Add Service Reference” dialog window? Or do I need to manually generate client code in codebehind? If I need to manually do it, can anyone provide an example? Or is my Service WebConfig not configured correctly? I am calling the JSONP Service using this: http://Flixsit:1000/FlixsitWebServices.svc/jsonp

Thanks so much…

<system.serviceModel>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true" />
<behaviors>
  <endpointBehaviors>
    <behavior name="webHttpBehavior">
      <webHttp />
    </behavior>
  </endpointBehaviors>
  <serviceBehaviors>
    <behavior name="DefaultBehaviors">          
      <serviceMetadata httpGetEnabled="true" />          
      <serviceDebug includeExceptionDetailInFaults="true" />
    </behavior>
  </serviceBehaviors>
</behaviors>
<bindings>
  <webHttpBinding>
    <binding name="JSONPBinding" crossDomainScriptAccessEnabled="true" />
  </webHttpBinding>
  <basicHttpBinding>
    <binding name="SOAPBinding" />
  </basicHttpBinding>
</bindings>
<services>
  <service name="Flixsit.Services.FlixsitWebServices" behaviorConfiguration="DefaultBehaviors">
    <clear />
    <endpoint name="JSONPEndPoint" address="jsonp"
                                   binding="webHttpBinding"
                                   bindingConfiguration="JSONPBinding"
                                   contract="Flixsit.Services.IFlixsitWebServices"
                                   behaviorConfiguration="webHttpBehavior" />
    <endpoint name="HttpEndPoint"  address=""
                                   binding="basicHttpBinding"
                                   bindingConfiguration="SOAPBinding"
                                   contract="Flixsit.Services.IFlixsitWebServices" />
    <host>
      <baseAddresses>
        <add baseAddress="http://Flixsit:1000/FlixsitWebServices.svc" />
      </baseAddresses>
    </host>
  </service>
</services>    

  • 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-19T05:16:37+00:00Added an answer on May 19, 2026 at 5:16 am

    After tooling around for a while I am creating the ChannelFactory like below (in codebehind). Services are now exposed at both endpoints.

    try
        {
            EndpointAddress address = new EndpointAddress("http://Flixsit:1000/FlixsitWebServices.svc");
            WSHttpBinding binding = new WSHttpBinding();
            ChannelFactory<IFlixsitWebServices> factory = new ChannelFactory<IFlixsitWebServices>(binding, address);
            IFlixsitWebServices channel = factory.CreateChannel();
    
            //call the service operation  
            var customer = channel.GetCustomers();
    
            GridView1.DataSource = customer;
            GridView1.DataBind();
    
            //close the channel
            ((ICommunicationObject)channel).Close();
    
            //close factory
            factory.Close();
        }
        catch (Exception ex)
        {
            //log ex;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In Visual Studio 2010 I created a new Ajax enabled WCF Service [ServiceContract(Namespace =
I have created an Ajax enabled WCF web service that contains this simple method:
I'm using a simple ajax-enabled WCF service. I'm creating a string of XML on
I need help with wcf service. i have a ajax-enabled wcf service: public class
I am running into an interesting error with my WCF JSONP web service. It
How do I create a proper JSON enabled WCF svc service by overriding the
I borrowed the following code to try to make an ajax-enabled WCF service work
I'm currently using jquery ajax to call a pagemethod (which works great); $.ajax({ type:
I'm experiencing an error that I haven't been able to find any mention of
I'm curious as to what pattern the community uses to make AJAX calls in

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.