Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic