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

  • Home
  • SEARCH
  • 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 8477237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:24:25+00:00 2026-06-10T18:24:25+00:00

My goal is to set up a generic web service. By generic in this

  • 0

My goal is to set up a generic web service. By “generic” in this context I mean that, one should be able to run an arbitrary sequence of tools on the input (let’s say a file).
These tools are compiled programms installed on the server.

My idea was to specify each tool in a central WSDL File. This WSDL File is parsed and for each tool, included in the WSDL file, a separate Service Class is created, which executes the respective tool via apache commons exec.

Is it then possible to manually create a SOAP Message in which the sequence of tools, one wants to perform on the input, is specified ? This SOAP Message should then be parsed and the respective Service Classes should be started.

I have to say I’m completely new to Web Service programming and I’m gratefuly for any advice. The above is just an idea and I’m open for any better advice 😉

greetings,

  • 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-10T18:24:27+00:00Added an answer on June 10, 2026 at 6:24 pm

    You can create, modify SOAP messages manually (programmatically) by implementing SOAPHandler<SOAPMessageContext> interface. Then you need to override this method:

    public boolean handleMessage(SOAPMessageContext context) {
       //do anything you like with a message    
    }
    

    You get the SOAP message from SOAPMessageContext object passed into this method:

    SOAPMessage soapMsg = context.getMessage();
    

    From your message you can get SOAP Body, SOAP Envelope, SOAP Header. You can add as many element as you like by doing this. But do not forget that every element you add manually must match your XSD of your WSDL file.

    To declare this handler into JAX-WS context you can Spring configuration as follows:

      <jaxws:endpoint id="HandlerExample"
                      implementor="your.service.ImplemetationClass"
                      address="http://localhost:8080/Example/services/Example">
        <jaxws:handlers>
           <bean class="your.Handler" />
        </jaxws:handlers>
      </jaws:endpoint>
    

    More information about how to configure JAX-WS endpoint you can find here. Also information about handlers you can find here.

    Hope this helps for a start.

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

Sidebar

Related Questions

In Google Analytics I set a Goal that is a simple URL Destination using
I have the pages that I want to set as a goal in Google
GOAL: Declare/set variables in the scope of the function that called the running function.
The goal would be to set the profile the same way as in a
I'm trying to set up integration tests using the AbstractTransactionalJUnit4SpringContextTests base class. My goal
Goal is to make a dialog that appears on menu_key pressed, but it keeps
Goal: Produce an Excel document with information from 3 associated models that is similar
Goal I have a generic class GenericClass<T> and I want to pool instances. I'm
I have implicitly made this a community wiki seeing that the answers can be
My ultimate goal is to have a dry base repository that I can override

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.