aspose file tools*
The moose likes Web Services and the fly likes What style should i use RPC or Document for thsi scenario? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "What style should i use RPC or Document for thsi scenario?" Watch "What style should i use RPC or Document for thsi scenario?" New topic
Author

What style should i use RPC or Document for thsi scenario?

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi ,

I am developing a web service using JAX WS Approach , which will be responsible to accept a
Location (a place) and will be responsible to retun a X and Y Coordinates of that particular location .
I am using a normal java interface as my Servicxe End Point Interface .



please tell me what style should i use that is RPC or Document .
Because in of the web site i read that go for Documnet style when you want the session to be maintained .


In my scenario ( that is in my Application ), a user can use my web service for multiple locations (that his he can use it for making multiple requests , passing the location name )

So , please let me know should i use RPC or Document ??

Thanks in advance .


Save India From Corruption - Anna Hazare.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
Document or RPC style only affect the contents of the SOAP body and has nothing to do whether it is possible to maintain a session or not.
If there are no special reasons to choose RPC, the go for Document style.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Document or RPC style only affect the contents of the SOAP body and has nothing to do whether it is possible to maintain a session or not.

Thanks for this Ivan .

 
Don't get me started about those stupid light bulbs.
 
subject: What style should i use RPC or Document for thsi scenario?