aspose file tools
The moose likes Web Services and the fly likes cross domain by JSON Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "cross domain by JSON" Watch "cross domain by JSON" New topic
Author

cross domain by JSON

kien kun
Greenhorn

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
Marshal

Joined: Jan 10, 2002
Posts: 56153
    
  13

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.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
kien kun
Greenhorn

Joined: Feb 15, 2012
Posts: 27

I used but not success
 
I agree. Here's the link: jrebel
 
subject: cross domain by JSON
 
Similar Threads
cross domain issue in javascript.. is JSON a solution?
i want to create a file in the server from the client? is it possible?
How to access the JSON reponse from a java client
Empty Ajax response with Spring 3 and jQuery
Dynamic growth of iframe in cross domain