1

Purpose of this web service is to server html/javascript/css/binary data inside simple XML document (or are there better suggestion for fromat? Could JSON be used for this kind of web service?) and requests requesting this data would be simple XML request containing 10-100 objects. By simple I mean not too complex framework that requires a lot of memory and classes. By secure I mean service that couldn't be easily abused by hackers.

3 Answers 3

2

Maybe REST with https. Take a look at Jersey and the Jersey User Guide. REST also offers 'native' support for different response representations. No need to wrap them inside XML.

Sign up to request clarification or add additional context in comments.

Comments

1

SOAP over SSL, possibly using WS-Security to ensure identity (or alternatively using a servlet filter to do authentication based on credentials in the HTTP headers), does that quite nicely.

No need to reinvent the wheel :)

Comments

1

To me the simplest is Soap, Java automatically generates the WSDL and do all the XML stuff for you. You can use it on top of SSL secure transfers to add the security layer that you need. It is not unbreakable, but at least the data is not transfered in plain text.

Regards!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.