Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7730025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:07:07+00:00 2026-06-01T06:07:07+00:00

I am new to Java web-services and am working on one currently, using Apache

  • 0

I am new to Java web-services and am working on one currently, using Apache CXF. It will have both JAX-WS(SOAP) and JAX-RS(REST) support. It will be consumed by desktop and mobile applications. In learning Apache CXF, I have come across some showstoppers. Can anyone help me with the flow in terms of layers?

FYI: I have worked with the Google Maps API earlier. I developed a consuming application in .NET, and have a fair idea of web services (both SOAP and REST). I am having problems with these implementation details in Java.


About the service

Here is what I understand. Mule will run on a separate server, and since Mule already supports Apache CXF, it will be able to run both RESTful and SOAP services.

Quick question 1: What is the purpose of Apache CXF in Mule?

Quick question 2: I have seen some Apache CXF RESTful web services without Mule. Does it run in a servlet container in such a case? If yes, how is it different from deploying the web-service in Mule?

About Intgration

The consuming application will run in another server. It will will make SOAP or rest URL calls to the aforementioned web service. Based on the application type, a response will be sent to the consuming application.

Quick question 1: Is my service endpoint common for both REST and SOAP calls?

Quick question 2: Is it even possible to put a RESTful and SOAP web-service on a common endpoint? If not (which I guess is the case most probably), how is the consuming application to know what it is getting?


tl;dr? How does an Apache CXF web service withboth REST and SOAP definitions work when deployed in Mule ESB? What is the end-to-end flow through each layer?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T06:07:10+00:00Added an answer on June 1, 2026 at 6:07 am

    Quick question 1: What is the purpose of Apache CXF in Mule?

    Mule uses CXF to implement both consuming and providing WebServices. There’s nothing special about it. It is just a library that mule uses.

    Quick question 2: I have seen some Apache CXF RESTful web services without Mule. Does it run in a servlet container in such a case? If yes, how is it different from deploying the web-service in Mule?

    You can use CXF also in your own application that you will deploy for example into a tomcat. In that way it will, yes, run in a container. Well, it really don’t have that much of a difference. Mule runs in a container itself too. 🙂 Mule ofcourse contains a lot of other functions as well because it is an ESB. You should consider if you need all the features of an ESB or not. If you only need to deploy a couple of WebServices then I think that an ESB is an overkill for your needs.

    Quick question 1: Is my service endpoint common for both REST and SOAP calls?

    No it will not be. You need to create separate endpoints for both services.

    Quick question 2: Is it even possible to put a RESTful and SOAP web-service on a common endpoint? If not (which I guess is the case most probably), how is the consuming application to know what it is getting?

    Well, you could use the same inbound-endpoint but I think that you would shoot yourself in to a leg doing so. You could do the separation by the HTTP Request type. SOAP requests are POST requests while a simple REST call (assuming you are fetching data, not posting) would be a GET request.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

we are currently working on a new web application using Java and MySql. We
I’m new to the concept of web services and I’m currently working on a
I'm actually working on a website project. I'm new with web services. I have
Im pretty new to Java Web Services, but I cant find a good explanation
I'm new to Java Web Services, so I might be doing things wrong. I'm
For a new Java web project I thought about using: Eclipse as IDE Mercurial
Almost every new Java-web-project is using a modern MVC-framework such as Struts or Spring
I am starting a new Java web project that will be worked on by
I am very new to spring and java. I have been using mostly springsource.org
Scenario: I have been using Java SE for quite some time, working with threads

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.