posted 11 years ago
All - I am currently working on a web service application (WSDL/SOAP).
Certain tables in our application database are populated via a back-end external process which the web service application does not govern. The xsd field names used when designing the wsdl were created to be expressive so as it is easier for the calling client to integrate with web service.
Now i have to map the xsd field names with the values in one of the external table as mentioned above. I can't do a direct mapping or use reflection as the names of wsdl xsd fields don't match with the table values. For e.g.
in the wsdl i have a field called "driverAge" whereas the corresponding match table value is "drAge". Here the driverAge is the actual age of the vehicle driver whereas the drAge is a weight associated with the age of the driver. I have to associate the two for some computations.
I want to avoid doing this matching programatically and was looking at a simple approach to do this more by convention or some sort of flexible mapping.
Let know your thoughts.
Thanks,