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 6846043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:34:28+00:00 2026-05-27T00:34:28+00:00

I have been using WCF web services for around about a year now and

  • 0

I have been using WCF web services for around about a year now and have found them very useful. I have always used and consumed them on the same serving domain. However this time I am wanting to consume them on another domain. I understand why this is happening, because of security and so. I had the same problem with reading RSS feeds from an external domain.

I have been doing some research into this and most people are saying that JSONP (padded JSON) will solve this problem but I thought i’d ask my own question because someone might have found another answer or because i’m using .NET 4, the answer might be simpler.

So, I am using Jquery to consume these restful web services on another domain. I am also using .NET 4. My web services are a mix of GET and POST so really i’m looking for a solution that will deal with both GET and POSTS across domains. Does anyone have a solution or examples for this? My WCF web services are located within my ASP.NET web application. I have also turned on crossdomainscriptaccessenabled in my web config.

Also, for what it’s worth – when I was setting up WCF web sevices last year, I was able to consume a web service on an iphone app which now confuses me as I never enabled cross domain posting. That’s just a side note though.

Thanks

  • 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-27T00:34:29+00:00Added an answer on May 27, 2026 at 12:34 am

    If you require POST, JSONP probably won’t cut it. Since it works by injecting a <script> reference to the third-party resource, JSONP is inherently limited to GET requests.

    Depending on your browser support requirements, CORS allows you full access to cross-domain services. jQuery 1.5+ has great support for CORS. You only need to add an HTTP header or two to your WCF domain’s responses to enable it.

    A less elegant solution that doesn’t require browser support is to use a server-side HTTP proxy on the domain where the services will be called from. Using that approach, server-side code makes the cross-domain request on behalf of the browser and relays the response back. That circumvents the same-origin restriction at the browser, but does add some overhead to the process.

    To clarify your confusion about the iPhone app previously working, keep in mind that the cross-domain restriction is one that browsers impose as part of their implementation of XMLHttpRequest. It is not a restriction imposed by WCF itself. A native app running on an iPhone would be able to freely access your service without modification, similar to how a Silverlight app in the browser would be able to (however, a web app running on the iPhone would run into the same trouble you are).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been trying to connect to some web services using WCF but I
I've been working with about a dozen WCF Services that have been deployed to
We have been using Scrum for around 9 months and it has largely been
I have been using C# for a while now, and going back to C++
I have been using Ruby for a while now and I find, for bigger
I have been using IoC for a little while now and I am curious
I have been using the CSLA framework for couple of years now for windows
I've been developing a WCF web service using .NET 3.5 with IIS7 and it
Using the WCF Web API how would I go about changing a response's content
Moving forward with re-designing a web service architecture using WCF, our team has been

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.