Ask a Question

SoapUi Pro 3.0 - Sending a null value instead of a space in the request

amnag
Occasional Contributor

SoapUi Pro 3.0 - Sending a null value instead of a space in the request

Hi,

  I am using SoapUi Pro 3.0 Trial. I am sending a request with all mandatory values by excluding optional values. I am using form view to do this. This request is not being honored by the server as I am getting a message 'invalid field format' for the optional fields. The logs say we are sending a space instead of null values in the optional fields. I made the test property 'Remove Empty Content' to 'True'.....but still no use. When I populate the form view with all fields and sending the request, I am getting back the response. Could you please help me in fixing this?

  By the way, I am a tester and not a XML person. So please explain step by step and I reallly appreciate it.

Thanks,
3 REPLIES 3

Re: SoapUi Pro 3.0 - Sending a null value instead of a space in the request

Hello,

Could you send the request, and then open the HTTP log and send it to us? You can right-click in the log window and select "Copy to clipboard". Maybe with the log we will be able to troubleshoot your problem better, thanks.

Regards,
Dain
eviware.com

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
amnag
Occasional Contributor

Re: SoapUi Pro 3.0 - Sending a null value instead of a space in the request

ok, Below is the HTTP log.

Tue Aug 11 08:21:46 MDT 2009:DEBUG:>> "POST /creditcard.asmx HTTP/1.1[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:>> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:>> "SOAPAction: "http://www.paymentresources.com/webservices/CCSale"[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:>> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:>> "Host: cot-darkgreen.transfirst.net[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:>> "Content-Length: 447[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:>> "[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:>> "[\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:>> "  19084N4SQPGEJL9M3JKJM1.250.041111111111111110909[\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:>> "
"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "HTTP/1.1 100 Continue[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "HTTP/1.1 100 Continue[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "Via: 1.1 LOUS-SILVER[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "Date: Tue, 11 Aug 2009 14:21:43 GMT[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "Server: Microsoft-IIS/5.0[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "X-Powered-By: ASP.NET[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "Via: 1.1 LOUS-SILVER[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "Connection: Keep-Alive[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "Proxy-Connection: Keep-Alive[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "Content-Length: 698[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "Date: Tue, 11 Aug 2009 14:21:43 GMT[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "Content-Type: text/xml; charset=utf-8[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "Server: Microsoft-IIS/5.0[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "X-Powered-By: ASP.NET[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "X-AspNet-Version: 1.1.4322[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "Cache-Control: private, max-age=0[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "[\r][\n]"
Tue Aug 11 08:21:46 MDT 2009:DEBUG:<< "02009-08-11T08:21:43.4896250-06:002009-08-11T08:21:43.4896250-06:000CanceledInvalid field format"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:>> "POST /creditcard.asmx HTTP/1.1[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:>> "Content-Type: text/xml;charset=UTF-8[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:>> "SOAPAction: "http://www.paymentresources.com/webservices/CCSale"[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:>> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:>> "Host: cot-darkgreen.transfirst.net[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:>> "Content-Length: 447[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:>> "[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:>> "[\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:>> "  19084N4SQPGEJL9M3JKJM1.250.041111111111111110909[\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:>> "
"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "HTTP/1.1 100 Continue[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "HTTP/1.1 100 Continue[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "Via: 1.1 LOUS-SILVER[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "Date: Tue, 11 Aug 2009 14:46:36 GMT[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "Server: Microsoft-IIS/5.0[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "X-Powered-By: ASP.NET[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "Via: 1.1 LOUS-SILVER[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "Connection: Keep-Alive[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "Proxy-Connection: Keep-Alive[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "Content-Length: 698[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "Date: Tue, 11 Aug 2009 14:46:36 GMT[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "Content-Type: text/xml; charset=utf-8[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "Server: Microsoft-IIS/5.0[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "X-Powered-By: ASP.NET[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "X-AspNet-Version: 1.1.4322[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "Cache-Control: private, max-age=0[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "[\r][\n]"
Tue Aug 11 08:46:37 MDT 2009:DEBUG:<< "02009-08-11T08:46:37.0547500-06:002009-08-11T08:46:37.0547500-06:000CanceledInvalid field format"

Re: SoapUi Pro 3.0 - Sending a null value instead of a space in the request

Hello,

Looking at your HTTP log I can't see any empty elements being sent (containting just a space), in fact, everything looks proper to me.
From your attached HTTP log:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<web:CCSale xmlns:web="http://www.paymentresources.com/webservices">
<web:MerchantID>19084</web:MerchantID>
<web:RegKey>N4SQPGEJL9M3JKJM</web:RegKey>
<web:Amount>1.25</web:Amount>
<web:SaleTaxAmount>0.0</web:SaleTaxAmount>
<web:CardNumber>4111111111111111</web:CardNumber>
<web:Expiration>0909</web:Expiration>
</web:CCSale>
</soapenv:Body>
</soapenv:Envelope>


What elements are being reported as empty?

Regards,
Dain
eviware.com

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
cancel
Showing results for 
Search instead for 
Did you mean: