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 7987179
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:04:28+00:00 2026-06-04T12:04:28+00:00

I know how to create a REST based web service with automatic deserialization of

  • 0

I know how to create a REST based web service with automatic deserialization of the data to objects, using CXF. But how do I create a SOAP based web service using CXF? I need a similar deserialization of the SOAP call data to java objects.

Thanks in advance

  • 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-04T12:04:29+00:00Added an answer on June 4, 2026 at 12:04 pm

    I found the solution, and here is how it goes…

    POM.xml

    <dependency>
      <groupId>org.apache.cxf</groupId>
      <artifactId>cxf-rt-frontend-jaxws</artifactId>
      <version>${cxf.version}</version>
      <exclusions>
            <exclusion>
                  <groupId>wsdl4j</groupId>
                  <artifactId>wsdl4j</artifactId>
            </exclusion>
            <exclusion>
                  <groupId>org.eclipse.jetty</groupId>
                  <artifactId>jetty-server</artifactId>
            </exclusion>
            <exclusion>
                  <groupId>org.apache.geronimo.specs</groupId>
                  <artifactId>geronimo-servlet_2.5_spec</artifactId>
            </exclusion>
      </exclusions>
    </dependency>
    
    <dependency>
      <artifactId>cxf-rt-transports-http</artifactId>
      <groupId>org.apache.cxf</groupId>
      <version>${cxf.version}</version>
    </dependency>
    

    Beans.xml

    <!-- xmlns:jaxws="http://cxf.apache.org/jaxws" http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd -->
    
    <jaxws:endpoint address="/mysws"
        implementor="com.company.project.MySoapService"
        id="mySoapService" />
    

    Java

    @WebService
    public interface IMySoapService {
          MySoapResponse someOperation(MySoapRequest requestObj);
    }
    
    @WebService(endpointInterface = "com.company.project.IMySoapService")
    public class MySoapService implements IMySoapService {
          public MySoapResponse someOperation(MySoapRequest requestObj) {
            MySoapResponse myResponse = null;
    
            try {
                myResponse = new MySoapResponse("12345", "6789");
            } catch (Exception ex) {
                myResponse = new MySoapResponse(false, 234, "", "");
                myResponse.setErrorMessage(ex.getMessage());
            }   
    
            return myResponse;
        }
    }
    

    Hope that helps the needy!

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

Sidebar

Related Questions

I just started using Fiddler 2 to create request objects for REST,JSON, and SOAP
Background... We've built a web-based b2b system. We know that we'll need to exchange
I know I can create a plot with line and dots using the type
I'm using the Blueprint CSS framework, and I want to know how to create
I'm working with the Azure REST API and they are using this to create
In my program i am using postmethod to call the web services . But
I have a self-hosted WCF REST service based on the WebHttpBinding. One of the
I need to create an HTTP POST request with parameters. I know there are
I want to know how I could implement REST in my web application. I
Yes, I know, the old question of the best web framework ... but let

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.