No ratings

Web Request control in Nintex Form does not return a value

Issue

When using Web Request control with SOAP request body in Nintex Form, the control does not return any value.

 

Resolution

Ensure that the entire request body is on a single line and contains no spaces.
 
 

More Information

A request body in XML format may appear as:
 
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetListCollectionResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
      <GetListCollectionResult>string</GetListCollectionResult>
    </GetListCollectionResponse>
  </soap:Body>
</soap:Envelope>

However, the Web Request control attempts to 'minify' the request body, which causes the spaces to appear:

 

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">  <soap:Body>    <GetListCollectionResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">      <GetListCollectionResult>string</GetListCollectionResult>    </GetListCollectionResponse>  </soap:Body></soap:Envelope>

 

Tags (2)
Version history
Last update:
‎10-12-2020 02:31 PM
Updated by:
Contributors