File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Services and the fly likes An example other than style=document Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "An example other than style=document " Watch "An example other than style=document " New topic

An example other than style=document

ramesh agarwal

Joined: Jun 10, 2008
Posts: 19
All Web Services examples I see have a style="document" in the binding.

What else can be there in place of "document" and are there any simple examples to see it in action.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
A web service can either use the document or the rpc style. To set the style used in your web service, provided that you use a code-first approach, you can use the style attribute in the @SOAPBinding annotation. Allowed values are found in the enumeration SOAPBinding.Style.
Regretfully, I do not have any links to example of JAX-WS RPC web services, but will get back if I find one.
Best wishes!
I agree. Here's the link:
subject: An example other than style=document
It's not a secret anymore!