trying to search location based on location name (with % operator) Xml from SoapUI and experiencing the following error in the XML output:
The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://www.ca.com/ITAM/APIService:searchDefinition. The InnerException message was 'Error in line 29 position 43. Element 'http://schemas.datacontract.org/2004/07/CA/ITAM/Service/Core:ITAMObject' contains data from a type that maps to the name 'http://schemas.datacontract.org/2004/07/CA/ITAM/Service/DataModel/BAAAAAA:location'.
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:
There is a line in the SoapUI code under the ITAMHeader that reads as: xmlns:ns3="http://schemas.datacontract.org/2004/07/CA/ITAM/Service/DataModel/BAAAAAA" However, the endpoint value in the request reads as: http://UAPM-SERVER:99/APIService/Gen/BAAAAAC/B/Service.svc/basic The bold portions of the above two entries must match in order to keep the mapping consistent