my dog learned polymorphism
The moose likes Java in General and the fly likes mapping wsdl field names to database values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "mapping wsdl field names to database values" Watch "mapping wsdl field names to database values" New topic

mapping wsdl field names to database values

manish ahuja
Ranch Hand

Joined: Oct 23, 2003
Posts: 312
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.

I agree. Here's the link:
subject: mapping wsdl field names to database values
It's not a secret anymore!