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, 11:09:31 am
Username: Password:
Login with username, password and session length

Forgot your password?
 
How to generate DataSource from Response
Welcome, Guest. Please login or register.
November 22, 2008, 11:09:31 am
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  How to generate DataSource from Response
« previous next »
Pages: [1] Print
Author Topic: How to generate DataSource from Response  (Read 386 times)
G Shiva Kumar
Newbie
*
Posts: 3


« on: March 04, 2008, 02:30:03 pm »

I was trying to generate Datasource from XMl as explained in the soapUI Pro DataSource Steps but was not successful.
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #1 on: March 04, 2008, 03:29:17 pm »

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
Logged
G Shiva Kumar
Newbie
*
Posts: 3


« Reply #2 on: March 05, 2008, 09:23:52 am »

Follwoing is the Response:

*********************************************************************************
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <SubscriptionInfoResponse xmlns="http://wfs.pb.com/webservices/UserRegistration">
         <GetSubscriptionPlansResponse xmlns:a="http://wfs.pb.com/webservices/GetSubscriptionPlans" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
            <a:GetSubscriptionPlansResult>
               <a:Subscriptions>
                  <a:Subscription>
                     <a:Subscription>
                        <a:SubscriptionName>TMSSubs_Released</a:SubscriptionName>
                        <a:SubscriptionCode>TMSSubs_Released</a:SubscriptionCode>
                        <a:SubscriptionDescription>sadasdasdad</a:SubscriptionDescription>
                        <a:SubscriptionFee>6.99</a:SubscriptionFee>
                        <a:EZPayParameters>
                           <a:EZPayMinAmount>300</a:EZPayMinAmount>
                           <a:EZPayRefillAmount>50</a:EZPayRefillAmount>
                        </a:EZPayParameters>
                     </a:Subscription>
                     <a:Subscription>
                        <a:SubscriptionName>test wfs</a:SubscriptionName>
                        <a:SubscriptionCode>4567980654314dfhgudfh#$@34</a:SubscriptionCode>
                        <a:SubscriptionDescription>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</a:SubscriptionDescription>
                        <a:SubscriptionFee>8.99</a:SubscriptionFee>
                        <a:EZPayParameters>
                           <a:EZPayMinAmount>1000000000134534534534</a:EZPayMinAmount>
                           <a:EZPayRefillAmount>5000000000534534534534</a:EZPayRefillAmount>
                        </a:EZPayParameters>
                     </a:Subscription>
                     <a:Subscription>
                        <a:SubscriptionName>Jan25TMSSubscription</a:SubscriptionName>
                        <a:SubscriptionCode>fafasd3424234#@#@4565</a:SubscriptionCode>
                        <a:SubscriptionDescription>this is a subscription to test TMS</a:SubscriptionDescription>
                        <a:SubscriptionFee>1234567891234567891</a:SubscriptionFee>
                        <a:EZPayParameters>
                           <a:EZPayMinAmount>11000012112232</a:EZPayMinAmount>
                           <a:EZPayRefillAmount>1234567890123</a:EZPayRefillAmount>
                        </a:EZPayParameters>
                     </a:Subscription>
                     <a:Subscription>
                        <a:SubscriptionName>wfstestfeb17</a:SubscriptionName>
                        <a:SubscriptionCode>1234567891012</a:SubscriptionCode>
                        <a:SubscriptionDescription>Testing the WFS</a:SubscriptionDescription>
                        <a:SubscriptionFee>144</a:SubscriptionFee>
                        <a:EZPayParameters>
                           <a:EZPayMinAmount>100</a:EZPayMinAmount>
                           <a:EZPayRefillAmount>26</a:EZPayRefillAmount>
                        </a:EZPayParameters>
                     </a:Subscription>
                     <a:Subscription>
                        <a:SubscriptionName>vijayTestWFS</a:SubscriptionName>
                        <a:SubscriptionCode>vijayTestWFS</a:SubscriptionCode>
                        <a:SubscriptionDescription>vijayTestWFS</a:SubscriptionDescription>
                        <a:SubscriptionFee>6.99</a:SubscriptionFee>
                        <a:EZPayParameters>
                           <a:EZPayMinAmount>15</a:EZPayMinAmount>
                           <a:EZPayRefillAmount>200</a:EZPayRefillAmount>
                        </a:EZPayParameters>
                     </a:Subscription>
                     <a:Subscription>
                        <a:SubscriptionName>TmsSubscription1</a:SubscriptionName>
                        <a:SubscriptionCode>TmsSubscription1</a:SubscriptionCode>
                        <a:SubscriptionDescription>TmsSubscription1</a:SubscriptionDescription>
                        <a:SubscriptionFee>0</a:SubscriptionFee>
                        <a:EZPayParameters>
                           <a:EZPayMinAmount>20</a:EZPayMinAmount>
                           <a:EZPayRefillAmount>50</a:EZPayRefillAmount>
                        </a:EZPayParameters>
                     </a:Subscription>
                     <a:Subscription>
                        <a:SubscriptionName>TMSSub</a:SubscriptionName>
                        <a:SubscriptionCode>20</a:SubscriptionCode>
                        <a:SubscriptionDescription>TMSSub created for Test</a:SubscriptionDescription>
                        <a:SubscriptionFee>5</a:SubscriptionFee>
                        <a:EZPayParameters>
                           <a:EZPayMinAmount>100</a:EZPayMinAmount>
                           <a:EZPayRefillAmount>10</a:EZPayRefillAmount>
                        </a:EZPayParameters>
                     </a:Subscription>
                     <a:Subscription>
                        <a:SubscriptionName>jan31released</a:SubscriptionName>
                        <a:SubscriptionCode>jan31released</a:SubscriptionCode>
                        <a:SubscriptionDescription>jan31released</a:SubscriptionDescription>
                        <a:SubscriptionFee/>
                        <a:EZPayParameters>
                           <a:EZPayMinAmount>0</a:EZPayMinAmount>
                           <a:EZPayRefillAmount>30</a:EZPayRefillAmount>
                        </a:EZPayParameters>
                     </a:Subscription>
                     <a:Subscription>
                        <a:SubscriptionName>TMSSubs_Blocked</a:SubscriptionName>
                        <a:SubscriptionCode>23</a:SubscriptionCode>
                        <a:SubscriptionDescription>sdadasdasdasd</a:SubscriptionDescription>
                        <a:SubscriptionFee/>
                        <a:EZPayParameters>
                           <a:EZPayMinAmount>10</a:EZPayMinAmount>
                           <a:EZPayRefillAmount>200</a:EZPayRefillAmount>
                        </a:EZPayParameters>
                     </a:Subscription>
                     <a:Subscription>
                        <a:SubscriptionName>TMSExpired</a:SubscriptionName>
                        <a:SubscriptionCode>002</a:SubscriptionCode>
                        <a:SubscriptionDescription>TMSExpired_10March08</a:SubscriptionDescription>
                        <a:SubscriptionFee/>
                        <a:EZPayParameters>
                           <a:EZPayMinAmount>0</a:EZPayMinAmount>
                           <a:EZPayRefillAmount>0</a:EZPayRefillAmount>
                        </a:EZPayParameters>
                     </a:Subscription>
                     <a:Subscription>
                        <a:SubscriptionName>TMSTestSub</a:SubscriptionName>
                        <a:SubscriptionCode>TMSTestSub</a:SubscriptionCode>
                        <a:SubscriptionDescription>TMSTestSub</a:SubscriptionDescription>
                        <a:SubscriptionFee/>
                        <a:EZPayParameters>
                           <a:EZPayMinAmount>10</a:EZPayMinAmount>
                           <a:EZPayRefillAmount>30</a:EZPayRefillAmount>
                        </a:EZPayParameters>
                     </a:Subscription>
                  </a:Subscription>
               </a:Subscriptions>
            </a:GetSubscriptionPlansResult>
         </GetSubscriptionPlansResponse>
      </SubscriptionInfoResponse>
   </s:Body>
</s:Envelope>
*********************************************************************


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
Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,425


« Reply #3 on: March 05, 2008, 02:13:00 pm »

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
Logged
G Shiva Kumar
Newbie
*
Posts: 3


« Reply #4 on: March 06, 2008, 07:34:02 am »

Thanks. This is working

Regards
Shiva
Logged
Pages: [1] Print 
« previous next »
Jump to:  


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