Results 1 to 6 of 6

Thread: web services

  1. #1
    k_paramesh82 is offline Member
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

    Post web services

    i want to be update the database every day with out client side application(like automatically update the database only once for a day),can i use 'Web Services' tech for that,or any alternative ,if it please let me know what it is.

  2. #2
    seperate is offline Member
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

    Default

    Actually it is not a good option to do that via WebService Technology . WebServices are ıused to invoke remote methods using Soap Protocol so that distance should be in the topic . If you want to automate this issue , you can simply try creating batch jobs to do it instead of using webservices ...

  3. #3
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    Sounds like you have a client and a server, so you need some sort of "middleware" to bridge the gap.

    Easiest: If the client is under central control and on the local network, create an application using JDBC to update the database and run it on the client.

    The drawback to this approach is that the client application directly accesses your database, so the application has to be trusted. If the application runs on multiple clients, that means keeping all the clients up-to-date with the newest version of the application.

    If the client isn't fully trusted, or if it has limited access to the local network, a Web service is a good solution. I recommend it in part because Web services in general can be used to create a very robust environment, and a simple one is a great place to start. The advantages are

    • They use HTTP, which is extremely common
    • Web application servers are easy to set up, and there are lots of them
    • HTTP can typically pass through firewalls to the Web application server
    • Multiple kinds of clients can access the Web service, providing flexibility, and the clients can be Java, C++, VB.NET, whatever
    • The server-side process can validate the input and has complete flexibility in handling exceptions, including setting bad records aside for correction, notifying administrators, and sending back error messages to the client.

    The only disadvantage is slower performance than a dedicated TCP/IP socket program, but "slow" is a relative term. Performance is not an issue unless you are transferring huge amounts of data.

    You can also do old-fashioned things, like using FTP to send a flat file to the server. Having done this extensively, it's easy to start, but it's hard to make it robust.

  4. #4
    balajink is offline Member
    Join Date
    Jan 2009
    Posts
    1
    Rep Power
    0

    Question webService

    Hi everybody i am new to java programming

    i want to know how to consume a webservice using java

  5. #5
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    7

    Default

    You need to create a client class. Try starting here.

  6. #6
    pankaj_salwan is offline Member
    Join Date
    Jul 2008
    Location
    india
    Posts
    35
    Rep Power
    0

    Default

    if you have deployed the web service on server..then use a jar file created to be used as api for that particular web service.. u can access the methods created ........

Similar Threads

  1. How to create web services project
    By callmevijayc in forum Web Frameworks
    Replies: 3
    Last Post: 02-20-2009, 08:18 AM
  2. Granite Data Services 1.1.0 RC3
    By Java Tip in forum Java Software
    Replies: 0
    Last Post: 07-19-2008, 05:16 PM
  3. Web services
    By Sharmistha in forum Web Frameworks
    Replies: 0
    Last Post: 06-02-2008, 02:06 PM
  4. Web Services
    By d_raghu9 in forum New To Java
    Replies: 0
    Last Post: 02-17-2008, 03:12 AM
  5. Web Services
    By d_raghu9 in forum XML
    Replies: 0
    Last Post: 02-17-2008, 03:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •