Forum Discussion

n911681's avatar
n911681
Occasional Contributor
12 years ago

Parse XML File

Newbie...

I have an XML file wanting to Parse.

I've tried using Datasource as File, when i try bringing it up with XML datasource I receive an error "Failed to select XPath for row property value </fees>

Tried Directory datasource no errors but i don't get any rows coming back..

Groovy i don't understand at all..

Any help appreciated.

Here is my XML
- <Fees>
- <Fee>
<AsOfDate>2013-05-31T00:00:00</AsOfDate>
<SourceId>6</SourceId>
<MandateId>24166</MandateId>
<PortfolioId>17741</PortfolioId>
<Amount>1000000.00</Amount>
<FeeTypeId>6</FeeTypeId>
<ToId>7</ToId>
<FromId>3</FromId>
<BillingValuationAmount>34567.00</BillingValuationAmount>
</Fee>
</Fees>

5 Replies

  • nmrao's avatar
    nmrao
    Community Hero
    Welcome to soapui

    If you got interest and needed for you, you will learn them automatically, not that difficult as you think.

    Did not get what are you looking for. Would you please send your query with details?
  • n911681's avatar
    n911681
    Occasional Contributor
    Hear is what i want to do...

    Take an xml file.. read it in soap and then one of two options... pass it on to a service and/or compare the xml file and validate the data made it to the database... THe xml output is from my previous post.

    A) I assume passing an xml to a service is possible
    B) I'm having issues reading the xml file.

    any direction would be appreciated
    Thanks
  • nmrao's avatar
    nmrao
    Community Hero
    What is that xml you are trying to read and in which type of step? Is it a response of soap request type? If so you may get examples in soapui tips & tricks.
  • n911681's avatar
    n911681
    Occasional Contributor
    I've attached the xml file trying to read...

    2 things I'm looking for..
    1) a service to read this xml file and pass the information into the database versus me having to manually type in the values. I need to test multiple XML files getting sent to database. So it's not a response its a send.
    2) i'd like to parse the xml so i can do data verification once the data is populated in the database.

    Hope this brings some clarity. Thanks for hlep in advance.