File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Web Service - How to handle requests from Multiple websites while saving data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Service - How to handle requests from Multiple websites while saving data" Watch "Web Service - How to handle requests from Multiple websites while saving data" New topic
Author

Web Service - How to handle requests from Multiple websites while saving data

Vijay Gadde
Ranch Hand

Joined: Sep 30, 2008
Posts: 54
Hello Rancher Architects,

I am currently writing a Web Service application using Web logic workshop and Server. My web service would support 19 different website for user profile creation and login so for all I have in common Access Control and CommonProfile and for each site i have Site Specific tables so my createUserProfile web service should support all these 19website requests.

so for the same reason I create a WrapperMaster bean with all the Bean instances for these different tables ( ofcourse I am using Hibernate to persist this data).
My problem is, to handle the requests for different websites

So for createUserProfile request will have siteId as well, and based on this siteId I writen a Switch Case to process the request but javascript: x() I know its not correct way of doing things.
Any valuable suggestion please, THANKS,VIJAY


Vijay Gadde
Coming together is a beginning. Keeping together is progress.. Working together is success........
Amit G Piplani
Ranch Hand

Joined: Jul 21, 2004
Posts: 83
You should be using the some unique identifier in the request to dientify the site.
You can use wither hastable or database to relate the unique id relationship with correct bean..which will persist the data for that id into db.
i am not sure but in ws-* stack, ws-resource should be able to help you in this?


SCJP,SCWCD,SCBCD,SCDJWS1.4, SCDJWS1.5
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Service - How to handle requests from Multiple websites while saving data