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
Bartender
Joined: Oct 04, 2006
Posts: 2193
posted
0
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!