This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Web Services and the fly likes multiple web service styles in one application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "multiple web service styles in one application" Watch "multiple web service styles in one application" New topic
Author

multiple web service styles in one application

Sangeeta Mahajan
Greenhorn

Joined: Jun 16, 2003
Posts: 4
Hi,
Can a web service application (*.ear) comprise of 2 web services, one of RPC-style and and the other of Messaging Style.
I want to write one web service that receives and XML string and the other web service receiving a file (bulk processing). Can I define the first web service to be RPC-style and write a stateless session bean? Can I define the second web service to Messaging style and write a message driven bean?
Thanks,
Sangeeta
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Hello Sangeeta, and welcome to the 'ranch!
First of all, I'd like to ask you to edit your display name since it's not compliant with our naming policy without a last name.
Can a web service application (*.ear) comprise of 2 web services, one of RPC-style and and the other of Messaging Style.
Yes, an .ear can include a number of different web services.
I want to write one web service that receives and XML string and the other web service receiving a file (bulk processing). Can I define the first web service to be RPC-style and write a stateless session bean? Can I define the second web service to Messaging style and write a message driven bean?
Which application server are you using? Are you using the application server's built-in web services engine or something you deploy along with your .ear (i.e. Apache Axis)?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Sangeeta Mahajan
Greenhorn

Joined: Jun 16, 2003
Posts: 4
I am using the services of the application server is weblogic 6.
Thanks,
Sangeeta Mahajan
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
As far as I know, WebLogic (not 6.x, not 7.x, and not 8.x) doesn't support MDBs as web service endpoints so you might need to implement the web service as a regular class and have that class forward the incoming messages to a JMS queue yourself.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: multiple web service styles in one application
 
Similar Threads
Session Facade or POJO Facade that is the question.
RPC and SOAP relationship
Question on WSDL
WebServices versus EJB
Sample Questions for 288 - Need answers