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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:06:12+00:00 2026-05-25T11:06:12+00:00

I am in the process of learning GWT, I am currently facing a problem

  • 0

I am in the process of learning GWT, I am currently facing a problem with making an RPC call to a specific server using JSONP.

The server I want to communicate with offers JSON-RPC service requiring the request to have a header of {'Content-Type': 'application/json'}, and a body of a regular JSON data, for example: {"params": ["HelloServer"], "method": "server.greeting", "id": 10}.

I wonder if it possible to make a JSONP request to this server, because I suppose JSONP is the only workaround to the SameOriginPolicy restriction of GWT.


edit: as Darin Dimitrov explained, I guess I have to stick to JSON as the server does not provide JSONP service. The suggested SOP workaround is perfect, it is also suggested here.

  • 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-25T11:06:12+00:00Added an answer on May 25, 2026 at 11:06 am

    I wonder if it possible to make a JSONP request to this server

    Not if the server doesn’t support it. Here’s how the server response need to be modified in order to support JSONP:

    someCallback({"params": ["HelloServer"], "method": "server.greeting", "id": 10})
    

    where someCallback is the name of a function which could be specified by the client. If you don’t have control over the server and it doesn’t support JSONP your only chance is to write a server side script on your domain which will act as a bridge. Then you will send the AJAX request to this script which will delegate it to the remote domain.

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

Sidebar

Related Questions

Im in the process of learning asp.net 3.5, currently on webparts and co. Ive
I'm in the process of learning WPF and am currently looking into application commands
I am currently in the process of learning Struts 2 and I am currently
I'm in the process of learning WPF and I have a problem with a
Hi I am in learning process of mapreduce and haddoop. I want to run
I am in the process of learning Backbone.js. I currently assume that if one
I'm in the process of learning ExtJS after using JQuery for years. I like
i am currently in the process of learning Symfony2. and i love its cleaniness
Iam in the process of learning Scala using IntelliJ IDEA 10.0.x with scala plugin
As a part of learning process, I am writing simple IM app, using Remoting

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.