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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T11:29:04+00:00 2026-05-23T11:29:04+00:00

I am a web services developer. In all of my XML requests I send

  • 0

I am a web services developer. In all of my XML requests I send to a different webservice, I need to add soap envelope, soap header, soap body tags. and in the response I need to ignore those and parse just the child of soap body. Example:

Request:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://schemas.abc.com/v1.0">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:webservice-abc-Request xmlns:ns="http://schemas.abc.com/v1.0">

Response:

    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <SOAP-ENV:Header/>
   <SOAP-ENV:Body>
      <ns:webservice-abc-Response xmlns:ns="http://schemas.abc.com/v1.0">

and I am using JiBX at both request and response handling.The schema obviously does not define these soap tags. So what I am currently doing is take the request as string and add these soap tags at appropriate places and send the request.

In response, remove the soap tags using String operations and parse the rest of message using JiBX.

I would like to know a better approach and get rid of these String operations. I want to implement these things purely in JiBX. Is there a way?

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-23T11:29:04+00:00Added an answer on May 23, 2026 at 11:29 am

    Are you using flexible=’true’ in your JiBX binding? This will prevent JiBX from trying to parse through the SOAP envelope and you can just define a mapping for the SOAP body.

    <binding>
       <mapping name="Envelope" ns="http://schemas.xmlsoap.org/soap/envelope/" flexible="true" ordered="false">
          <structure name="Body" ns="http://schemas.xmlsoap.org/soap/envelope/">
               ... your envelope binding here! ...
          </structure>
       </mapping>
    </binding>
    

    Secondly, are you using a web services framework such as Axis2? Axis2 can automatically remove those headers and simply return to the SOAP body to you (as an OMElement which can easily be converted into a String) and from there you can use JiBX.

    http://axis.apache.org/axis2/java/core/api/org/apache/axis2/client/ServiceClient.html

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

Sidebar

Related Questions

I am getting responses from two different web services in XML format. Both web
I'm using Rational Application Developer to create some web services. The problem I have
I'm working on a project where we have several SOAP Web Services developed on
I'm doing a web where I heavily use AJAX requests to a XML service.
I am a C# Developer recently started exploring the Restful web services in Java
I've developed silverlight client with makes async web services calls to a asmx web
This is my first time with Web services. I have to develop web services
I am a mobile web developer and trying to monetize my traffic with mobile
I'm new to both web services and C# so please forgive me if my
I want to bounce an idea around. I have been building web services and

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.