File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes cross domain by JSON Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "cross domain by JSON" Watch "cross domain by JSON" New topic

cross domain by JSON

kien kun

Joined: Feb 15, 2012
Posts: 27
I have made a RESTFul Webservice by Netbean.
I want to use a simple file HTML that call to webservice.
I have found a few way are json,jquery,ajax.. but all of its are not success.
Please to guide ,how to make a web service and how to cross domain?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63866

You can use jQuery and enable JSONP on your Ajax requests -- this assumes that the web service is JSONP-enabled. If not, you'll need a server-side proxy.

[Asking smart questions] [About Bear] [Books by Bear]
kien kun

Joined: Feb 15, 2012
Posts: 27

I used but not success
I agree. Here's the link:
subject: cross domain by JSON
It's not a secret anymore!