Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 5 of 5

Thread: web services

  1. #1
    Junior Member
    Join Date
    May 2011
    Location
    Chennai,India
    Posts
    4
    My Mood
    Bored
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default web services

    Hi, I am new to webservices in java.I have been using eclipse IDE along with apache tomcat server to create my web services using top-down and bottom-up approaches.Can anyone suggest me a better and efficient way of doing it?


  2. #2
    Super Moderator Json's Avatar
    Join Date
    Jul 2009
    Location
    Warrington, United Kingdom
    Posts
    1,274
    My Mood
    Happy
    Thanks
    70
    Thanked 156 Times in 152 Posts

    Default Re: web services

    Hello,

    Your question is or description rather is pretty vague. The top-down and bottom-up approaches seem more like overall architectural processes rather than for creating the actual web service. It always important to see the bigger picture and consider as many use cases as you can when building your web service.

    I've been involved in writing a few web services and we run these on Jetty. During build/development we use Maven and the Jetty plugin to run integration tests during the actual build. I find this to be pretty good.

    I also tend to use JAX-WS (Metro) as my web service stack of choice at the moment but I'm leaning more towards using REST in the future, currently looking into using JAX-RS (Jersey) for this.

    I hope this post has some value to you but if you need more precise and exact answers I will need you to elaborate a little bit about your processes in order to be able to analyze them better and provide some constructive criticism.

  3. The Following User Says Thank You to Json For This Useful Post:

    RAMNATH S (May 12th, 2011)

  4. #3
    Junior Member
    Join Date
    May 2011
    Location
    Chennai,India
    Posts
    4
    My Mood
    Bored
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: web services

    Hi Json,

    Thank you for replying to the query.

    I have been using the links below till now. But I'm looking for an efficient way of doing it.
    Creating Top Down Web Service
    Creating Bottom Up Web Service

    It would be really helpful if you can direct me towards some links or tutorials containing some sample codes as I am really new into this.

  5. #4
    Junior Member
    Join Date
    Jun 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: web services

    Hi,

    I am new to web services programming. i have a requirement where i need to expose a text file content as web services. Is there any way todo that? Please help me with any sample code. Thanks in advance

  6. #5
    Junior Member
    Join Date
    May 2011
    Location
    Chennai,India
    Posts
    4
    My Mood
    Bored
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Re: web services

    Hi sireesha,
    Regarding the requirement you mentioned, I would like to know whether you are required to give (i) the content of a text file as a webservice response or (ii)the text file itself as a response.

    In case (i),It can be done easily by including a file stream object in your web service class and reading the text file using that.
    In case (ii),you will be required to send the text file as an attachment.(Explore on SAAJ api).

    Do revert back in case u need further help

Similar Threads

  1. How to create Web Services in NetBeans from start
    By oneofthelions in forum Java IDEs
    Replies: 1
    Last Post: May 8th, 2011, 01:26 PM
  2. RIA services for java
    By azar308 in forum Member Introductions
    Replies: 2
    Last Post: November 15th, 2010, 02:30 AM
  3. Java Openings at S1 Services Pune
    By Naeem121 in forum Paid Java Projects
    Replies: 0
    Last Post: August 12th, 2010, 11:20 PM