Unable to retrieve products | Soapui Tutorial |Soapui Training |Web services testing

SOAPUI Training Forum

Unable to retrieve products

B
Bhagath K Post on 26/12/2018

Hi Ashish,

I have a product in my product table and I am trying retrieve the product throuth soapui but I got following response.

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://localhost/retail/namespaces">
<SOAP-ENV:Body>
<ns1:GetAllProductsResponse xmlns:ns1="urn:RetailApp">
<return xsi:type="tns:allprods">
<allproducts xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:productdetail[1]">
<item xsi:type="tns:productdetail">
<category_id xsi:nil="true" xsi:type="xsd:string"/>
<product_id xsi:nil="true" xsi:type="xsd:string"/>
<product_name xsi:nil="true" xsi:type="xsd:string"/>
<price xsi:nil="true" xsi:type="xsd:string"/>
<quantity xsi:nil="true" xsi:type="xsd:string"/>
</item>
</allproducts>
<sessiondata xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:sessiondetail[1]">
<item xsi:type="tns:sessiondetail">
<sessionid xsi:type="xsd:string"><![CDATA[<br />
<b>Warning</b>: fopen(session/bhagath1004_gmail_com_soapadmin.txt): failed to open stream: No such file or directory in <b>/home/qtpselenium/public_html/soapui-tutorial.com/login/validateRetailSession.php</b> on line <b>53</b><br />
<br />
<b>Warning</b>: fgets() expects parameter 1 to be resource, boolean given in <b>/home/qtpselenium/public_html/soapui-tutorial.com/login/validateRetailSession.php</b> on line <b>54</b><br />
<br />
<b>Warning</b>: fclose() expects parameter 1 to be resource, boolean given in <b>/home/qtpselenium/public_html/soapui-tutorial.com/login/validateRetailSession.php</b> on line <b>66</b><br />
Session Invalid]]></sessionid>
<username xsi:type="xsd:string">xxxxxxxx@mail.com_soapadmin</username>
</item>
</sessiondata>
</return>
</ns1:GetAllProductsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>


A

Instructor

Abhinav Reply on 27/12/2018

Hi

Please share your Project. I will look into it.

B
Bhagath K Reply on 27/12/2018

Could you send me your email id please