Jay Roy
asked on
writing a java webservice
one of the interview questions was
How will you develop a java webservice ?
All i know about webservice is there are two components
actual webservice and
webserivce client
the 'Client' invokes the 'webservice' using the WSDL.
But can anyone explain how the 'web service' is implimented in java? In my scenario i have a java webservice and a java client.
I am using eclipse. What interfaces, implimentation classes do i need
to impliment the webservice?
thanks
How will you develop a java webservice ?
All i know about webservice is there are two components
actual webservice and
webserivce client
the 'Client' invokes the 'webservice' using the WSDL.
But can anyone explain how the 'web service' is implimented in java? In my scenario i have a java webservice and a java client.
I am using eclipse. What interfaces, implimentation classes do i need
to impliment the webservice?
thanks
ASKER
I want to start from scratch, I don't have wsdl or anything. All I have is
eclipse ide. What implimentation classes and interfaces do I need to create to impliment
a web service for example a webservice which has a method
called getName() which returns a string 'jay'.
eclipse ide. What implimentation classes and interfaces do I need to create to impliment
a web service for example a webservice which has a method
called getName() which returns a string 'jay'.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@royjayd,:
There are two way to develop java web services
one is top down (wsdl alredy exits you want to create web services code for that (web services client)
2nd one is buttom up of proccess
There are two way to develop java web services
one is top down (wsdl alredy exits you want to create web services code for that (web services client)
2nd one is buttom up of proccess
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok thx for the responses. For_yan, vectorstringcalculator.jws file, how is jws file different from java file? I am assuming it's a java file? Is this technology specific? Do all webservice technologies like
axis or cxf use .jws file?
axis or cxf use .jws file?
It is not different from .java file - the contents is exactly like java - you just chnage the extension - and that
gives axis the idea what to do with it.
Perhaps, it is not the only way - I found it very convenient.
gives axis the idea what to do with it.
Perhaps, it is not the only way - I found it very convenient.
ASKER
ok thanks for sharing that. It helps. Have you worked with apache CXF? I am guessing is it just like axis but very popular , not sure why
No I didn't have a chance to work with CXF.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
https://www.experts-exchange.com/questions/26865336/how-to-create-a-Web-Service-using-Java.html