Forum Discussion

jkrier's avatar
jkrier
Regular Contributor
8 years ago

DataSource-XML not returning data

I have an XML response that loos like this   <soap:Envelope> <soap:Body> <getDocumentNamesResponse> <documentName>AAABRIDGE</documentName> <documentName>WSCLIENT</documen...
  • groovyguy's avatar
    groovyguy
    8 years ago

    Well I managed to get it to work with that note.

     

    Row XPATH should be (including whatever namespaces you have, so ns1?)

     

    //ns1:getDocumentNamesResponse[1]/ns1:documentName

     

     

    Column XPATH:

    text()

     


    Can you try that?

    (Edit for missing / on row xpath)

     

  • jkrier's avatar
    jkrier
    8 years ago

    You really got my hopes up.

     

    Made the Row Xpath

    declare namespace ns1='mynamespace';

    /ns1:getDocumentNamesResponse[1]/ns1:documentName

     

    Column XPath

    text()

     

    But I get 0 results

     

    So then I tried

    declare namespace ns1='mynamespace';

    //ns1:getDocumentNamesResponse[1]/ns1:documentName

     

    So the difference is the slashes, "//" versus "/" and guess what? IT WORKS!!!!!!

     

    AAABRIDGE
    ADDMONTHLY
    ADDRESS_VALIDATION
    ATLAS_SALESFORCE_AUTHSERVICE
    AUTHENTICATION_SERVICE
    AUTHORIZATION
    BATCH_PROCESSING_SERVICE
    BILLING
    BULK_RMA
    BULK_RMA_GUI

     

    I really can't thank you enough for all the time you spent helping me. This will greatly enhance my tests and something I've been wanting to do for a long time but it just never worked for me so I would work around it.