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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:50:50+00:00 2026-05-20T08:50:50+00:00

I have to make a SOAP request and its format is like this: <parentname>test</parentname>

  • 0

I have to make a SOAP request and its format is like this:

<parentname>test</parentname>    
<address>16, texas</address>    
<childrennames>
     <child>c1</child>
     <child>c2</child>
     <child>c3</child>     
</childrennames>    
<email>parent@gmail.com</email> 

How to send request for childrennames tag?

  • 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-20T08:50:51+00:00Added an answer on May 20, 2026 at 8:50 am

    One of the easiest approach, would be to have your entire SOAP request in a StringBuilder with some unique keys in place of actual values. Replace your keys by actual values at Runtime using StringBuilder#replaceAll(..) and then post this String to the server as StringEntity by setting the content-type for the entity as XML.
    For e.g: You can create a template as:

    "<parentname>@parentName@</parentname>"
    

    and then replace @parentName@ by the actual value at runtime.

    You can use tools such as SOAPUI to generate the entire SOAP request XML.
    Hope you get a picture.

    [EDIT : adding example for illustration]
    Supposing you have to create this SOAP request:

    <soapenv:Envelope 
    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" 
    xmlns:bok="http://www.example.org/bok/">
       <soapenv:Header/>
       <soapenv:Body>
          <bok:Name>
             <name>Foucault's Pendulum</name>
          </bok:Name>
       </soapenv:Body>
    </soapenv:Envelope>
    

    What I suggested was creating a String template and then replacing values in the template at run time:

    // your SOAP request template
    StringBuilder SOAP_REQUEST = 
    new StringBuilder("<soapenv:Envelope 
    xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/' 
    xmlns:bok='http://www.example.org/bok/'>
       <soapenv:Header/>
       <soapenv:Body>
          <bok:Name>
             <name>@name@</name>
          </bok:Name>
       </soapenv:Body>
    </soapenv:Envelope>");
    
    // replacing keys with actual arguments at runtime
    SOAP_REQUEST.toString().replace("@name",actualName);
    

    I hope that makes sense.

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

Sidebar

Related Questions

We have a wrapper around a suds (SOAP) request, that we use like this
I would like to make a SOAP request with complex types... I have two
I have make a soap-call with Savon. This works fine and give the following
I have an application that needs to make a SOAP client request to a
Using this sample : I have make my own Fragment that holds tabhost and
I have to make a schema for an XML format that's already being used.
I have this situation.... Client-initiated SOAP 1.1 communication between one server and let's say,
Does MVC have to be RESTful? Is there a way to make a SOAP
I have a WCF API which supports SOAP/JSON/XML but we don't provide JSONP. This
I have an 3rd party SOAP web service. I need to make a call

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.