Hmmm, I think you're trying to use a Web Service for a purpose it wasn't designed for.
Why on earth would you want a Web method that returns an OleDb connection?????
Within local scope a method that returns an (open) connection makes sense to me. But to a Web service? So what, I hit your Web service and get a connection I can execute SQL statements against?
Web Services usually return data. Usually, they do this in world readable XML streams, or, in the .NET world, a DataSet (which results in a readable XML stream for any non .NET client)
What is your intention with this method? Maybe there are other ways to accomplish the same thing....
Cheers,
Imar
|