Javelin error: The ‘Content-Type’ header must be modified using the appropriate property or method.

Document ID : KB000006766
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

When using a SoapUI call with Javelin, the WebService call through Javelin fails with the error message: Object reference not set to an instance of an Object. I am also seeing the error message: The ‘Content-Type’ header must be modified using the appropriate property or method. Parameter name: name.

 

SoapAction field is being passed as "" (null). The wsdl of the service has the action defined as "" (null). Other headers like user-agent, content-type, etc. are being passed as well. The Javelin service call fails, however, SoapUI seems to get the response for the service successfully with same setup. 

Environment:
CA Test Data Manager (TDM)- Javelin
Resolution:

1. Change all header parameters to In parameters instead of In/Out. 

2. Remove Content-Type, UserAgent, ContentLength (it is auto calculated), and ConnectionType (default is KeepAlive) from headers.

3. Set Content-Type and UserAgent using the Properties window. 

Additional Information:

If you experience any further issues, please open a support case by going to https://www.ca.com/us/services-support/ca-support/contact-support.html.