Those are two different stacks.
Once your web service has defined it's contract (wsdl), it is up to you to integrate the request and response
processing with the DB layer via some form of DAO
pattern.
In your case, the service layer would access a DAO intermediate layer, generate value objects and have them
converted to
SOAP XML to return to the client.
WP