This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service API for Vendors? " Watch "Web Service API for Vendors? " New topic

Web Service API for Vendors?

Pmj Jaydev

Joined: Apr 18, 2012
Posts: 1

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)


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.

H Paul
Ranch Hand

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

RESTful Web Services vs. Big Web Services: Making the Right Architectural Decision
William Brogden
Author and all-around good cowpoke

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

I agree. Here's the link:
subject: Web Service API for Vendors?
It's not a secret anymore!