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

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

book

Article ID: 6766

calendar_today

Updated On:

Products

CA Test Data Manager (Data Finder / Grid Tools)

Issue/Introduction

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://support.broadcom.com