header
header
Main Menu
Home
Eviware Store
Downloads
Products
News
Forum
Eviware Blog
Search
FAQs
Customer Area
Support
Documentation
Tutorials
CookBook
Downloads
Forum
Login Form
Welcome, Guest. Please login or register.
November 22, 2008, 03:25:09 pm
Username: Password:
Login with username, password and session length

Forgot your password?
 
Latest posts of: R. Wiertz
Welcome, Guest. Please login or register.
November 22, 2008, 03:25:09 pm
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

  Show Posts
Pages: [1]
1  soapUI / soapUI / Re: GroovyScript: Getting node value out XML on: May 11, 2007, 11:57:52 am
Tanxs that's just what i wanted.
2  soapUI / soapUI / Re: GroovyScript: Getting node value out XML on: May 09, 2007, 01:59:52 pm
Thank you.

But can you also tel me how to work wit the property : GetNodeValues.
Because i try to get that work but i don't get it.
I tried several declarations but i don't get it!
3  soapUI / soapUI / GroovyScript: Getting node value out XML on: May 09, 2007, 12:54:07 pm
Hello,

Can somebody tell me how i can get a node value out of XML.
I want to do that with a groovy script because i have to compaire the values.

My xml message is:

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body>
      <ValideerBerichtResponse xmlns="urn:mijntestsite">
         <EIValidatieWrapper>
            <EIValidatieBericht>
               <Foutmeldingen xmlns="">
                  <Structureel/>
                  <Inhoudelijk/>
                  <Bedrijfsregels>
                     <Foutmelding>
                        <Code>9003</Code>
                        <Omschrijving>Bericht voldoet niet aan AZR-bedrijfsregel 3</Omschrijving>
                        <Regel>
                           <Regelnummer>3</Regelnummer>
                           <Start>1</Start>
                           <Lengte>250</Lengte>
                           <Bron>3</Bron>
                        </Regel>
                     </Foutmelding>
                  </Bedrijfsregels>
               </Foutmeldingen>
            </EIValidatieBericht>
         </EIValidatieWrapper>
      </ValideerBerichtResponse>
   </soap:Body>
</soap:Envelope>


I want to getall  the values between the node : <Bedrijfsregels>
I use the code below, but that didn't work.

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
log.info( groovyUtils.projectPath )

//create holder for last response an log requistID
def holder = groovyUtils.getXmlHolder( "EI-Bericht#response" )
def strlItems = holder.getNodeValues( "//ns1:Bedrijfsregels")
log.info( strlItems["Omschrijving"] )



What do i wrong?Huh?
4  soapUI / soapUI / Re: GroovyUtils: Error by declare on: May 09, 2007, 11:49:46 am
Yes, It works.

Thank you for your fast response
5  soapUI / soapUI / Re: GroovyUtils: Error by declare on: May 09, 2007, 10:53:53 am
Yes, i believe so.

soapUI 1.7 Pro, copyright 2007 eviware software ab http://www.soapui.org | http://www.eviware.com Build soapuipro-dist-159, Build Date 2007/04/10 17:44
6  soapUI / soapUI / GroovyUtils: Error by declare on: May 09, 2007, 10:43:27 am
When i use the script below i get an error:

def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
log.info( groovyUtils.projectPath )

The error that i get:

Tue May 01 11:35:14 CEST 2007:ERROR:org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script1.groovy: 10: unable to resolve class com.eviware.soapui.support.GroovyUtils
 @ line 10, column 19.
1 error



Please can you tell me what i do wrong.

I use de demo version of SoapUI Pro
Pages: [1]


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
header header
header
header