Thursday, August 16, 2012

Silverlight Desktop Application

Silverlight Desktop Application

Hi,

I have created a desktop app using VS 2010 Ultimate.

I want to call a jsp page(created in Eclipse's Dynamic project - Java) which returns JSON data on onclick of a button(Sign In) say for eg: on login of user I want to Show the JSON data in a grid or table..

How can I do this Please someone guide me.

Answers & Comments...

Answer: 1

Can you use HttpWebRequest instead of involving javascript?

by :

Answer: 2

You didn't get my question correctly.

I have created a website as a Dynamic Web Project in Java (Eclipse Galileo) and in that site I have a small part called Updates section (which is a jsp page ) on right hand side like those available in Facebook, and I want to reuse it in my Desktop App i.e. I want to show this data in my desktop app on login of a user.

by :

Answer: 3

Hi,

If the purpose you call the jsp page is only to display information, you can add an WebBrowser control in your oob application and specify the jsp page uri to the WebBrowser control in code behind like this:

    webBrowser1.Navigate(new Uri("http://www.xxxx.com/Index.jsp"));  

You can also transfer some query string in this way.
Best Regards,

by :

Answer: 4

Thanks for the reply..

But I want to show that list using a table format say in a GRID and on click of particular list I need to perform some action say "Approve/Reject" button..

So, I can't use Web Browser..

Is there any way to solve this issue??

by :

Answer: 5

Hi,

You can build an Java web service and an silverlight client to call the service, below is links you can refer to:

http://blogs.microsoft.co.il/blogs/bursteg/archive/2008/07/19/how-to-call-a-java-ee-web-service-from-a-net-client.aspx 

http://blogs.msdn.com/b/silverlight_plus_java/archive/2008/08/04/how-to-silverlight-accessing-java-soap-services-part-1-cross-domain-iis-tomcat.aspx 

http://www.infoq.com/articles/silverlight-java-interop 

Best Regards,

by :

Answer: 6

I'm not sure I still understand what exactly the issue IS.  What part of your problem can your not solve?  Do you have a Java service that returns the information you want to display?  I think the ONLY way to put the ACTUAL JSP onto the Silverlight page would be to have a "browser window" inside the app.  I believe when you want to do that, you can only do it when SL is running Out-of-browser mode.

But, imho, if you have a service, it would be easier to just have the SL call the service and make its own display.

So what precisely do you have and what precisely do you not know how to do?

by :




No comments:

Post a Comment

Send us your comment related to the topic mentioned on the blog