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.
January 09, 2009, 03:19:10 pm
Username: Password:
Login with username, password and session length

Forgot your password?
 
Unable to create Data Source from response file - urgent - preparing Demo
Welcome, Guest. Please login or register.
January 09, 2009, 03:19:10 pm
Home Help Search Login Register
News: The Forums are up! Welcome to eviware.

+  Eviware Forum
|-+  soapUI
| |-+  soapUI
| | |-+  Unable to create Data Source from response file - urgent - preparing Demo
« previous next »
Pages: [1] Print
Author Topic: Unable to create Data Source from response file - urgent - preparing Demo  (Read 374 times)
ramesh nallavolu
Newbie
*
Posts: 30


« on: March 19, 2008, 03:32:51 pm »


Creating Data source from response file ( below is the reponse )...  with Row X Path as

declare namespace types='http://www.aeroflot.ru/';
//types:Airport[1]


Column X Path as

code/text()


But I am unable to create datasource with all the code present in the response, only I get first code ( GYD) to property when I execute...

Please help me...


soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.aeroflot.ru/" xmlns:types="http://www.aeroflot.ru/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
   <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <types:AirportListResponse>
         <AirportListResult href="#id1"/>
      </types:AirportListResponse>
      <soapenc:Array id="id1" soapenc:arrayType="types:Airport[14]">
         <Item href="#id2"/>
         <Item href="#id3"/>
         <Item href="#id4"/>
         <Item href="#id5"/>
         <Item href="#id6"/>
         <Item href="#id7"/>
         <Item href="#id8"/>
         <Item href="#id9"/>
         <Item href="#id10"/>
         <Item href="#id11"/>
         <Item href="#id12"/>
         <Item href="#id13"/>
         <Item href="#id14"/>
         <Item href="#id15"/>
      </soapenc:Array>
      <types:Airport id="id2" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Baku</city>
         <name xsi:type="xsd:string">BINA</name>
         <code xsi:type="xsd:string">GYD</code>
         <id_country xsi:type="xsd:string">AZE</id_country>
      </types:Airport>
      <types:Airport id="id3" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Bangkok</city>
         <name xsi:type="xsd:string">Bangkok</name>
         <code xsi:type="xsd:string">BKK</code>
         <id_country xsi:type="xsd:string">THA</id_country>
      </types:Airport>
      <types:Airport id="id4" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Barcelona</city>
         <name xsi:type="xsd:string">Barcelona</name>
         <code xsi:type="xsd:string">BCN</code>
         <id_country xsi:type="xsd:string">SPA</id_country>
      </types:Airport>
      <types:Airport id="id5" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Barnaul</city>
         <name xsi:type="xsd:string">Barnaul</name>
         <code xsi:type="xsd:string">BAX</code>
         <id_country xsi:type="xsd:string">RUS</id_country>
      </types:Airport>
      <types:Airport id="id6" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Beijing</city>
         <name xsi:type="xsd:string">Capital</name>
         <code xsi:type="xsd:string">PEK</code>
         <id_country xsi:type="xsd:string">CHN</id_country>
      </types:Airport>
      <types:Airport id="id7" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Beirut</city>
         <name xsi:type="xsd:string">Beirut</name>
         <code xsi:type="xsd:string">BEY</code>
         <id_country xsi:type="xsd:string">LEB</id_country>
      </types:Airport>
      <types:Airport id="id8" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Belgrade</city>
         <name xsi:type="xsd:string">Belgrade</name>
         <code xsi:type="xsd:string">BEG</code>
         <id_country xsi:type="xsd:string">YUG</id_country>
      </types:Airport>
      <types:Airport id="id9" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Berlin</city>
         <name xsi:type="xsd:string">Schonefeld</name>
         <code xsi:type="xsd:string">SXF</code>
         <id_country xsi:type="xsd:string">GER</id_country>
      </types:Airport>
      <types:Airport id="id10" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Berlin</city>
         <name xsi:type="xsd:string">Tegel</name>
         <code xsi:type="xsd:string">TXL</code>
         <id_country xsi:type="xsd:string">GER</id_country>
      </types:Airport>
      <types:Airport id="id11" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Bishkek</city>
         <name xsi:type="xsd:string">Manas</name>
         <code xsi:type="xsd:string">FRU</code>
         <id_country xsi:type="xsd:string">KYR</id_country>
      </types:Airport>
      <types:Airport id="id12" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Bratislava</city>
         <name xsi:type="xsd:string">Ivanka</name>
         <code xsi:type="xsd:string">BTS</code>
         <id_country xsi:type="xsd:string">SLK</id_country>
      </types:Airport>
      <types:Airport id="id13" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Brussels</city>
         <name xsi:type="xsd:string">Brussels</name>
         <code xsi:type="xsd:string">BRU</code>
         <id_country xsi:type="xsd:string">BEL</id_country>
      </types:Airport>
      <types:Airport id="id14" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Bucharest</city>
         <name xsi:type="xsd:string">Otopeni</name>
         <code xsi:type="xsd:string">OTP</code>
         <id_country xsi:type="xsd:string">RUM</id_country>
      </types:Airport>
      <types:Airport id="id15" xsi:type="types:Airport">
         <city xsi:type="xsd:string">Budapest</city>
         <name xsi:type="xsd:string">Budapest</name>
         <code xsi:type="xsd:string">BUD</code>
         <id_country xsi:type="xsd:string">HUN</id_country>
      </types:Airport>
   </soap:Body>
</soap:Envelope>





Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,666


« Reply #1 on: March 19, 2008, 06:10:32 pm »

Hi!

try changing the row-xpath to

declare namespace types='http://www.aeroflot.ru/';
//types:Airport

(so it selects all airports, not only the first one)

Hope this helps!

regards,

/Ole
eviware.com
Logged
ramesh nallavolu
Newbie
*
Posts: 30


« Reply #2 on: March 19, 2008, 06:29:53 pm »

Thank you Ole...  its magic...

Logged
omatzura
Administrator
Hero Member
*****
Posts: 1,666


« Reply #3 on: March 19, 2008, 10:42:20 pm »

hehe, great!

/Ole
eviware.com
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