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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:23:54+00:00 2026-06-07T14:23:54+00:00

I am using SOAPUI for web service testing. I would like to do xml

  • 0

I am using SOAPUI for web service testing. I would like to do xml parsing via groovy script Test Step. For one test case, I have to insert xml tag [like <Email>xyz@gmail.com</Email>] in SOAP Request.

I can set value to xml tag using holder.setNodeValue(Xpath, Value), Using the same function I try to insert xml tag in SOAP request like holder.setNodeValue(Xpath, "<Email>xyz@gmail.com</Email>"). But in SOAP request xml tag set as

"&ltEmail>xyz@gmail.com&lt/Email>"  

Because of this problem SOAP request not recognize that xml tag, Hence the value not get reflect /update in response.

Please correct me If I am using this function wrongly. Awaiting response from anyone..

  • 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-07T14:23:55+00:00Added an answer on June 7, 2026 at 2:23 pm

    Well that is happening because you are calling setNodeValue method. This method will set the value of the node (which can be of the XML node format).

    Ideally, what you should have done is if node already exists () then just grab that node using holder and set the value.
    Or

    xpath = "//level1/level2/email"
    holder.setNodeValue(xpath, "xyz@gmail.com")
    

    Or the simplest, add a empty property value in between the nodes.

    <Name>Test</Name>
     ${Property#TestValue}
    <Phone>123123</Phone>
    

    Now say if you want to add email between name & phone, assign some value to that property variable.
    And if not, then leave it empty.

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

Sidebar

Related Questions

I try to test a web-service using SOAPUI using a HTTPS endpoint. The problem
I would like to create a web service. I am using Glassfish v3, an
I am trying to test my web service using SOAPUI (the free version). For
Hi I created a web service, and I've been testing it with SoapUI successfully.
I'm using WCF to connect to a remote web service (asmx) for testing at
My web service is receiving xml from a third party that looks like this:
I'm trying to write PHP to call a web service. Using SoapUI, I construct
Using a restful resource in Rails, I would like to be able to insert
Using Flex 3, I would like to take an image snapshot such as this:
I have a simple web service sitting on our internal network. I used SOAPUI

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.