Groups | Blog | Home
all groups > dotnet web services > december 2004 >

dotnet web services : create web service class at runtime ?



Christoph Schittko [MVP]
12/29/2004 3:26:33 PM

Not sure what you are trying to do, but does Christian Weyer's DynWSLib
[0] for dynamic invocation of services help?

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko


[0] http://www.thinktecture.com/Resources/Software/DynWsLib/default.html


[quoted text, click to view]

Christoph Schittko [MVP]
12/29/2004 3:31:42 PM

Oops, I just read your posting again ... you're looking to create
services at runtime?

You can run wsdl.exe programmatically, or you might be able to create
the services by invoking a
System.Web.Services.Description.ServiceDescriptionImporter with the
Style property set to Server.

HTH,
Christoph Schittko
MVP XML
http://weblogs.asp.net/cschittko




[quoted text, click to view]

MarkoH
12/29/2004 9:27:30 PM
Wsdl.exe /server creates abstract class derived from WebService. Is there a
way to create this class at runtime based on some WSDL file given at runtime
? What would be even better - creating concrete class but with empty method
implementation of course since WSDL does not provide any info on
implementation.

Thanks
M.


MarkoH
12/29/2004 11:24:21 PM
Yes, I've seen Christian's example and have already done some work upon it
and I was looking for something similar on the server side.

But this information about Style property is great! I could work on
Christian's example and redesign it for server class.

thanks!


[quoted text, click to view]

Dilip Krishnan
1/6/2005 9:18:03 PM
Hello MarkoH,
What would be the use of that? woudnt you still have to write the implementation?

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com

[quoted text, click to view]

MarkoH
1/7/2005 12:53:03 AM
Okay, I have abstract class created at runtime through usage of CodeDom and
Microsoft.CSharp namespaces..the class is abstract and so are the methods of
course. How could I change this class/create new class (concrete one) from
this abstract class code ? Of course it would be enough to just have
concrete class with empty methods. Only { }.

thanks for any help,
M.

[quoted text, click to view]

Christian Weyer [MS RD, MVP]
1/7/2005 9:52:11 PM
Well, that's the deal. You have to implement the concrete implementation
yourself.
This is what we do with the WSCF tool.

Cheers,
--
Christian Weyer
thinktecture
http://www.thinktecture.com
In-depth support and consulting for software architects and developers

*Smells like service spirit-Weblog
http://weblogs.asp.net/cweyer

*Independent Microsoft Regional Director
http://www.microsoft.com/rd


[quoted text, click to view]

MarkoH
1/7/2005 10:19:17 PM
I wanted to attach SoapExtension to it and then trace SOAP messages. Maybe
I'm not handling this the right way..

What I want to do is "mimic" what .NET Framework does when calling Invoke()
in proxy. That is serializing calls. I don't want to write out XML for SOAP
Requests/Responses myself, especially not for encoded style. Invoke() method
on proxy does all that by itself.

If I have WSDL, dynamic proxy based on it and dynamic abstract web service
class based on that WSDL, there must be a way to generate SOAP
Requests/Responses without having to invoke (or without having to write it
yourself) ?


[quoted text, click to view]

AddThis Social Bookmark Button