cancel
Showing results for 
Search instead for 
Did you mean: 

"400 bad request" error when send request with SoapUI 5.0.0 to QAComplete (SWPlanner webService)

New Contributor

"400 bad request" error when send request with SoapUI 5.0.0 to QAComplete (SWPlanner webService)

Hi,

 

I try check the Folders_LoadByCriteria SWPlanner webService in QAComplete v11.0 with SoapUI 5.0.0, but the response is "400 Bad Request".

My request is in SoapUI:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:prag="http://www.pragmaticsw.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <prag:Folders_LoadByCriteria>
         <prag:AuthenticationData>
            <prag:AppCode>agSPEnt</prag:AppCode>
            <prag:DeptId>8162</prag:DeptId>
            <prag:ProjId>12007</prag:ProjId>
            <prag:UserId>25080</prag:UserId>
            <prag:PassCode>12345</prag:PassCode>
         </prag:AuthenticationData>
         <prag:Condition>
			<Conditions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Operation="opAND">
				<Conditions Operation="opEQU">
					<Items type="tField">
						<Value xsi:type="xsd:string">EntityCode</Value>
					</Items>
					<Items type="tString">
						<Value xsi:type="xsd:string">'FunctionalSpecs'</Value>
					</Items>
				</Conditions>
				<Conditions Operation="opLIKE">
					<Items type="tField">
						<Value xsi:type="xsd:string">FullFolderName</Value>
					</Items>
					<Items type="tString">
						<Value xsi:type="xsd:string">'Projects/TestProjects/TestProject_v10'</Value>
					</Items>
				</Conditions>
			</Conditions>
           </prag:Condition>
         <prag:Sorting></prag:Sorting>
         <prag:PageSize>1</prag:PageSize>
         <prag:PageNumber>1</prag:PageNumber>
      </prag:Folders_LoadByCriteria>
   </soapenv:Body>
</soapenv:Envelope>

The RAW response is:

HTTP/1.1 400 Bad Request
Cache-Control: private
Content-Type: text/xml; charset=utf-8
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Thu, 24 Jan 2019 12:29:44 GMT
Content-Length: 0

The Projects/TestProjects/TestProject_v10 is exist in Requirements (you can see on db_content.png).

What's wrong?

Thank's!

 

 

1 REPLY 1
Moderator

Re: "400 bad request" error when send request with SoapUI 5.0.0 to QAComplete (SWPlanner w

Hi,

 

I get the following validation error when trying to use the condition which you use:ReadyAPI_2019-02-01_12-18-55.png

 

 

 

 

 

 

 

 

 

 

So, the request isn't correct. You can find a sample request here: 

Folders_LoadByCriteria Operation

 


Anastasia
Customer Care Team


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

New Here?
Join us and watch the welcome video: