Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cross domain by JSON

 
kien kun
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 65118
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
kien kun
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I used but not success
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic