CA APM SoapUI error while trying to deserialize
search cancel

CA APM SoapUI error while trying to deserialize


Article ID: 113545


Updated On:


CA IT Asset Manager CA Software Asset Manager (CA SAM) ASSET PORTFOLIO MGMT- SERVER CA Service Management - Asset Portfolio Management CA Service Management - Service Desk Manager


trying to search location based on location name (with % operator) Xml from SoapUI and experiencing the following error in the XML output:  

<faultstring xml:lang="en-US">

The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter The InnerException message was 'Error in line 29 position 43. Element '' contains data from a type that maps to the name ''.

The deserializer has no knowledge of any type that maps to this name. Consider using a DataContractResolver if you are using DataContractSerializer or add the type corresponding to 'location' to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding it to the list of known types passed to the serializer.'.  Please see InnerException for more details.</faultstring>

Example where such code could present an error:


CA Service Management 14.1, 17.1
CA APM 14.1, 17.1


There is a line in the SoapUI code under the ITAMHeader that reads as:

However, the endpoint value in the request reads as:

The bold portions of the above two entries must match in order to keep the mapping consistent


In the given example, one needs to modify the above line to match the URL that was being used to interface with APM, ie:


Web Service functionality should work correctly