Fill an array section in a request
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2007
12:57 PM
12-26-2007
12:57 PM
Fill an array section in a request
Hello There,
In the request form editor (soapui 2.0 beta 2) , you can by an array section click on the button add en fill in the fields. When you go to the XML you can see that the new fields is added.
I don't know how i do that in a groovy/java script.
Can you tell me how i do that in a groovy/java script?
I hope that you under stand what i ment.
Regards,
R. Wiertz
Furore.com
In the request form editor (soapui 2.0 beta 2) , you can by an array section click on the button add en fill in the fields. When you go to the XML you can see that the new fields is added.
I don't know how i do that in a groovy/java script.
Can you tell me how i do that in a groovy/java script?
I hope that you under stand what i ment.
Regards,
R. Wiertz
Furore.com
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2007
03:21 PM
12-27-2007
03:21 PM
Hi!
there are 2 main options:
1) get the DOM node for the common parent (via GroovyUtils/XmlHolder.getDomNode) and use standard Node manipulation methods to insert the desired content
2) create the desired content as a string in your groovy script and use property expansion to "insert" it in the request.. ie in your script write
context.myArray = 'xml string'
and in the request use
${arrayContent}
Hope this helps!
regards,
/Ole
eviware.com
there are 2 main options:
1) get the DOM node for the common parent (via GroovyUtils/XmlHolder.getDomNode) and use standard Node manipulation methods to insert the desired content
2) create the desired content as a string in your groovy script and use property expansion to "insert" it in the request.. ie in your script write
context.myArray = 'xml string'
and in the request use
${arrayContent}
Hope this helps!
regards,
/Ole
eviware.com
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-28-2007
02:37 AM
12-28-2007
02:37 AM
Thanks Ole.
