aspose file tools*
The moose likes Web Services and the fly likes Web Service API for Vendors? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service API for Vendors? " Watch "Web Service API for Vendors? " New topic
Author

Web Service API for Vendors?

Pmj Jaydev
Greenhorn

Joined: Apr 18, 2012
Posts: 1
Hello,

We've currently offline/FTP based solution through which our vendor provide product information which to be displayed on our website. However we would like to provide webservices API through which they can provide thier product information to us. Could you please suggest on basis of your experiance what would be better choice?

1. SOAP based Web service

2. REST based Web service

and what should be data exchange format SML, JSON , etc (Note currently it happes through files upload using FTP)

Thanks

William P O'Sullivan
Ranch Hand

Joined: Mar 28, 2012
Posts: 859

SOAP and REST have major differences.

SOAP requires a "contract" via a WSDL definition between the provider and the consumer.
SOAP can also allow complex types, multiple services at a single endpoint and comprehensive security.

REST is more simple and designed around basic HTTP operations, GET, POST etc.
REST is primarily URI based also.

I would look into your requirements, and pick the best technology for the deliverable.

WP
H Paul
Ranch Hand

Joined: Jul 26, 2011
Posts: 471
    
    4
My favorite article in terms of decisions:

RESTful Web Services vs. Big Web Services: Making the Right Architectural Decision

http://www.jopera.org/files/www2008-restws-pautasso-zimmermann-leymann.pdf
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12825
    
    5
There already exists a Electronic Business XML standard - may be too complicated for your requirements but perhaps it can give you some ideas.

Bill
 
wood burning stoves
 
subject: Web Service API for Vendors?