Topic
  • 4 replies
  • Latest Post - ‏2011-03-07T14:43:01Z by RedEagle
RedEagle
RedEagle
7 Posts

Pinned topic JAX-RS and JSONP

‏2011-03-07T11:23:18Z |
Hello everyone,

I've installed "Websphere Application Server Feature Pack for Web 2.0", develloped a REST Web Service that returns a Java Class as JSON successfully.

The problem is that it needs to support JSONP and I've had trouble to find examples on IBM Help Center.

Can anyone point me in the right direction or give me an example of what I need to do?

Thanks!
Updated on 2011-03-07T14:43:01Z at 2011-03-07T14:43:01Z by RedEagle
  • SystemAdmin
    SystemAdmin
    37422 Posts

    Re: JAX-RS and JSONP

    ‏2011-03-07T11:39:12Z  
    Hi,

    If you want JSONP support in the JSON domain, check this URL:

    http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/bc40080_.htm

    //Ahmed
  • RedEagle
    RedEagle
    7 Posts

    Re: JAX-RS and JSONP

    ‏2011-03-07T12:56:38Z  
    Hi,

    If you want JSONP support in the JSON domain, check this URL:

    http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/bc40080_.htm

    //Ahmed
    Thanks Ahmed.

    Isn't there another way to do it without using Message Broker?

    I'm using RAD so wont it be a problem?

    I've seen this post, tried to implement this:

    http://weblogs.java.net/blog/felipegaucho/archive/2010/02/25/jersey-feat-jquery-jsonp

    But get a Page not found error...
  • SystemAdmin
    SystemAdmin
    37422 Posts

    Re: JAX-RS and JSONP

    ‏2011-03-07T13:30:05Z  
    • RedEagle
    • ‏2011-03-07T12:56:38Z
    Thanks Ahmed.

    Isn't there another way to do it without using Message Broker?

    I'm using RAD so wont it be a problem?

    I've seen this post, tried to implement this:

    http://weblogs.java.net/blog/felipegaucho/archive/2010/02/25/jersey-feat-jquery-jsonp

    But get a Page not found error...
    Hi,

    I did check this URL and worked fine as attached!

    //Ahmed
  • RedEagle
    RedEagle
    7 Posts

    Re: JAX-RS and JSONP

    ‏2011-03-07T14:43:01Z  
    Hi,

    I did check this URL and worked fine as attached!

    //Ahmed
    Hum... Then I don't see what am I doing wrong...

    If you have the time, I would very much appreciate if you would check out my attached test project...

    Thanks