aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
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: 61413
    
  67

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] [Bear's FrontMan] [About Bear] [Books by Bear]
kien kun
Greenhorn

Joined: Feb 15, 2012
Posts: 27

I used but not success
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: cross domain by JSON