42773

silverlight 4 with java service

Question:

i intent to replace wcf service with some java service . how should i design my wcf service such that it's gets replaced or can be replaced with the java service later such that i dont have to do any work or very little work on the client i.e on my silver light application .

any idea's / suggestions?

P.S 1. that is the reason i am not using RIA services. 2.my wcf service should work like wcf data services work. it should allow me to do CRUD operations on my entities.

Answer1:

Create java services using Apache CXF or Apache Axis. Deploy those services in Tomcat server. You can easily create client proxies for those services by using adding service reference in Silverlight Client application. Now you can consume the webservice from silverlight.

Answer2:

The standard answer is this: use the BasicHttpBinding on the service. Don't add anything else to it. Most other stacks support BasicHttpBinding just fine.

Alternatively, use a WCF REST endpoint and standardize on consuming JSON. Then, your service can be PHP, Ruby, Java, or anything else.

Recommend

  • Please help merging 4 MySQL queries to One
  • How to select full range in excel vba
  • Camel: Bean Proxy to CXF Endpoint
  • ClassNotFoundException: com.mysql.jdbc.Driver not found while using service mix
  • Webservice having “No such operation: HTTP GET PATH_INFO”
  • Why dsofile.dll still need Office Installation?
  • vue-router and Express
  • How do I deploy application on sourcevoid with private git package dependencies?
  • .NET RIA Services and Custom Data Model - CRUD Capabilities
  • Breaking down CRUD In Use Case Modeling
  • Azure Resource Template Deployment issues
  • Playing a monetized YouTube song inside of a Google Chrome Extension. Do I have any options?
  • how tensorflow worker driver training process and cause variables update on ps job?
  • Update partial with Ajax in Rails 3
  • Aspect advising other aspects
  • WP7 - read from CSV file? Or what to do with the data?
  • Can't get LogCat (Alcatel OneTouch Evolve)
  • Defining variable by logical subseting on time interval in data.table
  • JFreechart X and Y axis scaling
  • Partial specialization of a class template in derived class affects base class
  • Request response issues in biztalk
  • cordova is not defined - cordova.js has already been loaded :: Ionic
  • Clear fused location provider's location for testing
  • Trying to get the char code of ENTER key
  • JPA flush vs commit
  • Using Sax parsing to edit and write XML in VB6
  • Breaking out column by groups in Pandas
  • why xml file does not aligned properly after append the string in beginning and end of the file usin
  • Debug.DrawLine not showing in the GameView
  • htaccess add www if not subdomain, if subdomain remove www
  • Installing iPhone App to iPhone
  • azure media services - The request body is too large and exceeds the maximum permissible limit
  • JSON response opens as a file, but I can't access it with JavaScript
  • Yii2: Config params vs. const/define
  • Launch Runnable Jar from Web Start
  • Accessing IRQ description array within a module and displaying action names
  • embed rChart in Markdown
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • How can I use `wmic` in a Windows PE script?
  • Unable to use reactive element in my shiny app