I wish to expose a set of backend functions as web services. Now the
metadata for the functions is not available before hand. So I want to have a
way to dynamically generate the wsdl when user requests for it. I should be
able to execute some code to generate wsdl and then return that. How can I
override the default behavior of ASP.NET to accomplish this?
-- Manish Soni
Chad Z. Hower aka Kudzu - 16 May 2005 18:09 GMT
> I wish to expose a set of backend functions as web services. Now the
> metadata for the functions is not available before hand. So I want to
> have a way to dynamically generate the wsdl when user requests for it. I
> should be able to execute some code to generate wsdl and then return
> that. How can I override the default behavior of ASP.NET to accomplish
> this?
Im not sure if there is an event for this, you might have to use a ashx or
HTTP handler.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"
Blog: http://blogs.atozed.com/kudzu
David Starr - 17 May 2005 07:45 GMT
I would strongly suggest that WSDL on the fly is not the solution to any
problem that you are trying to solve. Unless the client is doing simple
mesage processing, the proxy class would need to be created at compile time,
which means that it won't vary with your WSDL.
You may consider a flexible object model for your return types so that you
can get the data that you want back to the client.
> I wish to expose a set of backend functions as web services. Now the
> metadata for the functions is not available before hand. So I want to have a
[quoted text clipped - 3 lines]
>
> -- Manish Soni