• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

java server and client dotnet

 
Ranch Hand
Posts: 35
MyEclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


Hi all,

I am new to web service world...My manager has told me to develop an application so that server code should be in java and client is in .net and vice-versa....is it possible?If possible please help me....It is very urgent.
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As long as you are using industry standards there should be no problem. Don't panic!

Inter-operability is the whole idea behind web services standards.

Is there any particular style or toolkit that you are required to use? Any other web services being developed in your company?

What is the general description of the service you want to expose?

Bill
 
Nagendra Shasthri
Ranch Hand
Posts: 35
MyEclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In our company no other web services are developed..It is a start up company and I just have 1 year experience as java developer...
What I have to develop is from client side I need to send an Id..It has to reach the server,hit the database,fetch the result..It should be sent to client side and displayed...In the beginning both client and server will be developed using java only..in later part we will change any one side to dotnet
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds simple enough that you could use a RESTful style server architecture and avoid all those SOAP complexities.

Take a look at the REST section of the Ranch FAQ on web services for some orientation.

Bill
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since the RESTful style uses straight HTTP standards, on the server side you use a servlet hosted by something like Tomcat or any other servlet container.

What you are describing is a simple GET operation.

You just need a doGet method which looks up the Id from the incoming request parameters - does the database search, and returns the result as a String, XML, JSON whatever format your client needs.

For more complicated stuff you could use the Restlet or the Jersey toolkit but I don't think there is any need.

On the client side you would work with the standard java library to make a HttpURLConnection request to the servlet and interpret the response.

Bill
Don't panic, it really is quite simple.
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Nagendra, is this Web Service only meant to be used within the company? Or are you planning on exposing it to the outside world?

William Brogden wrote:
Don't panic, it really is quite simple.

You're not talking about SOAP right?
 
Nagendra Shasthri
Ranch Hand
Posts: 35
MyEclipse IDE Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ya I am not talking about SOAP...It is to use within company only....
 
reply
    Bookmark Topic Watch Topic
  • New Topic