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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:01:12+00:00 2026-05-20T11:01:12+00:00

I created simple web service with Jersey that reads in an XML file and

  • 0

I created simple web service with Jersey that reads in an XML file and then creates some objects based on that xml. All I have is a single method that Consumes a Post as xml. I parse the xml and use values to create some business objects.

Recently we discovered that our clients only support SOAP.

Is there a way to easily write a wrapper of SOAP on top of this? (I saw Mule mentioned but have never used it)

Or would it be easier to start from scratch and rewrite in SOAP?

I’m completely new to SOAP and it looks much more complicated than my experience with Jersey. Thanks!

  • 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-05-20T11:01:13+00:00Added an answer on May 20, 2026 at 11:01 am

    The simplest way is to expose a single method that takes the XML as a string, parses it and returns an XML document (again as a String).

    public class Receiver  { 
      public String postXML(String inputDocument) {
        // parse and process XML xml 
        ...
        return outputDocument.toString(); 
      }
    ... 
    }
    

    You should be able to use that method in the Jersey service, if necessary by delegation to a separate class. Creating a SOAP service around a facade object like that should be easy with soap: http://axis.apache.org/axis/java/index.html

    The technically superior solution is to decompose your XML into an object-oriented data transfer object or implement a SOAP service with e.g. document/literal messaging. The former may just add cost without value, depending on your situation. The latter may not even be supported by your partners. For a discussion of the SOAP messaging styles see:

    http://msdn.microsoft.com/en-us/library/ms996466.aspx#rpc_literal_topic3

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

Sidebar

Related Questions

I have created simple web service for my website that generates some json based
I created a simple XML web service using NetBeans 7's RESTful Web Services from
this is a weird thing. I created a simple SOAP based web service with
I created a simple WCF web service that has one method: SubmitTicket(flightticket ft, string
I've got a simple C# web service proxy class that I created with WSDL.exe.
I have created a simple web-service using Java. i want to load jars related
I created a simple .Net web service which runs a very simple query (which
I'm using Mono 2.4 on the Ubiquity web hosting service. I created a simple
I'm looking to create a simple web service that when polled returns a unique
I have created a simple web service called TimeServerBean . It's working properly, the

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.