Session ID not generated for SOAP Retail application | Soapui Tutorial |Soapui Training |Web services testing
15% Learning Discount Avail now

SOAPUI Training Forum

Session ID not generated for SOAP Retail application

S
SOMANNA PB Post on 07/11/2019

Hi Ashish,

 

I have used this application previously and it was working. However  I am currently facing issue with the application as it is not generating session id. I see that there are lot of issues with related to session ID . Kindly let me know when this will be fixed

 

Thanks

Sachin

<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:RetailLoginResponse xmlns:ns1="urn:RetailApp">
<return xsi:type="tns:loginresponse">
<loginusername xsi:type="xsd:string">sachin.8888@gmail.com</loginusername>
<sessionid xsi:type="xsd:string"/>
<role xsi:type="xsd:string">customer</role>
<loginstatus xsi:type="xsd:string">loggedin</loginstatus>
</return>
</ns1:RetailLoginResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

S
SOMANNA PB Reply on 07/11/2019

TRIED on a freshly installed windows 10 machine got the below error:

 

"301 Moved Permanently"

 

<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:RetailLoginResponse xmlns:ns1="urn:RetailApp">
         <return xsi:type="tns:loginresponse">
            <loginusername xsi:type="xsd:string">sachin.soman@gmail.com</loginusername>
            <sessionid xsi:type="xsd:string"><![CDATA[<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>]]></sessionid>
            <role xsi:type="xsd:string">customer</role>
            <loginstatus xsi:type="xsd:string">loggedin</loginstatus>
         </return>
      </ns1:RetailLoginResponse>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

J
Jayshree Gupta 5 days go

Hi Ashish , 

 

 

J
Jayshree Gupta 5 days go

Hi Ashish ,

 

Not able to generat:e Session ID Same issue as above  .See the 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:RetailLoginResponse xmlns:ns1="urn:RetailApp">
<return xsi:type="tns:loginresponse">
<loginusername xsi:type="xsd:string">gupta.jayshree5@gmail.com</loginusername>
<sessionid xsi:type="xsd:string"><![CDATA[<html>
<head><title>301 Moved Permanently</title></head>
<body>
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>]]></sessionid>
<role xsi:type="xsd:string">customer</role>
<loginstatus xsi:type="xsd:string">loggedin</loginstatus>
</return>
</ns1:RetailLoginResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>