Ask a Question

How to generate DataSource from Response

G_Shiva_Kumar
New Contributor

How to generate DataSource from Response

I was trying to generate Datasource from XMl as explained in the soapUI Pro DataSource Steps but was not successful.
4 REPLIES 4
omatzura
Super Contributor

Hi!

hm.. can you show the response message and how you had configured the xml-datasource? Are you getting any errors? etc..

regards!

/Ole
eviware.com
G_Shiva_Kumar
New Contributor

Follwoing is the Response:

*********************************************************************************

 
     
       
           
             
                 
                   
                        TMSSubs_Released
                        TMSSubs_Released
                        sadasdasdad
                        6.99
                       
                          300
                          50
                       

                   

                   
                        test wfs
                        4567980654314dfhgudfh#$@34
                        wfs testing is using automation tool usig a Soap UI there are many error codes in the list which we need to check but we need to install with Visual source client for more detail we ned to know the difference between global and domesticdfkjhdfjkghdjfhgjkdfhgjkdfhjkghdjkfgjkdfgkggggggghjkdlllllllllllllllllllllllllldsksljfksdfksdkfskdjfalfjskdjfksdjfksdjkjsdkfjksdjfksdjfksdjfkjsdkfjskdjfksdjkkkkjdfsdklfjsdkfjsdklgjklsdfgjdgdfkljgkldfgkldfgdflgmdfmgldfgjk
                        8.99
                       
                          1000000000134534534534
                          5000000000534534534534
                       

                   

                   
                        Jan25TMSSubscription
                        fafasd3424234#@#@4565
                        this is a subscription to test TMS
                        1234567891234567891
                       
                          11000012112232
                          1234567890123
                       

                   

                   
                        wfstestfeb17
                        1234567891012
                        Testing the WFS
                        144
                       
                          100
                          26
                       

                   

                   
                        vijayTestWFS
                        vijayTestWFS
                        vijayTestWFS
                        6.99
                       
                          15
                          200
                       

                   

                   
                        TmsSubscription1
                        TmsSubscription1
                        TmsSubscription1
                        0
                       
                          20
                          50
                       

                   

                   
                        TMSSub
                        20
                        TMSSub created for Test
                        5
                       
                          100
                          10
                       

                   

                   
                        jan31released
                        jan31released
                        jan31released
                       
                       
                          0
                          30
                       

                   

                   
                        TMSSubs_Blocked
                        23
                        sdadasdasdasd
                       
                       
                          10
                          200
                       

                   

                   
                        TMSExpired
                        002
                        TMSExpired_10March08
                       
                       
                          0
                          0
                       

                   

                   
                        TMSTestSub
                        TMSTestSub
                        TMSTestSub
                       
                       
                          10
                          30
                       

                   

                 

             

           

       

     

 

*********************************************************************


The Row Xpath specified is
************************
declare namespace a='http://wfs.pb.com/webservices/GetSubscriptionPlans';
declare namespace ns1='http://wfs.pb.com/webservices/UserRegistration';
//ns1:SubscriptionInfoResponse[1]/ns1:GetSubscriptionPlansResponse[1]/a:GetSubscriptionPlansResult[1]/a:Subscriptions[1]/a:Subscription[1]/a:Subscription[1]/a:SubscriptionName[1]
************************************
No error is thrown with one balnk row returned.

Please look into the screenshot attached
omatzura
Super Contributor

Hi!

ok, please try changing the row-xpath to

declare namespace a='http://wfs.pb.com/webservices/GetSubscriptionPlans';
declare namespace ns1='http://wfs.pb.com/webservices/UserRegistration';
//ns1:SubscriptionInfoResponse[1]/ns1:GetSubscriptionPlansResponse[1]/a:GetSubscriptionPlansResult[1]/a:Subscriptions[1]/a:Subscription[1]/a:Subscription

and the column-xpath to

a:SubscriptionName/text()

Hope this helps!

regards,

/Ole
eviware.com
G_Shiva_Kumar
New Contributor

Thanks. This is working

Regards
Shiva
cancel
Showing results for 
Search instead for 
Did you mean: