Archana Babuta commented on Mar 18, 2010

Developing a widget that displays SMASH rest service-based, JSON-formatted data in a DOJO data grid

Naoya,

I am using Version 1.0 of Mashup center.I am new to this. I am trying to figure our how do I create a feed that gives as an output , say, Name and address from an XML response generated by a rest service that take a variable parameter phone number.

e.g Rest service has the URL as www.myRestservice?phone=&key="APP_KEY"

This would give an XML repsonse. I just need 2 elements from this.

How would I procees ?

Thanks in advance.

dalia fekry commented on Nov 16, 2009

Developing a widget that displays SMASH rest service-based, JSON-formatted data in a DOJO data grid

i got your idea now , i did not know about iContext.io.rewriteURI i will use it and try the example again , thank you naoya

dalia fekry commented on Nov 16, 2009

Developing a widget that displays SMASH rest service-based, JSON-formatted data in a DOJO data grid

i'm assuming in this example that the rest service is existed in another server outside the mashup center server domain

and as dojo xhr is using ajax for url connecting and as ajax do not permit connection to surl outside the domain(smash server) of the original url (mashupcenter)

so we need a proxy to make this call , the servlet in this case is the proxy.

so the solutio will be to use dojo xhr (ajax) to call the servlet that is existed withen the same server (same domain)

and this servlet will call the rest service that is existed outside mashup server domain .

naoya moritani commented on Nov 5, 2009

Developing a widget that displays SMASH rest service-based, JSON-formatted data in a DOJO data grid

Why is this sample creating a servlet when you can just make an xhr call from the widget? An introduction of the iContext.io.rewriteURI method should also help understand how a widget can retreive information for services that are hosted outside Mashup Center